]> git.lyx.org Git - lyx.git/commitdiff
Make InsetCaption label localizable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 26 Jan 2021 18:26:36 +0000 (19:26 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 27 Jan 2021 09:32:18 +0000 (10:32 +0100)
Part of bug #10531.

src/insets/InsetCaption.cpp

index 981ffa814f6ef2b5a73a0e3ead265658855a12e3..2e037d6cda2687b5742d3bf41c0785377b4e85de 100644 (file)
@@ -442,10 +442,9 @@ void InsetCaption::updateBuffer(ParIterator const & it, UpdateType utype, bool c
                                sec += from_ascii(" ");
                        sec += bformat(from_ascii("(%1$s)"), labelstring);
                }
-               if (!sec.empty())
-                       full_label_ = bformat(from_ascii("%1$s %2$s: "), name, sec);
-               else
-                       full_label_ = bformat(from_ascii("%1$s #: "), name);
+               if (sec.empty())
+                       sec = from_ascii("#");
+               full_label_ = bformat(master.B_("%1$s %2$s: [[Caption label (ex. Figure 1: )]]"), name, sec);
        }
 
        // Do the real work now.