Skip to content

Commit 97efd3a

Browse files
committed
allow introspection on translator
1 parent 35201fc commit 97efd3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

qgist/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ def getTranslationPath(language):
8080
try:
8181
localePath = getTranslationPath('en')
8282
except:
83-
return None
83+
return None, None
8484

8585
translator = QTranslator()
8686
translator.load(localePath)
8787
QCoreApplication.installTranslator(translator)
88-
return translator
88+
return translator, localePath
8989

9090
def translate(context, key):
9191
"""

qgist/workbench/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def initGui(self):
108108
QGis Plugin Interface Routine
109109
"""
110110

111-
setupTranslation(os.path.join(
111+
self._translator, self._translator_path = setupTranslation(os.path.join(
112112
self._plugin_root_fld, TRANSLATION_FLD
113113
))
114114

0 commit comments

Comments
 (0)