Commit b9eb2808 authored by Jeremy Whiting's avatar Jeremy Whiting
Browse files

Fix KHangMan default language.

BUG: 392493
Somehow default language was set to "userLanguage" which was supposed
to be based on locale, but isn't when compiled by kcfg, it's a static
string, so just set the default back to en to be back to previous
behavior.
TODO: Actually use the user's locale to set the default language.
parent c757fb32
......@@ -19,12 +19,12 @@
KSharedConfigPtr globalConf = KSharedConfig::openConfig();
QString userLanguage=globalConf->group("Locale").readEntry("Language", "en");
if (userLanguage.isEmpty())
userLanguage = "en";
userLanguage = "en";
else
//keep only the first 2 characters
userLanguage = userLanguage.left(2);
//keep only the first 2 characters
userLanguage = userLanguage.left(2);
</code>
<default>userLanguage</default>
<default>en</default>
</entry>
</group>
......
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