From: Juergen Spitzmueller Date: Mon, 8 Oct 2012 15:02:10 +0000 (+0200) Subject: Proper string translation X-Git-Tag: 2.1.0beta1~1442 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=04d39dd5be73e6b6ca83dd9487cdbc118c4a1f29;p=features.git Proper string translation --- diff --git a/src/frontends/qt4/LayoutBox.cpp b/src/frontends/qt4/LayoutBox.cpp index a1514c121f..94604278ce 100644 --- a/src/frontends/qt4/LayoutBox.cpp +++ b/src/frontends/qt4/LayoutBox.cpp @@ -569,9 +569,9 @@ void LayoutBox::addItemSort(docstring const & item, docstring const & category, bool sorted, bool sortedByCat, bool unknown) { QString qitem = toqstr(item); - // FIXME This is wrong for RTL, I'd suppose. - QString titem = toqstr(translateIfPossible(item) + - (unknown ? _(" (unknown)") : from_ascii(""))); + docstring const loc_item = translateIfPossible(item); + QString titem = unknown ? toqstr(bformat(_("%1$s (unknown)"), loc_item)) + : toqstr(loc_item); QString qcat = toqstr(translateIfPossible(category)); QList row;