|
|
@ -62,9 +62,8 @@ language = QtCore.QLocale().languageToString(QtCore.QLocale().language()) |
|
|
|
logger.info("{}: Language set to {}".format(METADATA["name"], language)) |
|
|
|
if language in METADATA["supportedLanguages"]: |
|
|
|
translator = QtCore.QTranslator() |
|
|
|
translator.load(METADATA["supportedLanguages"][language], ":/template/translations/") #colon to make it a resource URL |
|
|
|
translator.load(METADATA["supportedLanguages"][language], ":/translations/") #colon to make it a resource URL |
|
|
|
qtApp.installTranslator(translator) |
|
|
|
|
|
|
|
else: |
|
|
|
"""silently fall back to English by doing nothing""" |
|
|
|
|
|
|
|