summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp6
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);