* src/insets/InsetCollapsable.cpp:

* 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
This commit is contained in:
Jürgen Spitzmüller 2008-04-11 15:11:27 +00:00
parent 5997d41b38
commit c1e8355205
2 changed files with 4 additions and 4 deletions

View File

@ -108,7 +108,7 @@ docstring InsetCollapsable::toolTip(BufferView const & bv, int x, int y) const
{
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();
@ -132,7 +132,7 @@ void InsetCollapsable::setLayout(DocumentClass const * const dc)
{
if (dc) {
layout_ = &(dc->insetLayout(name()));
labelstring_ = layout_->labelstring();
labelstring_ = translateIfPossible(layout_->labelstring());
} else {
layout_ = &DocumentClass::emptyInsetLayout();
labelstring_ = _("UNDEFINED");

View File

@ -56,8 +56,8 @@ void InsetFoot::updateLabels(ParIterator const & it)
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_);