Don't create an english translation file
This commit is contained in:
parent
99b749aaa2
commit
3d019d3ca8
|
@ -25,6 +25,8 @@ class Translator:
|
||||||
Loads compiled translations.
|
Loads compiled translations.
|
||||||
"""
|
"""
|
||||||
for language in cls.SUPPORTED_LOCALES:
|
for language in cls.SUPPORTED_LOCALES:
|
||||||
|
if language == "en":
|
||||||
|
continue
|
||||||
rep = Path(__file__).parent / "locale" / language / "LC_MESSAGES"
|
rep = Path(__file__).parent / "locale" / language / "LC_MESSAGES"
|
||||||
rep.mkdir(parents=True) if not rep.is_dir() else None
|
rep.mkdir(parents=True) if not rep.is_dir() else None
|
||||||
if os.path.isfile(rep / "squirrelbattle.mo"):
|
if os.path.isfile(rep / "squirrelbattle.mo"):
|
||||||
|
|
Loading…
Reference in New Issue