Commit 199fabba authored by Albert Astals Cid's avatar Albert Astals Cid

Fix translations not showing in the Sort by and Additional Information submenus

Acked by Frank
REVIEW: 106049
BUGS: 305228
FIXED-IN: 4.9.1
parent 23194dde
......@@ -287,7 +287,7 @@ QString KFileItemModel::roleDescription(const QByteArray& role) const
int count = 0;
const RoleInfoMap* map = rolesInfoMap(count);
for (int i = 0; i < count; ++i) {
description.insert(map[i].role, map[i].roleTranslation);
description.insert(map[i].role, i18nc(map[i].roleTranslationContext, map[i].roleTranslation));
}
}
......@@ -560,8 +560,8 @@ QList<KFileItemModel::RoleInfo> KFileItemModel::rolesInformation()
if (map[i].roleType != NoRole) {
RoleInfo info;
info.role = map[i].role;
info.translation = map[i].roleTranslation;
info.group = map[i].groupTranslation;
info.translation = i18nc(map[i].roleTranslationContext, map[i].roleTranslation);
info.group = i18nc(map[i].groupTranslationContext, map[i].groupTranslation);
info.requiresNepomuk = map[i].requiresNepomuk;
info.requiresIndexer = map[i].requiresIndexer;
rolesInfo.append(info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment