pretranslate(1)

πŸ’– pretranslate β€” the glow-up your translations have been waiting for πŸ’–

okay bestie, sit down, hydrate, and let me tell you about the pretranslate(1) command from the Translate Toolkit era of 3.19.5. it fills your localization files with suggested translations based on translation memory and the translations you already have. it's giving matchmaker but for strings, fr fr. ✨


🌸 NAME 🌸

pretranslate β€” fill localization files with suggested translations based on translation memory and existing translations.

like. it literally goes "oh you already translated a thing that looks like this? say less, here's a suggestion." πŸ‘‘


πŸŽ€ 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]

she's flexible, she takes options, she's the main character of your pipeline. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, the full glow-up guide lives here β€” examples, usage instructions, the whole vibe:

http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pretranslate.html

go read it, iykyk. πŸ“–


✨ OPTIONS ✨

  • --version β€” show the program's version number and dip. bye bestie πŸ‘‹
  • -h/--help β€” show this help message and exit. the classic.
  • --manpage β€” output a manpage based on the help. yes, a manpage about a manpage, don't think about it too hard 🫠
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your aesthetic πŸ’«
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much drama do you want when things go wrong 😭
  • -i/--input β€” read from INPUT in po, pot, pot, xlf, xliff formats. (yes pot is listed twice, no i'm not touching it, she said what she said πŸ™ˆ)
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not you, other thing 🚫
  • -o/--output β€” write to OUTPUT in po, pot, xlf, xliff formats ✍️
  • -t/--template β€” read from TEMPLATE in po, pot, xlf, xliff formats 🧚
  • -S/--timestamp β€” skip conversion if the output file has a newer timestamp. she respects the freshness ⏰
  • --tm β€” the file to use as translation memory when fuzzy matching. the actual memory keeper πŸ’œ
  • -s/--similarity β€” the minimum similarity for inclusion (default: 75%). standards! we have them! πŸ“
  • --nofuzzymatching β€” disable fuzzy matching. no more ~close enough~ energy, only exact vibes πŸ”₯

ngl bestie, if you turn off fuzzy matching with --nofuzzymatching, you're turning off the whole fuzzy-matching party β€” so know what you're doing before you flip that switch πŸ’€

and that's the whole page, no cap. it's pretranslate(1) from Translate Toolkit 3.19.5 β€” go forth, pretranslate, and slay your localization workflow. periodt. πŸ’…πŸŒˆπŸ’–

πŸ“¦ where this page comes from