po2html(1)

πŸ’– po2html(1) β€” like, the whole vibe πŸ’–

okay bestie, gather round 🫢 this is po2html, a lil gem from the Translate Toolkit 3.19.5 era, and she does ONE thing and she does it gorgeously: she takes your Gettext PO localization files and uses them to translate HTML files. Yes literally. PO in, translated HTML out. It's giving bilingual main character energy ✨


✨ NAME ✨

po2html β€” translate HTML files using Gettext PO localization files. That's it, that's the whole job, and she ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

po2html [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--threshold PERCENT] [--fuzzy] [--nofuzzy]

no cap, that's the entire invocation. every flag, every argument, exactly as written πŸŽ€


🌸 DESCRIPTION 🌸

Sooo the actual how-to, the examples, the usage instructions β€” all of that lives in the docs, and the manpage is just gonna point you there like a good big sister:

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

bestie go read it, the manpage is literally telling you to πŸ’– (the link says html2po but that's what the original says, so we're keeping it fr fr, character for character, not me editing a manpage πŸ™ˆ)

πŸŽ€ OPTIONS πŸŽ€

every single one. no skipping. we do NOT skip options in this house πŸ‘‘

  • --version β€” shows the program's version number and then dips out. exit stage left πŸ’…
  • -h/--help β€” prints this help message and then leaves. classic.
  • --manpage β€” spits out a manpage built from the help. manpage-ception πŸŒ€
  • --progress β€” shows progress, and you get to pick the flavour: dots, none, bar, names, verbose. pick your aesthetic ✨
  • --errorlevel β€” sets how loud the errors are: none, message, exception, traceback. from "pretend nothing happened" to "whole entire stack trace on main" 😭
  • -i/--input β€” read from INPUT, in po, pot formats. this is your translation source, your queen πŸ‘‘
  • -x/--exclude β€” exclude names matching EXCLUDE from the input paths. not today, file 🚫
  • -o/--output β€” write to OUTPUT, in htm, html, xhtml formats. the glow-up destination πŸ¦‹
  • -t/--template β€” read from TEMPLATE, in htm, html, xhtml formats. the blueprint, the inspo pic 🌈
  • -S/--timestamp β€” skips the conversion if the output file already has a newer timestamp. if it's fresher than you, she's not touching it πŸ’€
  • --threshold β€” only converts files where the translation completion is above PERCENT. so like, if it's under the bar, she's simply not participating πŸ™ˆ
  • --fuzzy β€” use translations that are marked fuzzy. go ahead, use the maybe-correct ones, live your truth ✨
  • --nofuzzy β€” don't use translations marked fuzzy. this is the default, so if you say nothing, fuzzy ones get left on read 🧚
ngl, --fuzzy and --nofuzzy are opposites and only one can be your default bestie β€” and the default is --nofuzzy, periodt.

🫢 SEE ALSO 🫢 (mentally)

the docs link up in DESCRIPTION, hoe. that's the one the manpage gives you, so that's the one you get πŸ’œ


and that's the whole page, bestie!! you're now fully, completely, no-notes fluent in po2html and honestly? iconic 🌟

this lil love letter was brought to you by Translate Toolkit 3.19.5 β€” mwah, stan, bye πŸ’– ✨ πŸŽ€ πŸ¦‹ 🌸 πŸ’… 🫢 πŸ‘‘ 🌈 ⭐ πŸ“

πŸ“¦ where this page comes from