* src/insets/InsetFoot.cpp:
- make button labels translatable
PLEASE, people, do not forget i18n !!!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24238
a592a061-630c-0410-9148-
cb99ea01b6c8
{
Dimension dim = dimensionCollapsed();
if (geometry() == NoButton)
- return layout_->labelstring();
+ return translateIfPossible(layout_->labelstring());
if (x > xo(bv) + dim.wid || y > yo(bv) + dim.des)
return docstring();
{
if (dc) {
layout_ = &(dc->insetLayout(name()));
- labelstring_ = layout_->labelstring();
+ labelstring_ = translateIfPossible(layout_->labelstring());
} else {
layout_ = &DocumentClass::emptyInsetLayout();
labelstring_ = _("UNDEFINED");
if (!outer.layout().intitle && cnts.hasCounter(foot)) {
cnts.step(foot);
// FIXME: the counter should format itself.
- custom_label_= support::bformat(from_ascii("%1$s %2$s"),
- getLayout(buffer().params()).labelstring(),
+ custom_label_= support::bformat(from_utf8("%1$s %2$s"),
+ translateIfPossible(getLayout(buffer().params()).labelstring()),
cnts.theCounter(foot));
setLabel(custom_label_);