diff --git a/crowdin/generate_android_strings.py b/crowdin/generate_android_strings.py index ead1ed2..1355148 100644 --- a/crowdin/generate_android_strings.py +++ b/crowdin/generate_android_strings.py @@ -75,7 +75,9 @@ def clean_string(text): text = text.replace("</b>", "") text = text.replace("</br>", "\\n") text = text.replace("->", "→") # Use the special unicode for arrows + text = text.replace("->", "→") # Use the special unicode for arrows text = text.replace("<-", "←") # Use the special unicode for arrows + text = text.replace("<-", "←") # Use the special unicode for arrows text = text.replace("
", "\\n") text = text.replace("&", "&") # Assume any remaining ampersands are desired return text.strip() # Strip whitespace diff --git a/crowdin/generate_desktop_strings.py b/crowdin/generate_desktop_strings.py index 341196c..9f5f3d1 100644 --- a/crowdin/generate_desktop_strings.py +++ b/crowdin/generate_desktop_strings.py @@ -69,7 +69,9 @@ def parse_xliff(file_path): def clean_string(text): text = text.replace("->", "→") # Use the special unicode for arrows + text = text.replace("->", "→") # Use the special unicode for arrows text = text.replace("<-", "←") # Use the special unicode for arrows + text = text.replace("<-", "←") # Use the special unicode for arrows text = html.unescape(text) # Unescape any HTML escaping return text.strip() # Strip whitespace diff --git a/crowdin/generate_ios_strings.py b/crowdin/generate_ios_strings.py index 560e6ca..879aa79 100644 --- a/crowdin/generate_ios_strings.py +++ b/crowdin/generate_ios_strings.py @@ -69,7 +69,9 @@ def parse_xliff(file_path): def clean_string(text): text = text.replace("->", "→") # Use the special unicode for arrows + text = text.replace("->", "→") # Use the special unicode for arrows text = text.replace("<-", "←") # Use the special unicode for arrows + text = text.replace("<-", "←") # Use the special unicode for arrows text = html.unescape(text) # Unescape any HTML escaping return text.strip() # Strip whitespace