From 7f0b1d1cbb3fd69773639f6eb0c6149e72d70840 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 15 Sep 2010 13:28:55 +0000 Subject: [PATCH] Fix i18n for InsetBibtex. It would be better to get the paragraph language here. How to do that? git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35386 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetBibtex.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index a83068201b..4f1e53c2a0 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -20,6 +20,7 @@ #include "Format.h" #include "FuncRequest.h" #include "FuncStatus.h" +#include "Language.h" #include "LaTeXFeatures.h" #include "output_xhtml.h" #include "OutputParams.h" @@ -922,8 +923,13 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const bool const numbers = (engine == ENGINE_BASIC || engine == ENGINE_NATBIB_NUMERICAL); + docstring reflabel = from_ascii("References"); + Language const * l = buffer().params().language; + if (l) + reflabel = translateIfPossible(reflabel, l->code()); + xs << html::StartTag("h2", "class='bibtex'") - << _("References") + << reflabel << html::EndTag("h2") << html::StartTag("div", "class='bibtex'"); -- 2.39.2