From 16db10d1319555b96fe8cfded6133a43f07a5ac8 Mon Sep 17 00:00:00 2001 From: HackerNCoder Date: Mon, 7 Nov 2022 12:01:52 +0100 Subject: [PATCH] Fix FileNotFoundError --- mo2tl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mo2tl.py b/mo2tl.py index d8102e3..960ea32 100755 --- a/mo2tl.py +++ b/mo2tl.py @@ -149,7 +149,7 @@ def mo2tl(projectpath, mofile, renpy_target_language): rttk.msgfmt.make(pofile, dest_mofile) else: shutil.copy2(mofile, dest_mofile) - translations = gettext.translation('game', localedir) + translations = gettext.translation('game', localedir, [os.environ['LANG']]) class NoneOnMissingTranslation: @staticmethod def gettext(str):