md2po(1)

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

πŸ’… md2po β€” the one where your Markdown becomes a PO file

okay so first things first: this is md2po, and she lives in the Translate Toolkit family (specifically Translate Toolkit 3.19.5, in case you were wondering which era of slay we're in ✨). Her whole thing? She takes your Markdown files and turns them into Gettext PO localization files. Like a glow-up but for translation units. πŸ‘‘


🌸 SYNOPSIS 🌸

no thoughts, just vibes, but the vibes are extremely specific:

md2po [--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] [--multifile MULTIFILESTYLE]
[--no-code-blocks] [--no-frontmatter] [--no-placeholders]

periodt. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, the docs said it better than I ever could, so here's where you go for examples and usage instructions:

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

that's it, that's the description. go read it, I'll wait 🫢


✨ OPTIONS ✨

every single flag, no skips, no shortcuts, because we don't gatekeep here πŸ’–

  • --version β€” shows the program's version number and then dips πŸ‘‹
  • -h/--help β€” shows you this very help message and then dips πŸ‘‹
  • --manpage β€” outputs a manpage based on the help. very meta of her, honestly πŸ™ˆ
  • --progress β€” shows progress as: dots, none, bar, names, verbose. pick your fave, they're all valid πŸ’…
  • --errorlevel β€” shows errorlevel as: none, message, exception, traceback
  • -i/--input β€” reads from INPUT in markdown, md, text, txt formats πŸ“₯
  • -x/--exclude β€” excludes names matching EXCLUDE from input paths. not today, unwanted files 🚫
  • -o/--output β€” writes to OUTPUT in po, pot formats πŸ“€
  • -t/--template β€” reads from TEMPLATE in 🌱
  • -S/--timestamp β€” skips the conversion if the output file has a newer timestamp. she checks the receipts first, iconic behavior ⏰
  • -P/--pot β€” outputs PO Templates (.pot) rather than PO files (.po)
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt')
  • --multifile β€” how to split po/pot files (single, toplevel or onefile)
  • --no-code-blocks β€” do not extract code blocks for translation 🧱
  • --no-frontmatter β€” do not extract front matter for translation
  • --no-placeholders β€” render inline elements (links, images, autolinks, HTML spans) verbatim in translation units instead of replacing them with {n} placeholder markers. lowkey a big deal if you care about your brackets πŸŽ€

and that's the whole page, bestie! this absolute queen was brought to you by Translate Toolkit 3.19.5, and yes her name is still md2po(1). go translate something gorgeous πŸ’–βœ¨πŸŒ·

πŸ“¦ where this page comes from