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
This commit is contained in:
Richard Heck 2010-09-15 13:28:55 +00:00
parent 89738020e0
commit 7f0b1d1cbb

View File

@ -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'");