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:
parent
dd19f09c0f
commit
e676dafb7a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user