1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Fix languages names in GUI.

This commit is contained in:
Sergey Lipskiy 2020-01-02 14:35:24 +07:00
parent dd19f09c0f
commit e676dafb7a

View File

@ -367,7 +367,8 @@ void ConfigDialog::setIniPath(const QString & _strIniPath)
locale.truncate(locale.lastIndexOf('.')); // "TranslationExample_de"
locale.remove(0, locale.indexOf('_') + 1); // "de"
QString language = QLocale(locale).nativeLanguageName();
language = language.left(1).toUpper() + language.remove(0, 1);
QString firstChar = language.left(1).toUpper();
language = firstChar + language.remove(0, 1);
if (bCurrent) {
listIndex = i + 1;
}