]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloatList.cpp
Fix a couple unused variable warnings.
[lyx.git] / src / insets / InsetFloatList.cpp
index 2b2c7fb7d88b41d86e020be4ef25601374b26d41..f0c649824e6b077e74def8c2ebf68116d37e72e9 100644 (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";
        }
 }