Fix translation code to find qm files

This commit is contained in:
Tim Bentley 2010-09-11 15:03:10 +01:00
parent 0412fca642
commit 8d51128e0c

View File

@ -66,7 +66,7 @@ class LanguageManager(object):
Find all available language files in this OpenLP install
"""
trans_dir = AppLocation.get_directory(AppLocation.AppDir)
trans_dir = QtCore.QDir(os.path.join(trans_dir, u'resources', u'i18n'))
trans_dir = QtCore.QDir(os.path.join(trans_dir,u'openlp', u'i18n'))
file_names = trans_dir.entryList(QtCore.QStringList("*.qm"),
QtCore.QDir.Files, QtCore.QDir.Name)
for name in file_names: