Fix FileNotFoundError
This commit is contained in:
parent
ef06aa8744
commit
16db10d131
2
mo2tl.py
2
mo2tl.py
|
@ -149,7 +149,7 @@ def mo2tl(projectpath, mofile, renpy_target_language):
|
||||||
rttk.msgfmt.make(pofile, dest_mofile)
|
rttk.msgfmt.make(pofile, dest_mofile)
|
||||||
else:
|
else:
|
||||||
shutil.copy2(mofile, dest_mofile)
|
shutil.copy2(mofile, dest_mofile)
|
||||||
translations = gettext.translation('game', localedir)
|
translations = gettext.translation('game', localedir, [os.environ['LANG']])
|
||||||
class NoneOnMissingTranslation:
|
class NoneOnMissingTranslation:
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def gettext(str):
|
def gettext(str):
|
||||||
|
|
Loading…
Reference in a new issue