From a73c6c72dc864ba3e23069b042d3ee92220b3184 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 3 Nov 2008 17:36:28 +0000 Subject: [PATCH] * InsetInfo.cpp (toolTip): - use bformat for proper syntactic translatability (the tooltips of this inset look rather weird in generals, though). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27242 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetInfo.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 750b57f82c..db47b20074 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -112,10 +112,8 @@ docstring InsetInfo::name() const docstring InsetInfo::toolTip(BufferView const &, int, int) const { - odocstringstream os; - os << _("Information regarding ") - << _(infoType()) << " " << from_utf8(name_); - return os.str(); + return bformat(_("Information regarding %1$s '%2$s'"), + _(infoType()), from_utf8(name_)); } -- 2.39.2