Skip to content

Commit

Permalink
Check if translations are in temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
w9cf committed Jan 22, 2023
1 parent 3743547 commit 06c24dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/cwsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,10 @@ def close(self):
tdir = os.path.dirname(sys.executable)
else:
tdir = os.path.dirname(__file__)
try:
tdir = sys._MEIPASS # check for translations in pyinstall temp directory
except:
pass
tfile = QtCore.QLocale.system().name() + '.qm'
tdir = os.path.join(tdir,'translate')
translator.load(tfile,tdir)
Expand Down

0 comments on commit 06c24dc

Please sign in to comment.