From a58f5045cc492ae31f5c186a64423fefe67eb9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Ruz=20Nieto?= <40019177+aruznieto@users.noreply.github.com> Date: Wed, 6 Sep 2023 19:18:53 +0200 Subject: [PATCH] Update updateCrowdin.py --- chameleonultragui/lib/l10n/updateCrowdin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chameleonultragui/lib/l10n/updateCrowdin.py b/chameleonultragui/lib/l10n/updateCrowdin.py index e742b3a1..c06a827f 100644 --- a/chameleonultragui/lib/l10n/updateCrowdin.py +++ b/chameleonultragui/lib/l10n/updateCrowdin.py @@ -33,9 +33,9 @@ def add_string_to_source(string): try: string_parsed = string.split('app_en.arb', 1)[1].replace(' ', '').replace(',', '').replace('\n','').split('+')[1:] for s in string_parsed: - data = {'identifier': key.replace('"', ''), 'text': value.replace('"', ''), 'fileId': sourceId} try: key, value = s.split(':') + data = {'identifier': key.replace('"', ''), 'text': value.replace('"', ''), 'fileId': sourceId} request('POST', f"https://api.crowdin.com/api/v2/projects/{projectId}/strings", data) print("Added: ", key) except Exception as e: