forked from openlp/openlp
Do not show qm files which start with qt_
Fixes: https://launchpad.net/bugs/791814
This commit is contained in:
parent
847d69cd2f
commit
0b8fe770d5
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user