Skip to content

Commit

Permalink
Fix po translation validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Danstiv committed Sep 4, 2024
1 parent d3d10df commit a766650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/process_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def convert_po_to_lng(*, project_path, english_lng, file, language_code, languag
lng = {"Culture": language_code, "Language": language_name.lower()}
for identifier, string in english_lng.items():
translated_string = po_translation._catalog.get(
convert_percents_to_braces(string), None
convert_percents_to_braces(string).replace("\r\n", "\n"), None
)
if translated_string is None:
missing_strings.append(f"{identifier} - {string[:200]}")
Expand Down

0 comments on commit a766650

Please sign in to comment.