X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/02f7ca192df965cb03d00457f42c15f147afe6aa..54dfdc930a5511eae2b15f3e87e5d1cd425bdbe4:/src/dolphinmodel.cpp diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp index 3dcbf63ef..8a5b6c732 100644 --- a/src/dolphinmodel.cpp +++ b/src/dolphinmodel.cpp @@ -47,7 +47,7 @@ #include #include -static QString others = I18N_NOOP2("@title:group Name", "Uncategorized"); +static const char *others = I18N_NOOP2("@title:group Name", "Others"); DolphinModel::DolphinModel(QObject *parent) : KDirModel(parent) @@ -91,7 +91,7 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const if (name.size() > 1 && name.at(1).isLetter()) { retString = name.at(1).toUpper(); } else { - retString = others; + retString = i18nc("@title:group Name", others); } } else { retString = name.at(0).toUpper(); @@ -105,14 +105,14 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const if (currA->isLetter()) { validCategory = true; } else if (currA->isDigit()) { - return others; + return i18nc("@title:group Name", others); } else { ++currA; } } if (!validCategory) { - retString = validCategory ? *currA : others; + retString = validCategory ? *currA : i18nc("@title:group Name", others); } else { retString = *currA; } @@ -244,8 +244,8 @@ QVariant DolphinModel::data(const QModelIndex &index, int role) const case KDirModel::Name: { retVariant = data(index, KCategorizedSortFilterProxyModel::CategoryDisplayRole); - if (retVariant == others) - retVariant = QString(); + if (retVariant == i18nc("@title:group Name", others)) + retVariant = QString(QChar(QChar::ReplacementCharacter)); break; }