Don't translate in english since it is the main language

This commit is contained in:
Yohann D'ANELLO
2020-12-05 13:07:37 +01:00
parent 4b9399c687
commit 25c42ea9e8
3 changed files with 4 additions and 218 deletions

View File

@ -53,6 +53,9 @@ class Translator:
Analyse all strings in the project and extract them.
"""
for language in cls.SUPPORTED_LOCALES:
if language == "en":
# Don't translate the main language
continue
file_name = Path(__file__).parent / "locale" / language \
/ "LC_MESSAGES" / "squirrelbattle.po"
args = ["find", "squirrelbattle", "-iname", "*.py"]