Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwincompositing/model.cpp
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 56 | { | |||
---|---|---|---|---|---|
57 | static const QVector<QString> knownCategories = { | 57 | static const QVector<QString> knownCategories = { | ||
58 | QStringLiteral("Accessibility"), | 58 | QStringLiteral("Accessibility"), | ||
59 | QStringLiteral("Appearance"), | 59 | QStringLiteral("Appearance"), | ||
60 | QStringLiteral("Candy"), | 60 | QStringLiteral("Candy"), | ||
61 | QStringLiteral("Focus"), | 61 | QStringLiteral("Focus"), | ||
62 | QStringLiteral("Show Desktop Animation"), | 62 | QStringLiteral("Show Desktop Animation"), | ||
63 | QStringLiteral("Tools"), | 63 | QStringLiteral("Tools"), | ||
64 | QStringLiteral("Virtual Desktop Switching Animation"), | 64 | QStringLiteral("Virtual Desktop Switching Animation"), | ||
65 | QStringLiteral("Window Management") | 65 | QStringLiteral("Window Management"), | ||
66 | QStringLiteral("Window Open/Close Animation") | ||||
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"), | ||
73 | i18nc("Category of Desktop Effects, used as section header", "Show Desktop Animation"), | 74 | i18nc("Category of Desktop Effects, used as section header", "Show Desktop Animation"), | ||
74 | i18nc("Category of Desktop Effects, used as section header", "Tools"), | 75 | i18nc("Category of Desktop Effects, used as section header", "Tools"), | ||
75 | 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"), | ||
76 | i18nc("Category of Desktop Effects, used as section header", "Window Management") | 77 | i18nc("Category of Desktop Effects, used as section header", "Window Management"), | ||
78 | i18nc("Category of Desktop Effects, used as section header", "Window Open/Close Animation") | ||||
77 | }; | 79 | }; | ||
78 | const int index = knownCategories.indexOf(category); | 80 | const int index = knownCategories.indexOf(category); | ||
79 | if (index == -1) { | 81 | if (index == -1) { | ||
80 | qDebug() << "Unknown category '" << category << "' and thus not translated"; | 82 | qDebug() << "Unknown category '" << category << "' and thus not translated"; | ||
81 | return category; | 83 | return category; | ||
82 | } | 84 | } | ||
83 | return translatedCategories[index]; | 85 | return translatedCategories[index]; | ||
84 | } | 86 | } | ||
▲ Show 20 Lines • Show All 576 Lines • Show Last 20 Lines |