strings in the layout file, but they were not used.
Question: Should we just remove InsetNote::setButtonLabel() now? The
only purpose it is serving is to provide a backup in case no label is
defined.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36884
a592a061-630c-0410-9148-
cb99ea01b6c8
End
InsetLayout Note:Comment
- LabelString comment
+ LabelString Comment
LatexType environment
LatexName comment
BgColor commentbg
InsetLayout Note:Note
- LabelString note
+ LabelString Note
LatexType command
LatexName note
BgColor notebg
InsetLayout Note:Greyedout
- LabelString greyedout
+ LabelString Greyedout
LatexType environment
LatexName lyxgreyedout
BgColor greyedoutbg
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);
}