From c1e83552057c3b37bafbb965d7b85fa51934995b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 11 Apr 2008 15:11:27 +0000 Subject: [PATCH] * 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 --- src/insets/InsetCollapsable.cpp | 4 ++-- src/insets/InsetFoot.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index fd182e580c..c3570d6015 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -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"); diff --git a/src/insets/InsetFoot.cpp b/src/insets/InsetFoot.cpp index 310ab27edc..d320476733 100644 --- a/src/insets/InsetFoot.cpp +++ b/src/insets/InsetFoot.cpp @@ -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_); -- 2.39.2