Do not show qm files which start with qt_

Fixes: https://launchpad.net/bugs/791814
This commit is contained in:
Andreas Preikschat 2011-06-02 15:58:49 +02:00
parent 847d69cd2f
commit 0b8fe770d5

View File

@ -77,6 +77,8 @@ class LanguageManager(object):
AppLocation.LanguageDir)) AppLocation.LanguageDir))
file_names = trans_dir.entryList(QtCore.QStringList(u'*.qm'), file_names = trans_dir.entryList(QtCore.QStringList(u'*.qm'),
QtCore.QDir.Files, QtCore.QDir.Name) QtCore.QDir.Files, QtCore.QDir.Name)
# Remove qm files from the list which start with "qt_".
file_names = file_names.filter(QtCore.QRegExp("^(?!qt_)"))
for name in file_names: for name in file_names:
file_names.replaceInStrings(name, trans_dir.filePath(name)) file_names.replaceInStrings(name, trans_dir.filePath(name))
return file_names return file_names