mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:13:24 +00:00
Core: use British translations in South Africa
For unrecognized locales we use en_US by default. It makes much more sense for South Africa to use en_GB. Reported-by: Willem Ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c7b64b6819
commit
cdc9666281
1 changed files with 7 additions and 1 deletions
|
@ -51,11 +51,17 @@ void init_qt_late()
|
|||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||
QCoreApplication::setAttribute(Qt::AA_DisableWindowContextHelpButton);
|
||||
#endif
|
||||
// find plugins installed in the application directory (without this SVGs don't work on Windows)
|
||||
qPref::load();
|
||||
|
||||
// find plugins installed in the application directory (without this SVGs don't work on Windows)
|
||||
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath());
|
||||
QLocale loc;
|
||||
|
||||
// assign en_GB for use in South African locale
|
||||
if (loc.country() == QLocale::SouthAfrica) {
|
||||
loc.setDefault(QLocale("en_GB"));
|
||||
loc = QLocale();
|
||||
}
|
||||
QString uiLang = uiLanguage(&loc);
|
||||
QLocale::setDefault(loc);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue