Fix FileNotFoundError

This commit is contained in:
HackerNCoder 2022-11-07 12:01:52 +01:00
parent ef06aa8744
commit 16db10d131

View file

@ -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):