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 inpo,pot,pot,xlf,xliffformats. (yespotis 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 inpo,pot,xlf,xliffformats βοΈ-t/--templateβ read from TEMPLATE inpo,pot,xlf,xliffformats π§-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
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms