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
This commit is contained in:
Georg Baum 2011-04-06 21:20:35 +00:00
parent 910a517f69
commit f5b37d861b

View File

@ -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";
}
}