]> git.lyx.org Git - lyx.git/blobdiff - src/Counters.cpp
update argument labels for Springer classes
[lyx.git] / src / Counters.cpp
index 4960eed5be87c10617f53695f4ea27be359741ff..21331e8e1878ba0333c49dec58232f83cab225f9 100644 (file)
@@ -109,6 +109,7 @@ bool Counter::read(Lexer & lex)
        return getout;
 }
 
+
 void Counter::set(int v)
 {
        value_ = v;
@@ -363,7 +364,6 @@ char hebrewCounter(int const n)
 }
 
 
-
 // On the special cases, see http://mathworld.wolfram.com/RomanNumerals.html
 // and for a list of roman numerals up to and including 3999, see 
 // http://www.research.att.com/~njas/sequences/a006968.txt. (Thanks to Joost
@@ -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);