]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Update fr.po
[lyx.git] / src / Buffer.cpp
index e71c83122d18121303886ea110748960cb703b38..6f53a567db73837d6b58d27ead0b956ea4a7acb2 100644 (file)
@@ -4456,12 +4456,15 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
                        if (!put_in_tempdir) {
                                // Only show this alert if this is an export to a non-temporary
                                // file (not for previewing).
-                               docstring s = _("No information for exporting the format %1$s.");
+                               docstring s = bformat(_("No information for exporting the format %1$s."),
+                                                     theFormats().prettyName(format));
                                if (format == "pdf4")
-                                 s += _("\nHint: use non-TeX fonts or set input encoding to "
-                                                "'utf8' or 'ascii'");
-                               Alert::error(_("Couldn't export file"),
-                                                        bformat(s, theFormats().prettyName(format)));
+                                       s += "\n"
+                                         + bformat(_("Hint: use non-TeX fonts or set input encoding "
+                                                     " to '%1$s' or '%2$s'"),
+                                                   from_utf8(encodings.fromLyXName("utf8")->guiName()),
+                                                   from_utf8(encodings.fromLyXName("ascii")->guiName()));
+                               Alert::error(_("Couldn't export file"), s);
                        }
                        return ExportNoPathToFormat;
                }
@@ -5254,6 +5257,11 @@ void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const
        // to resolve macros in it.
        parit.text()->setMacrocontextPosition(parit);
 
+       // Reset bibitem counter in master (#8499)
+       Buffer const * const master = masterBuffer();
+       if (master == this && !d->ignore_parent)
+               master->params().documentClass().counters().reset(from_ascii("bibitem"));
+
        depth_type maxdepth = 0;
        pit_type const lastpit = parit.lastpit();
        for ( ; parit.pit() <= lastpit ; ++parit.pit()) {