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 in yaml, yml formats. feed her the YAML bestie πŸ“
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not today, random files πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. where the glow-up lands πŸ’–
  • -t/--template β€” read from TEMPLATE in yaml, yml formats. 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 is msgctxt, 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: --duplicates defaults to msgctxt, and --personality defaults to default unless 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