From 99cd8238f9cc40c81b4a68bcdecc4f9c1fc12fca Mon Sep 17 00:00:00 2001 From: Javier Manrique <> Date: Thu, 28 Nov 2024 18:26:20 +0100 Subject: [PATCH] translated directory path fix for InfoPlist.string files --- translator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translator.py b/translator.py index 912fd0e..56cb45b 100644 --- a/translator.py +++ b/translator.py @@ -70,8 +70,8 @@ def create_directory_if_not_exists(directory_name): os.makedirs(directory_name) -def create_ios_directory(language_code): - directory = os.path.join(VALUES_FOLDER, f"{language_code}.lproj") +def create_infoplist_strings_ios_directory(language_code): + directory = os.path.join(VALUES_FOLDER, f"iosApp/{language_code}.lproj") create_directory_if_not_exists(directory) return directory @@ -94,7 +94,7 @@ def translate_ios_infoplist_strings(): for language_name in languages_to_translate: language_code = language_name.strip().lower() - translated_directory = create_ios_directory(language_code) + translated_directory = create_infoplist_strings_ios_directory(language_code) translated_file_path = os.path.join(translated_directory, 'InfoPlist.strings') with open(translated_file_path, 'w', encoding='utf-8') as translated_file: