summaryrefslogtreecommitdiffstats
path: root/qml/mageiawelcome.py
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-12-28 04:16:43 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-12-28 05:02:37 +0100
commit6c7c5119f817fcbbd9673668b239399f77142d3a (patch)
tree46a59f010bfdfabb184056e6bdb3815d5fc3a326 /qml/mageiawelcome.py
parentab93af0fad57f412fe17d876bbdc043dd35646b6 (diff)
downloadmageiawelcome-6c7c5119f817fcbbd9673668b239399f77142d3a.tar
mageiawelcome-6c7c5119f817fcbbd9673668b239399f77142d3a.tar.gz
mageiawelcome-6c7c5119f817fcbbd9673668b239399f77142d3a.tar.bz2
mageiawelcome-6c7c5119f817fcbbd9673668b239399f77142d3a.tar.xz
mageiawelcome-6c7c5119f817fcbbd9673668b239399f77142d3a.zip
fix loading translations
else we would fail to load them from the proper place Issues: 1) due to missing context, some translations are NOT used in eg: french 2) For some languages (eg: br), no translations are used at all???
Diffstat (limited to 'qml/mageiawelcome.py')
-rw-r--r--qml/mageiawelcome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py
index c6bedd0..132922f 100644
--- a/qml/mageiawelcome.py
+++ b/qml/mageiawelcome.py
@@ -142,7 +142,7 @@ if __name__ == '__main__':
if qtTranslator.load("qt_" + locale,QLibraryInfo.location(QLibraryInfo.TranslationsPath)):
app.installTranslator(qtTranslator)
appTranslator = QTranslator()
- if appTranslator.load(QLocale(),"mageiawelcome","_",os.path.join(os.getcwd(),'translations')):
+ if appTranslator.load(QLocale(),"mageiawelcome","_", '/usr/share/mageiawelcome/translations'):
app.installTranslator(appTranslator)
view = QQuickView()
view.setResizeMode(QQuickView.SizeRootObjectToView)