commit 43a4e2e63ea977d125cb27292d984d439dfbc6fd
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Aug 14 16:07:30 2025 +0200

    Fix localization of formattedCounter
    
    This needs to be translated before the counter placeholder
    is being replaced
---
 src/Counters.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Counters.cpp b/src/Counters.cpp
index e29a2253da..b16042065f 100644
--- a/src/Counters.cpp
+++ b/src/Counters.cpp
@@ -652,9 +652,9 @@ docstring Counters::formattedCounter(docstring const & name,
        Counter const & ctr = it->second;
 
        docstring const value = theCounter(name, lang);
-       docstring const format = translateIfPossible(
-                               
counterLabel(getFormattedLabel(ctr.refFormat(prex), lc, pl), lang),
-                               lang);
+       docstring const format =
+               
counterLabel(translateIfPossible(getFormattedLabel(ctr.refFormat(prex), lc, 
pl), lang),
+                            lang);
        if (format.empty())
                return value;
        return subst(format, from_ascii("##"), value);
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to