Merge branch 'fix-yay' into 'master'

Don't create an english translation file

See merge request ynerant/squirrel-battle!80
This commit is contained in:
ynerant 2021-01-21 01:14:17 +01:00
commit 284a22c92e
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ class Translator:
Loads compiled translations.
"""
for language in cls.SUPPORTED_LOCALES:
if language == "en":
continue
rep = Path(__file__).parent / "locale" / language / "LC_MESSAGES"
rep.mkdir(parents=True) if not rep.is_dir() else None
if os.path.isfile(rep / "squirrelbattle.mo"):