Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwincompositing/model.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | 55 | | |||
56 | static QString translatedCategory(const QString &category) | 56 | static QString translatedCategory(const QString &category) | ||
57 | { | 57 | { | ||
58 | static const QVector<QString> knownCategories = { | 58 | static const QVector<QString> knownCategories = { | ||
59 | QStringLiteral("Accessibility"), | 59 | QStringLiteral("Accessibility"), | ||
60 | QStringLiteral("Appearance"), | 60 | QStringLiteral("Appearance"), | ||
61 | QStringLiteral("Candy"), | 61 | QStringLiteral("Candy"), | ||
62 | QStringLiteral("Focus"), | 62 | QStringLiteral("Focus"), | ||
63 | QStringLiteral("Show Desktop Animation"), | ||||
63 | QStringLiteral("Tools"), | 64 | QStringLiteral("Tools"), | ||
64 | QStringLiteral("Virtual Desktop Switching Animation"), | 65 | QStringLiteral("Virtual Desktop Switching Animation"), | ||
65 | QStringLiteral("Window Management") | 66 | QStringLiteral("Window Management") | ||
66 | }; | 67 | }; | ||
67 | 68 | | |||
68 | static const QVector<QString> translatedCategories = { | 69 | static const QVector<QString> translatedCategories = { | ||
69 | i18nc("Category of Desktop Effects, used as section header", "Accessibility"), | 70 | i18nc("Category of Desktop Effects, used as section header", "Accessibility"), | ||
70 | i18nc("Category of Desktop Effects, used as section header", "Appearance"), | 71 | i18nc("Category of Desktop Effects, used as section header", "Appearance"), | ||
71 | i18nc("Category of Desktop Effects, used as section header", "Candy"), | 72 | i18nc("Category of Desktop Effects, used as section header", "Candy"), | ||
72 | i18nc("Category of Desktop Effects, used as section header", "Focus"), | 73 | i18nc("Category of Desktop Effects, used as section header", "Focus"), | ||
74 | i18nc("Category of Desktop Effects, used as section header", "Show Desktop Animation"), | ||||
73 | i18nc("Category of Desktop Effects, used as section header", "Tools"), | 75 | i18nc("Category of Desktop Effects, used as section header", "Tools"), | ||
74 | i18nc("Category of Desktop Effects, used as section header", "Virtual Desktop Switching Animation"), | 76 | i18nc("Category of Desktop Effects, used as section header", "Virtual Desktop Switching Animation"), | ||
75 | i18nc("Category of Desktop Effects, used as section header", "Window Management") | 77 | i18nc("Category of Desktop Effects, used as section header", "Window Management") | ||
76 | }; | 78 | }; | ||
77 | const int index = knownCategories.indexOf(category); | 79 | const int index = knownCategories.indexOf(category); | ||
78 | if (index == -1) { | 80 | if (index == -1) { | ||
79 | qDebug() << "Unknown category '" << category << "' and thus not translated"; | 81 | qDebug() << "Unknown category '" << category << "' and thus not translated"; | ||
80 | return category; | 82 | return category; | ||
▲ Show 20 Lines • Show All 579 Lines • Show Last 20 Lines |