]> git.lyx.org Git - features.git/commitdiff
* InsetInfo.cpp (toolTip):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 3 Nov 2008 17:36:28 +0000 (17:36 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 3 Nov 2008 17:36:28 +0000 (17:36 +0000)
- 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

index 750b57f82c5a4dacc48d57a8e3069385aa8c57dd..db47b2007492131452bdb98c2986d958ba10be34 100644 (file)
@@ -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_));
 }