X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLaTeXFeatures.cpp;h=a714df386e63b5a7916b9dac3a5ef2df6abc6bdc;hb=f6f32ca0ee1d341e39f202e2921ccbd4d5537f5b;hp=90809577a019326db86bc331429e3ecf7de51746;hpb=729ac126be72bfb82221c17c97f8c08f9cdfec16;p=lyx.git diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 90809577a0..a714df386e 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -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)