]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.cpp
SCons: msvc does not need this /TP option any more after we rename .C => .cpp. Also...
[lyx.git] / src / output_plaintext.cpp
index 76987b7b4b11c2424ea6b9894cf055a6d0ac4c04..f741e4b153734f508d9572c03d7a475cf48d2e6a 100644 (file)
@@ -89,7 +89,7 @@ void writePlaintextParagraph(Buffer const & buf,
        depth_type depth = par.params().depth();
 
        // First write the layout
-       string const & tmp = par.layout()->name();
+       string const tmp = to_utf8(par.layout()->name());
        if (compare_ascii_no_case(tmp, "itemize") == 0) {
                ltype = 1;
                ltype_depth = depth + 1;
@@ -142,10 +142,10 @@ void writePlaintextParagraph(Buffer const & buf,
 
        case 6: // Abstract
                if (runparams.linelen > 0) {
-                       os << _("Abstract") << "\n\n";
+                       os << buf.B_("Abstract") << "\n\n";
                        currlinelen = 0;
                } else {
-                       docstring const abst = _("Abstract: ");
+                       docstring const abst = buf.B_("Abstract: ");
                        os << abst;
                        currlinelen += abst.length();
                }
@@ -154,10 +154,10 @@ void writePlaintextParagraph(Buffer const & buf,
        case 7: // Bibliography
                if (!ref_printed) {
                        if (runparams.linelen > 0) {
-                               os << _("References") << "\n\n";
+                               os << buf.B_("References") << "\n\n";
                                currlinelen = 0;
                        } else {
-                               docstring const refs = _("References: ");
+                               docstring const refs = buf.B_("References: ");
                                os << refs;
                                currlinelen += refs.length();
                        }