summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 8066c59f..389e65ca 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -5048,9 +5048,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.compare("en", Qt::CaseInsensitive)) {
+ if (m_CurrentLanguage.contains(QRegularExpression("^.*_(EN|en)(-.*)?$"))) {
qDebug("localization file %s not found", qUtf8Printable(fileName));
- } // we don't actually expect localization files for English
+ } // we don't actually expect localization files for English (en, en-us, en-uk, and any variation thereof)
}
qApp->installTranslator(translator);