aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index e92dc5a4..12d5b831 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -689,8 +689,10 @@ WId LSession::activeWindow(){
//Temporarily change the session locale (nothing saved between sessions)
void LSession::switchLocale(QString localeCode){
- LUtils::setLocaleEnv(localeCode); //will set everything to this locale (no custom settings)
currTranslator = LUtils::LoadTranslation(this, "lumina-desktop", localeCode, currTranslator);
+ if(currTranslator!=0 || localeCode=="en_US"){
+ LUtils::setLocaleEnv(localeCode); //will set everything to this locale (no custom settings)
+ }
emit LocaleChanged();
}
bgstack15