po2yaml(1)
πΈ po2yaml β the manual page, but make it make sense π
okay so bestie, this is po2yaml(1) from the Translate Toolkit, and it's literally the glow-up pipeline: you take your Gettext PO localization files and you turn them into YAML files. no cap. π
β¨ NAME β¨
po2yaml β Convert Gettext PO localization files to YAML files. that's it, that's the whole job, and it does it flawlessly π
π¦ SYNOPSIS π¦
po2yaml [--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] [--personality TYPE]
like yes queen, that's a LOT of flags, but every single one is here to help you and we're gonna go through all of them together π«Ά
π DESCRIPTION π
okay so the toolkit itself wants you to go read the docs for examples and usage instructions, and honestly? respect. they said:
See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/yaml2po.html for examples and usage instructions.
(that's the yaml2po page btw β the reverse direction β and yes, the original manual really does point you there, so go look at it and don't @ me π)
π OPTIONS π
every flag, every default, no skips. take notes bestie π
--versionβ shows the program's version number and then exits. short and iconic β¨-h/--helpβ shows this help message and exits. your "wait what was that flag again" emergency button π--manpageβ spits out a manpage based on the help output. manpage-ception, we love to see it π--progressβ shows progress as:dots,none,bar,names,verbose. pick your vibe of ongoing-ness π₯--errorlevelβ shows errorlevel as:none,message,exception,traceback. how much detail do you want when things go sideways, choose wisely π-i/--inputβ read from INPUT inpo,potformats. this is your source material bestie π₯-x/--excludeβ exclude names matching EXCLUDE from input paths. bye felicia, not you π«-o/--outputβ write to OUTPUT inyaml,ymlformats. the destination of the whole glow-up π-t/--templateβ read from TEMPLATE inyaml,ymlformats. for when you want the finished thing to already know its shape β¨-S/--timestampβ skip conversion if the output file has a newer timestamp. it's giving "girl you're already up to date, go drink water" π--thresholdβ only convert files where the translation completion is above PERCENT. a vibe check for your translations, literally π--fuzzyβ use translations marked fuzzy π--nofuzzyβ don't use translations marked fuzzy (this is the default, so if you do nothing, nothing fuzzy gets in, periodt) π--personalityβ override the output YAML format:default,ruby(for Ruby on Rails YAML files with a language root node, e.g.'en:'or'ca:'). yes, it's called personality, and yes, that's the most main-character option name in this whole toolkit π§
β οΈ heads up:--nofuzzyis the default. so if you're like "why are my fuzzy translations not showing up π" β that's why. pass--fuzzyif you want them, bestie.
π SEE ALSO π
(no see-also section in the original, so we're keeping it that way β but the DESCRIPTION does send you to http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/yaml2po.html, which is your homework, do it π)
and that's the whole page, you ate that π½οΈπ go convert some PO files into YAML and be the main character of your localization pipeline. sending you so much love from Translate Toolkit 3.19.5 β that's the version that brought you this little masterpiece. mwah ππβ¨
π¦ 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