diff options
author | Ken Moore <moorekou@gmail.com> | 2016-06-20 13:59:22 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-06-20 13:59:22 -0400 |
commit | 5bd02106dca707e8901828c5a047b0261974332f (patch) | |
tree | 197333839d2aea7f26a5cbb7104f98ff3e7a46a8 /src-qt5/core/libLumina/LuminaUtils.cpp | |
parent | Have lumina-textedit also create a sym-link called "lte" for the lumina-texte... (diff) | |
download | lumina-5bd02106dca707e8901828c5a047b0261974332f.tar.gz lumina-5bd02106dca707e8901828c5a047b0261974332f.tar.bz2 lumina-5bd02106dca707e8901828c5a047b0261974332f.zip |
Quick adjust of the locale loading methods.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaUtils.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaUtils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaUtils.cpp b/src-qt5/core/libLumina/LuminaUtils.cpp index 3b4b6161..4e6dfdf6 100644 --- a/src-qt5/core/libLumina/LuminaUtils.cpp +++ b/src-qt5/core/libLumina/LuminaUtils.cpp @@ -269,7 +269,9 @@ QStringList LUtils::imageExtensions(bool wildcards){ if(!QFile::exists(LOS::LuminaShare()+"i18n/"+appname+"_" + langCode + ".qm") && langCode!="en_US" ){ langCode.truncate( langCode.indexOf("_") ); } - if( cTrans->load( appname+QString("_") + langCode, LOS::LuminaShare()+"i18n/" ) ){ + QString filename = appname+"_"+langCode+".qm"; + //qDebug() << "FileName:" << filename << "Dir:" << LOS::LuminaShare()+"i18n/"; + if( cTrans->load( filename, LOS::LuminaShare()+"i18n/" ) ){ app->installTranslator( cTrans ); }else{ //Translator could not be loaded for some reason |