From: Richard Heck Date: Wed, 15 Sep 2010 13:28:55 +0000 (+0000) Subject: Fix i18n for InsetBibtex. X-Git-Tag: 2.0.0~2604 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7f0b1d1cbb3fd69773639f6eb0c6149e72d70840;p=features.git 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 --- 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'");