fixed en_GB, en_US, de_DE vs de_AT issues at the System Name Language
This commit is contained in:
parent
45c386eb31
commit
2d28e80074
1 changed files with 7 additions and 3 deletions
|
@ -81,9 +81,13 @@ void OptionsDialog::setupLanguageBox()
|
||||||
currentLanguage = settings->value("Language","System").toString();
|
currentLanguage = settings->value("Language","System").toString();
|
||||||
settings->endGroup();
|
settings->endGroup();
|
||||||
|
|
||||||
QString cbSysStr = tr("%1 (%2 if available) [sys]", "System like PC System = %1, System Language like Deutsch = %2").arg(tr("System",
|
QStringList langList = QLocale::system().name().split("_");
|
||||||
"System like PC System"), QLocale::system().nativeLanguageName());
|
if (langList.length() > 0)
|
||||||
ui->cbLanguage->addItem(cbSysStr, "System");
|
{
|
||||||
|
QString cbSysStr = tr("%1 (%2 if available)", "System like PC System = %1, System Language like Deutsch = %2").arg(tr("System",
|
||||||
|
"System like PC System"), QLocale::languageToString(QLocale(langList.at(0)).language()));
|
||||||
|
ui->cbLanguage->addItem(cbSysStr, "System");
|
||||||
|
}
|
||||||
|
|
||||||
QString cbEngStr = "English (English) [en]";
|
QString cbEngStr = "English (English) [en]";
|
||||||
ui->cbLanguage->addItem(QIcon::fromTheme("flag-us"), cbEngStr, "en");
|
ui->cbLanguage->addItem(QIcon::fromTheme("flag-us"), cbEngStr, "en");
|
||||||
|
|
Loading…
Reference in a new issue