Stick to bformat

This commit is contained in:
Juergen Spitzmueller 2012-10-09 16:12:32 +02:00
parent 7c8f4d57a7
commit c85135090e

View File

@ -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;