Skip to content

Commit

Permalink
chore: add exception for ru and sr-CS disappearingMessagesTurnedOffGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilb committed Sep 23, 2024
1 parent 23921ce commit 8dd9272
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tools/localization/generateLocales.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 sr_CS 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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8dd9272

Please sign in to comment.