mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-03-14 01:32:25 +01:00
Remove useless variable and cleanup comments
This commit is contained in:
parent
d4b96557b8
commit
4d1a2c75c6
@ -3519,7 +3519,6 @@ void GMainWindow::LoadTranslation() {
|
|||||||
|
|
||||||
if (language.isEmpty()) {
|
if (language.isEmpty()) {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Use Windows API to get the active display language
|
|
||||||
LANGID lang_id = GetUserDefaultUILanguage();
|
LANGID lang_id = GetUserDefaultUILanguage();
|
||||||
wchar_t locale_name[LOCALE_NAME_MAX_LENGTH];
|
wchar_t locale_name[LOCALE_NAME_MAX_LENGTH];
|
||||||
|
|
||||||
@ -3537,7 +3536,7 @@ void GMainWindow::LoadTranslation() {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace dashes with underscores for compatibility with translation files
|
// For compatibility with translation files
|
||||||
language.replace(QLatin1Char('-'), QLatin1Char('_'));
|
language.replace(QLatin1Char('-'), QLatin1Char('_'));
|
||||||
|
|
||||||
bool loaded = translator.load(language, QStringLiteral(":/languages/"));
|
bool loaded = translator.load(language, QStringLiteral(":/languages/"));
|
||||||
|
@ -321,9 +321,6 @@ private:
|
|||||||
GameListPlaceholder* game_list_placeholder;
|
GameListPlaceholder* game_list_placeholder;
|
||||||
LoadingScreen* loading_screen;
|
LoadingScreen* loading_screen;
|
||||||
|
|
||||||
// General
|
|
||||||
QString current_language;
|
|
||||||
|
|
||||||
// Status bar elements
|
// Status bar elements
|
||||||
QProgressBar* progress_bar = nullptr;
|
QProgressBar* progress_bar = nullptr;
|
||||||
QLabel* message_label = nullptr;
|
QLabel* message_label = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user