commit 48e7b1d01ea45a18d7919d5f6a895c99a978ec59 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Tue Jan 26 19:26:36 2021 +0100
Make InsetCaption label localizable Part of bug #10531. --- src/insets/InsetCaption.cpp | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index 981ffa8..2e037d6 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -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. -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs