]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetNote.cpp
Allow customization of label string for note insets. We actually had
[features.git] / src / insets / InsetNote.cpp
index 5198524da64218c07af50a6603993f9e04b223a1..1ab8edd95ab6a369dcbc8a7859663df82679a5f4 100644 (file)
@@ -156,7 +156,11 @@ void InsetNote::read(Lexer & lex)
 
 void InsetNote::setButtonLabel()
 {
-       docstring const label = notetranslator_loc().find(params_.type);
+       docstring label = getLayout().labelstring();
+       if (label.empty())
+               label = notetranslator_loc().find(params_.type);
+       else
+               label = translateIfPossible(label);
        setLabel(label);
 }