Skip to content

Commit

Permalink
Don't capitalize "UltiMaker" for brand names
Browse files Browse the repository at this point in the history
CURA-10376
  • Loading branch information
casperlamboo committed Apr 3, 2023
1 parent ef09fe6 commit af4efad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/fix_translation_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ def load_existing_po(path: Path) -> dict:
def sanitize(text: str) -> str:
"""Sanitize the text"""
# TODO: check if Digitial Factory Ultimaker etc handled correctly
return unescape(text.replace("Ultimaker", "UltiMaker").replace("\"\"", "").replace("\"#~", ""))
text = text.replace("\"\"", "").replace("\"#~", "")
text = text.replace("Ultimaker", "UltiMaker")
text = text.replace("UltiMaker Digital Library", "Ultimaker Digital Library")
text = text.replace("UltiMaker Digital Factory", "Ultimaker Digital Factory")
text = text.replace("UltiMaker Marketplace", "Ultimaker Marketplace")
return unescape(text)

def main(tmx_source_path: Path, tmx_target_path: Path, i18n_path: Path):

Expand Down

0 comments on commit af4efad

Please sign in to comment.