]> git.lyx.org Git - features.git/commitdiff
String formatting
authorPavel Sanda <sanda@lyx.org>
Sun, 18 Oct 2009 03:58:20 +0000 (03:58 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 18 Oct 2009 03:58:20 +0000 (03:58 +0000)
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg155067.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31656 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index 6fd6c8cb20ad440e1b0893bbd3780fd731672c17..3a6fa1808af0a161c480e1a87ac0f439538b81e8 100644 (file)
@@ -3302,8 +3302,8 @@ bool Buffer::readFileHelper(FileName const & s)
                                str = _("Document was successfully recovered.");
                        else
                                str = _("Document was NOT successfully recovered.");
-                       str += "\n\n" + _("Remove emergency file now?") +
-                               "\n(" + from_utf8(e.absFilename())+")";
+                       str += "\n\n" + bformat(_("Remove emergency file now?\n(%1$s)"),
+                                               from_utf8(e.absFilename()));
 
                        if (!Alert::prompt(_("Delete emergency file?"), str, 1, 1,
                                        _("&Remove"), _("&Keep it"))) {