From c383b340bfdffcf44cb06af92f0609f36c55c54f Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 4 May 2021 15:34:48 +0300 Subject: [PATCH] Fix script for translations --- translation/convert_translation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/translation/convert_translation.py b/translation/convert_translation.py index 43510f901..2cae66ce5 100644 --- a/translation/convert_translation.py +++ b/translation/convert_translation.py @@ -104,7 +104,8 @@ for i in range(len(app_names)): if os.path.isdir(src_path): add_langs = os.listdir(src_path) for l in range(len(langs)): - add_langs.remove(langs[l]) + if add_langs.count(langs[l])>0: + add_langs.remove(langs[l]) for l in range(len(add_langs)): lang = add_langs[l] shutil.copyfile(src_path + lang, dest_path + lang)