forked from openlp/openlp
also check for osx
This commit is contained in:
parent
485cceb3c2
commit
3dd30f5e93
@ -58,10 +58,7 @@ class LanguageManager(object):
|
|||||||
app_translator = QtCore.QTranslator()
|
app_translator = QtCore.QTranslator()
|
||||||
app_translator.load(language, lang_path)
|
app_translator.load(language, lang_path)
|
||||||
# A translator for buttons and other default strings provided by Qt.
|
# A translator for buttons and other default strings provided by Qt.
|
||||||
if sys.platform == u'linux2':
|
if sys.platform != u'win32' and sys.platform != u'darwin':
|
||||||
# On Linux we use the qm files from qt directory, on other platforms
|
|
||||||
# the qm files have to be packaged and saved together with our own
|
|
||||||
# translations.
|
|
||||||
lang_path = QtCore.QLibraryInfo.location(
|
lang_path = QtCore.QLibraryInfo.location(
|
||||||
QtCore.QLibraryInfo.TranslationsPath)
|
QtCore.QLibraryInfo.TranslationsPath)
|
||||||
default_translator = QtCore.QTranslator()
|
default_translator = QtCore.QTranslator()
|
||||||
|
Loading…
Reference in New Issue
Block a user