pretranslate(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

✨ pretranslate(1) β€” the glow-up your localization files deserve ✨

okay bestie, imagine this: you've got a bunch of localization files and they're just… sitting there, empty, giving nothing. enter pretranslate, the Translate Toolkit icon that fills your localization files with suggested translations based on translation memory and existing translations. no cap, it's literally matchmaking for your strings πŸ’–


🌸 SYNOPSIS 🌸

pretranslate [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp] [--tm]
[-s|--similarity] [--nofuzzymatching]

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, the docs said it themselves, so here's the vibe:

See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pretranslate.html for examples and usage instructions.

like, that's the whole mood. go read the examples, they ate πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • --version β€” show the program's version number and dip out. iconic exit behaviour, honestly.
  • -h/--help β€” show this help message and bounce. your lil helper era ✨
  • --manpage β€” output a manpage based on the help. yes, the tool can generate its own manpage, main character energy fr fr.
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your vibe, the dots are lowkey cute 🫢
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. choose how much you wanna hear about the chaos 😭
  • -i/--input β€” read from INPUT in po, pot, pot, xlf, xliff formats. (yes, pot is listed twice in the original β€” not me, I'm just reporting the facts πŸ’€)
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not invited to the party, periodt.
  • -o/--output β€” write to OUTPUT in po, pot, xlf, xliff formats. this is where the slay happens πŸ’–
  • -t/--template β€” read from TEMPLATE in po, pot, xlf, xliff formats. the blueprint, the moment.
  • -S/--timestamp β€” skip conversion if the output file has a newer timestamp. she's fresh already, leave her alone πŸ’…
  • --tm β€” the file to use as translation memory when fuzzy matching. your memory bank, your receipts 🧚
  • -s/--similarity β€” the minimum similarity for inclusion (default: 75%). below that? respectfully, not a match 🌈
  • --nofuzzymatching β€” disable fuzzy matching. no guessing, no vibes, only exact. strict queen behaviour πŸ‘‘

lowkey important: -s/--similarity defaults to 75%, so if you want the bar higher or lower, that's the flag to touch. and --nofuzzymatching turns the whole fuzzy thing off β€” bestie said no approximations today 🫢

🌟 a lil sign-off 🌟

this page came to you courtesy of Translate Toolkit 3.12.1, dated right there in the header and the footer like a matching set. go forth, pretranslate your little heart out, and remember: your strings were always meant to be found πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from