Changeset View
Changeset View
Standalone View
Standalone View
startkde/startplasma.cpp
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Line(s) | |||||
118 | void runStartupConfig() | 118 | void runStartupConfig() | ||
119 | { | 119 | { | ||
120 | //export LC_* variables set by kcmshell5 formats into environment | 120 | //export LC_* variables set by kcmshell5 formats into environment | ||
121 | //so it can be picked up by QLocale and friends. | 121 | //so it can be picked up by QLocale and friends. | ||
122 | KConfig config(QStringLiteral("plasma-localerc")); | 122 | KConfig config(QStringLiteral("plasma-localerc")); | ||
123 | KConfigGroup formatsConfig = KConfigGroup(&config, "Formats"); | 123 | KConfigGroup formatsConfig = KConfigGroup(&config, "Formats"); | ||
124 | 124 | | |||
125 | const auto lcValues = { | 125 | const auto lcValues = { | ||
126 | "LANG", "LC_NUMERIC", "LC_MONETARY", "LC_MEASUREMENT", "LC_COLLATE", "LC_CTYPE" | 126 | "LANG", "LC_NUMERIC", "LC_TIME", "LC_MONETARY", "LC_MEASUREMENT", "LC_COLLATE", "LC_CTYPE" | ||
127 | }; | 127 | }; | ||
128 | for (auto lc : lcValues) { | 128 | for (auto lc : lcValues) { | ||
129 | const QString value = formatsConfig.readEntry(lc, QString()); | 129 | const QString value = formatsConfig.readEntry(lc, QString()); | ||
130 | if (!value.isEmpty()) { | 130 | if (!value.isEmpty()) { | ||
131 | qputenv(lc, value.toUtf8()); | 131 | qputenv(lc, value.toUtf8()); | ||
132 | } | 132 | } | ||
133 | } | 133 | } | ||
134 | 134 | | |||
▲ Show 20 Lines • Show All 273 Lines • Show Last 20 Lines |