From 095e100d8f6236449adba1fb2d96bad2cca928be Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Thu, 19 Sep 2024 14:49:56 +1000 Subject: [PATCH] chore: add exception for ru and sr-CS disappearingMessagesTurnedOffGroup --- tools/localization/generateLocales.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tools/localization/generateLocales.py b/tools/localization/generateLocales.py index d59c30ab26..506e8a110c 100755 --- a/tools/localization/generateLocales.py +++ b/tools/localization/generateLocales.py @@ -25,7 +25,13 @@ ignored_strings_formatting = { "pl": [ # disappearingMessagesTurnedOffYouGroup in pl only has one bold word as the word combines both bold words - "disappearingMessagesTurnedOffYouGroup"] + "disappearingMessagesTurnedOffYouGroup"], + "ru": [ + # disappearingMessagesTurnedOffGroup in ru only has one bold word as the word combines both bold words + "disappearingMessagesTurnedOffGroup"], + "sr_CS": [ + # disappearingMessagesTurnedOffGroup in ru only has one bold word as the word combines both bold words + "disappearingMessagesTurnedOffGroup"] } # If the --throw-error-on-missing flag is passed, the script will exit with an error if there are any missing keys or dynamic variables @@ -261,14 +267,14 @@ if locale in ignored_strings_formatting and tag_strings == ignored_strings_formatting[locale]: continue if not printed_locale: - print(f"{locale} - [Link Here](https://crowdin.com/editor/session-crossplatform-strings/300/en-{locale})") + print(f"{locale}") printed_locale = True for tag_string in tag_strings: if tag_string not in printed_problem_strings: printed_problem_strings.add(tag_string) number_of_tag_problems += 1 print( - f"- [{tag_string}](https://crowdin.com/editor/session-crossplatform-strings/300/en-{locale}?view=comfortable&filter=basic&value=3#q={tag_string})") + f"- [{tag_string}](https://crowdin.com/editor/session-crossplatform-strings/300/en-{locale.replace('-','').replace('_','').lower()}?view=comfortable&filter=basic&value=3#q={tag_string})") print(f"Total Problems: {number_of_tag_problems}") if args.print_problems: