yaml2po(1)
π yaml2po β the manual page, but make it make sense π
okay bestie, welcome to yaml2po(1) from Translate Toolkit 3.19.5 β¨ this lil cutie lives in section 1 of the manual, and she has ONE job: turning your YAML files into Gettext PO localization files. iconic behaviour, honestly.
πΈ NAME πΈ
yaml2po β Convert YAML files to Gettext PO localization files. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
like, here's how you actually call her:
yaml2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-P|--pot] [--duplicates DUPLICATESTYLE] [--personality TYPE]
okay that's a LOT of brackets but don't panic, we're gonna go through every single one fr fr π«Ά
π¦ DESCRIPTION π¦
so the actual tea β β examples and usage instructions live over here:
http://docs.translatehouse.org/projects/translate-
toolkit/en/latest/commands/yaml2po.html
go read it, it's giving helpful π
π OPTIONS π
one bullet per flag, no skipping, no cap:
--versionβ show program's version number and exit. a quick lil "who am I" moment π-h/--helpβ show this help message and exit. when you're lost, she's got you π--manpageβ output a manpage based on the help. yes she can generate her own documentation, main character energy β¨--progressβ show progress as:dots,none,bar,names,verbose. pick your fave way to watch the ~journey~ π--errorlevelβ show errorlevel as:none,message,exception,traceback. how much drama do you want when things go sideways π-i/--inputβ read from INPUT inyaml,ymlformats. feed her the YAML bestie π-x/--excludeβ exclude names matching EXCLUDE from input paths. not today, random files π-o/--outputβ write to OUTPUT inpo,potformats. where the glow-up lands π-t/--templateβ read from TEMPLATE inyaml,ymlformats. template girlies rise π§-S/--timestampβ skip conversion if the output file has newer timestamp. she said "you're already fresh, I'm not touching you" β-P/--potβ output PO Templates (.pot) rather than PO files (.po). template mode activated π--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt(default:'msgctxt'). yes the default ismsgctxt, write it down π--personalityβ override the input YAML format:default,ruby(for Ruby on Rails YAML files with a language root node, e.g.'en:'or'ca:'). choose your fighter π
lowkey reminder:--duplicatesdefaults tomsgctxt, and--personalitydefaults todefaultunless you override it. don't come for me, that's just what the page says π«Ά
π that's the whole thing
no SEE ALSO, no secret bonus flags, nothing hiding in the back. this page is exactly this and nothing more, periodt π
cute sign-off: this page was brought to you by Translate Toolkit 3.19.5 β yaml2po(1), section 1 of the manual. go convert something gorgeous bestie, ily πΈβ¨π¦
π¦ 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