toml2po(1)

πŸ“¦
version 3.19.5 Β· 2 versions
, in ubuntu stonking

πŸ’– toml2po β€” the Unix manual page, but make it cute πŸ’–

okay bestie, welcome to toml2po, section 1 of the manual, straight out of Translate Toolkit 3.19.5 ✨ this is the little command that takes your TOML files and turns them into Gettext PO localization files, and honestly? it's giving translator-girlboss energy πŸ‘‘


πŸŽ€ NAME πŸŽ€

toml2po β€” convert TOML files to Gettext PO localization files. that's it, that's the whole job, and she does it flawlessly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

toml2po [--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]

no cap, that's the whole invocation laid out for you like an outfit flat-lay 🌸


🌈 DESCRIPTION 🌈

okay so there's a whole doc page with examples and usage instructions waiting for you:

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

for examples and usage instructions. go read it, i'll wait 🫢


✨ OPTIONS ✨

every single flag, none skipped, fr fr:

  • --version β€” show program's version number and exit πŸ‘‹ like she's announcing herself at the door
  • -h/--help β€” show this help message and exit. your safety net, bestie 🧚
  • --manpage β€” output a manpage based on the help πŸ“œ meta, honestly iconic
  • --progress β€” show progress as: dots, none, bar, names, verbose ⏳ pick your vibe
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback 😭 how much drama do you want when things go wrong
  • -i/--input β€” read from INPUT in toml format πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths 🚫 say bye to the ones you don't want
  • -o/--output β€” write to OUTPUT in po, pot formats πŸ“€
  • -t/--template β€” read from TEMPLATE in toml format πŸ“‹
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp ⏰ she's not gonna redo work she already did
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po) πŸ“
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt') πŸ‘―β™€οΈ two identical strings walk into a bar and you decide their fate

πŸ’€ heads up: --duplicates is the one with actual choices β€” merge or msgctxt β€” and if you don't pick, you get msgctxt. the default is msgctxt. don't forget it.

πŸ‘‘ SEE ALSO πŸ‘‘

hmm, the original doesn't list any SEE ALSO entries here β€” the cross-references live in that docs link up top. go peek at the URL, it's the main character of the DESCRIPTION πŸ’œ


and that's the whole page, bestie β€” toml2po, section 1, from Translate Toolkit 3.19.5. mwah, go convert something gorgeous πŸŒŸπŸ’–

πŸ“¦ where this page comes from