r20476 by craig -
scribus-commit
scribus-commit at lists.scribus.net
Tue Oct 20 18:52:16 UTC 2015
Author: craig
Date: Tue Oct 20 18:52:16 2015
New Revision: 20476
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20476
Log:
#13440: Fix language selection capability
Modified:
trunk/Scribus/scribus/scribusapp.cpp
Modified: trunk/Scribus/scribus/scribusapp.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20476&path=/trunk/Scribus/scribus/scribusapp.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusapp.cpp (original)
+++ trunk/Scribus/scribus/scribusapp.cpp Tue Oct 20 18:52:16 2015
@@ -453,6 +453,13 @@
loadedQt = true;
if (trans->load(QString("scribus." + lang), path))
loadedScribus = true;
+ if (!loadedScribus)
+ {
+ QString altLang(LanguageManager::instance()->getAlternativeAbbrevfromAbbrev(lang));
+ if (!altLang.isEmpty())
+ if (trans->load(QString("scribus." + altLang), path))
+ loadedScribus = true;
+ }
}
}
if (loadedQt)
More information about the scribus-commit
mailing list