]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.cpp
Attempt to fix #8137 (arrived at r40862).
[lyx.git] / 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);