From f5b37d861b757fb71d4e264660a4a42fbb3d4197 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Wed, 6 Apr 2011 21:20:35 +0000 Subject: [PATCH] Fix wrong translations of float lists spotted by Pavel: It was taken from .po file, not layoutttranslations git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38297 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetFloatList.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetFloatList.cpp b/src/insets/InsetFloatList.cpp index 2b2c7fb7d8..f0c649824e 100644 --- a/src/insets/InsetFloatList.cpp +++ b/src/insets/InsetFloatList.cpp @@ -120,10 +120,12 @@ void InsetFloatList::latex(otexstream & os, OutputParams const &) const if (cit != floats.end()) { Floating const & fl = cit->second; - if (fl.usesFloatPkg()) + if (fl.usesFloatPkg()) { + docstring const name = + buffer().language()->translateLayout(fl.listName()); os << "\\listof{" << getParam("type") << "}{" - << buffer().B_(fl.listName()) << "}\n"; - else { + << name << "}\n"; + } else { if (!fl.listCommand().empty()) os << "\\" << from_ascii(fl.listCommand()) << "\n"; else @@ -132,9 +134,10 @@ void InsetFloatList::latex(otexstream & os, OutputParams const &) const << "\n"; } } else { + string const flName = "List of " + to_utf8(getParam("type")); + docstring const name = buffer().language()->translateLayout(flName); os << "%%\\listof{" << getParam("type") << "}{" - << bformat(_("List of %1$s"), getParam("type")) - << "}\n"; + << name << "}\n"; } } -- 2.39.5