]> git.lyx.org Git - features.git/commitdiff
Use buffer().B_() instead of translateIfPossible.
authorJulien Rioux <jrioux@lyx.org>
Mon, 14 Jan 2013 16:25:28 +0000 (17:25 +0100)
committerJulien Rioux <jrioux@lyx.org>
Tue, 15 Jan 2013 13:13:06 +0000 (14:13 +0100)
src/insets/InsetBibtex.cpp

index 8d397d647db39372c64b0069277120da7ff28b5b..04d8d2571ba7bab5644aab8e026eced64359f735 100644 (file)
@@ -23,7 +23,6 @@
 #include "Format.h"
 #include "FuncRequest.h"
 #include "FuncStatus.h"
-#include "Language.h"
 #include "LaTeXFeatures.h"
 #include "output_xhtml.h"
 #include "OutputParams.h"
@@ -939,10 +938,7 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const
        CiteEngineType const engine_type = buffer().params().citeEngineType();
        bool const numbers = (engine_type == ENGINE_TYPE_NUMERICAL);
 
-       docstring reflabel = from_ascii("References");
-       Language const * l = buffer().params().language;
-       if (l)
-               reflabel = translateIfPossible(reflabel, l->code());
+       docstring const reflabel = buffer().B_("References");
 
        xs << html::StartTag("h2", "class='bibtex'")
                << reflabel