From: Pavel Sanda Date: Sun, 18 Oct 2009 03:58:20 +0000 (+0000) Subject: String formatting X-Git-Tag: 2.0.0~5352 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8962886acbcfd0301cf02218a945b30b3d7140a6;p=features.git String formatting 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 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 6fd6c8cb20..3a6fa1808a 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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"))) {