]> git.lyx.org Git - features.git/commitdiff
Extracting translation information does not help if you don't actually
authorRichard Heck <rgheck@comcast.net>
Fri, 15 Apr 2011 11:34:06 +0000 (11:34 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 15 Apr 2011 11:34:06 +0000 (11:34 +0000)
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

src/Counters.cpp

index 4960eed5be87c10617f53695f4ea27be359741ff..1349c3dcbe300656c522682514850ed9c4363fe0 100644 (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);