From c85135090e230c046851603c372b3ad0fd47a788 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Tue, 9 Oct 2012 16:12:32 +0200 Subject: [PATCH] Stick to bformat --- src/frontends/qt4/CategorizedCombo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/CategorizedCombo.cpp b/src/frontends/qt4/CategorizedCombo.cpp index d4410cf168..878d277ace 100644 --- a/src/frontends/qt4/CategorizedCombo.cpp +++ b/src/frontends/qt4/CategorizedCombo.cpp @@ -493,7 +493,9 @@ void CategorizedCombo::addItemSort(QString const & item, QString const & guiname bool sorted, bool sortedByCat, bool sortCats, bool available) { - QString titem = available ? guiname : qt_("Unavailable: %1").arg(guiname); + QString titem = available ? guiname + : toqstr(bformat(_("Unavailable: %1$s"), + qstring_to_ucs4(guiname))); bool const uncategorized = category.isEmpty(); QString qcat = uncategorized ? qt_("Uncategorized") : category;