Fix frozen localisation
Addresses Bitmessage#737
This commit is contained in:
parent
6f74ffc265
commit
d7ff86705e
|
@ -88,7 +88,10 @@ def change_translation(locale):
|
||||||
QtGui.QApplication.installTranslator(qmytranslator)
|
QtGui.QApplication.installTranslator(qmytranslator)
|
||||||
|
|
||||||
qsystranslator = QtCore.QTranslator()
|
qsystranslator = QtCore.QTranslator()
|
||||||
translationpath = os.path.join (str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)), 'qt_' + locale)
|
if shared.frozen:
|
||||||
|
translationpath = os.path.join (shared.codePath(), 'translations', 'qt_' + locale)
|
||||||
|
else:
|
||||||
|
translationpath = os.path.join (str(QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.TranslationsPath)), 'qt_' + locale)
|
||||||
qsystranslator.load(translationpath)
|
qsystranslator.load(translationpath)
|
||||||
QtGui.QApplication.installTranslator(qsystranslator)
|
QtGui.QApplication.installTranslator(qsystranslator)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user