Extracting translation information does not help if you don't actually

use it to translate the message. (Note that this is presently used only
for XHTML output.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38405 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-04-15 11:34:06 +00:00
parent 4b5a58dca9
commit a436c20c3d

View File

@ -587,7 +587,8 @@ docstring Counters::prettyCounter(docstring const & name,
Counter const & ctr = it->second;
docstring const value = theCounter(name, lang);
docstring const & format = ctr.prettyFormat();
docstring const & format =
translateIfPossible(ctr.prettyFormat(), lang);
if (format.empty())
return value;
return subst(format, from_ascii("##"), value);