aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/models.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index c83fcb903..fffc79700 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1756,10 +1756,9 @@ LanguageModel::LanguageModel(QObject* parent): QAbstractListModel(parent)
QDir d(getSubsurfaceDataPath("translations"));
QStringList result = d.entryList();
Q_FOREACH(const QString& s, result){
- if ( !s.endsWith(".qm") ){
- continue;
+ if ( s.startsWith("subsurface_") && s.endsWith(".qm") ){
+ languages.push_back( (s == "subsurface_source.qm") ? "English" : s);
}
- languages.push_back( (s == "subsurface_source.qm") ? "English" : s);
}
}