From 407b3598096bd078c3336caa4d12b2791e3b982c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 22 Jan 2010 17:57:16 +0000 Subject: [PATCH] * FindReplace: allow proper localization. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33166 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/FindAndReplace.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp index 783c0a19f3..f80f1a93fa 100644 --- a/src/frontends/qt4/FindAndReplace.cpp +++ b/src/frontends/qt4/FindAndReplace.cpp @@ -34,6 +34,7 @@ #include "support/FileName.h" #include "support/gettext.h" #include "support/lassert.h" +#include "support/lstrings.h" #include #include @@ -291,10 +292,10 @@ docstring question_string(FindAndReplaceOptions const & opt) break; } docstring dir = opt.forward ? _("forward") : _("backwards"); - return cur_pos + _(" of ") + scope - + _(" reached while searching ") + dir + ".\n" - + "\n" - + _("Continue searching from ") + new_pos + " ?"; + + return bformat(_("%1$s of %2$s reached while searching %3$s.\n\n" + "Continue searching from %4$s?"), + cur_pos, scope, dir, new_pos); }