]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Compile fix for qt versions below 4.6.
[lyx.git] / src / LaTeXFeatures.cpp
index a714df386e63b5a7916b9dac3a5ef2df6abc6bdc..2cfc1ce6e2275940c4cb69f7f97f0eb3b11634f9 100644 (file)
@@ -614,7 +614,8 @@ char const * simplefeatures[] = {
        "amscd",
        "slashed",
        "multirow",
-       "tfrupee"
+       "tfrupee",
+       "undertilde",
 };
 
 int const nb_simplefeatures = sizeof(simplefeatures) / sizeof(char const *);
@@ -1215,7 +1216,7 @@ docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel, bool use_po
                                        from_ascii(buffer().language()->babel())));
                        for (lang_it lit = lbeg; lit != lend; ++lit) {
                                string const code = (*lit)->code();
-                               name = translateIfPossible(flname, code);
+                               name = (*lit)->translateLayout(fl.name());
                                // we assume we have a suitable translation if
                                // either the language is English (we need to
                                // translate into English if English is a secondary
@@ -1347,9 +1348,8 @@ void LaTeXFeatures::getFloatDefinitions(odocstream & os) const
                        docstring const ext = from_ascii(fl.ext());
                        docstring const within = from_ascii(fl.within());
                        docstring const style = from_ascii(fl.style());
-                       docstring const name = translateIfPossible(
-                                       from_utf8(fl.name()),
-                                       buffer().language()->code());
+                       docstring const name =
+                               buffer().language()->translateLayout(fl.name());
                        os << "\\floatstyle{" << style << "}\n"
                           << "\\newfloat{" << type << "}{" << placement
                           << "}{" << ext << '}';