diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-12-28 01:04:44 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-12-28 01:05:11 -0600 |
| commit | 66bf2ab5373e91c353a60ac13e0e24228d1aacd7 (patch) | |
| tree | e8f055b3c4d6b19896ecf0416c8c62c9d6fb136c /src | |
| parent | 2d9cf25657f0775431beda75713cba6156f2180b (diff) | |
Stop warning about missing English translations
Diffstat (limited to 'src')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d11bf4b4..d6f874f3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -4679,11 +4679,9 @@ void MainWindow::installTranslator(const QString &name) QTranslator *translator = new QTranslator(this);
QString fileName = name + "_" + m_CurrentLanguage;
if (!translator->load(fileName, qApp->applicationDirPath() + "/translations")) {
- if ((m_CurrentLanguage != "en-US")
- && (m_CurrentLanguage != "en_US")
- && (m_CurrentLanguage != "en-GB")) {
+ if (m_CurrentLanguage.compare("en", Qt::CaseInsensitive)) {
qDebug("localization file %s not found", qPrintable(fileName));
- } // we don't actually expect localization files for english
+ } // we don't actually expect localization files for English
}
qApp->installTranslator(translator);
|
