]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Typos
[lyx.git] / src / LaTeXFeatures.cpp
index 90809577a019326db86bc331429e3ecf7de51746..a714df386e63b5a7916b9dac3a5ef2df6abc6bdc 100644 (file)
@@ -1202,8 +1202,7 @@ docstring const LaTeXFeatures::getTClassI18nPreamble(bool use_babel, bool use_po
                                continue;
                        docstring const type = from_ascii(fl.floattype());
                        docstring const flname = from_utf8(fl.name());
-                       docstring name = translateIfPossible(flname,
-                               buffer().language()->code());
+                       docstring name = buffer().language()->translateLayout(fl.name());
                        // only request translation if we have a real translation
                        // (that differs from the source)
                        if (use_polyglossia && flname != name)