md2po(1)
π 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 inmarkdown,md,text,txtformats π₯-x/--excludeβ excludes names matching EXCLUDE from input paths. not today, unwanted files π«-o/--outputβ writes to OUTPUT inpo,potformats π€-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,topleveloronefile)--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
- 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