mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Don't capitalize "UltiMaker" for brand names
CURA-10376
This commit is contained in:
parent
ef09fe640b
commit
af4efad1cf
1 changed files with 6 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue