html2po(1)
π html2po(1) β the bestie guide π
okay so. bestie. listen. html2po is the little command that takes your HTML files and turns them into Gettext PO localization files, and honestly? it's giving translator-core. it's part of the Translate Toolkit (version 3.19.5, for the record π), and this is its manual page but make it make sense.
β¨ NAME β¨
html2po β convert HTML files to Gettext PO localization files. that's the whole vibe. HTML in, PO out, slay. π¦
πΈ SYNOPSIS πΈ
html2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-P|--pot] [--keepcomments] [--duplicates DUPLICATESTYLE] [--multifile
MULTIFILESTYLE]
like, that's a LOT of flags but don't panic, we're going through every single one below π
π DESCRIPTION π
so the actual examples and usage instructions live here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/html2po.html
go read that for the receipts, iykyk. this page is just the flags, but i'll hold your hand through all of them π«Ά
π OPTIONS π
every single one. no skips. periodt.
--versionβ shows the program's version number and then dips out. bye βοΈ-h,--helpβ shows this help message and then also dips. iconic behaviour honestly.--manpageβ outputs a manpage built from the help. meta much? π--progressβ shows progress as one of:dots,none,bar,names,verbose. pick your vibe check.--errorlevelβ shows error level as one of:none,message,exception,traceback. how much drama do you want when something goes wrong, bestie?-i,--inputβ read from INPUT inhtm,html,xhtmlformats. this is where the source files come from π-x,--excludeβ exclude names matching EXCLUDE from the input paths. not you, not you, not you π-o,--outputβ write to OUTPUT inpo,potformats. the destination, the main character of the file system β¨-t,--templateβ read from TEMPLATE in. (yes, the formats list after "in" is literally empty in the original, so i'm not gonna invent one, okay? leave her alone π)-S,--timestampβ skip conversion if the output file has a newer timestamp. if it's fresher than you, don't touch it π-P,--potβ output PO Templates (.pot) rather than PO files (.po). template era.--keepcommentsβ preserve html comments as translation notes in the output. keeping the receipts, love that for us π--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt(default:'msgctxt'). so like, same words showing up twice? you decide if they get merged or handled with msgctxt. the default ismsgctxt, no cap.--multifileβ how to split po/pot files:single,topleveloronefile. choose your splitting situation π
π little reminder bestie: don't guess at what these do beyond what's written here β the flags are the flags, and the defaults are the defaults. respect the manpage π
π§ and that's the page π§
that's it, that's the whole manual. go localize something pretty and text your translator bestie about it. π
this page is part of Translate Toolkit 3.19.5, and it's the html2po(1) manual. bye bye, ily, drink water πΈπ¦β¨
π¦ 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