po2md(1)

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

πŸ’… po2md β€” the manual page, but make it cute

okay bestie, so po2md is a lil command from the Translate Toolkit (we're on version 3.19.5, iconic) that takes your Gettext PO localization files and uses them to actually translate your Markdown files. like, you did the translations, now let's render them. periodt. πŸŽ€


✨ NAME ✨

po2md β€” translate Markdown files using Gettext PO localization files πŸ’–


🌸 SYNOPSIS 🌸

po2md [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[-m|--maxlinelength] [--no-code-blocks] [--no-frontmatter] [--no-
placeholders] [--threshold PERCENT] [--fuzzy] [--nofuzzy]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, the full tea, examples, and usage instructions live over here:

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

go look at that if you want the full story, i'm just here to explain the flags, no cap. πŸ‘‘


πŸ’œ OPTIONS πŸ’œ

  • --version β€” spills the program's version number, then dips out ✌️
  • -h/--help β€” shows you this help message, then dips out ✌️
  • --manpage β€” spits out a manpage built from the help. manpage-ception, we love it πŸ’€
  • --progress β€” how much progress tea do you want? pick your vibe: dots, none, bar, names, verbose
  • --errorlevel β€” how dramatic should errors be? choose your energy: none, message, exception, traceback
  • -i/--input β€” read from INPUT, in po, pot formats πŸ“
  • -x/--exclude β€” ghost πŸ‘» any names matching EXCLUDE out of the input paths
  • -o/--output β€” write to OUTPUT, in markdown, md, text, txt formats
  • -t/--template β€” read from TEMPLATE, in markdown, md, text, txt formats
  • -S/--timestamp β€” skip the conversion if the output file already has a newer timestamp. she's already cute, don't touch her πŸ’…
  • -m/--maxlinelength β€” reflow (word wrap) the output to the given maximum line length. set it to 0 to disable. yes <italic>0</italic> means off, lowkey chaotic but okay ✨
  • --no-code-blocks β€” do not extract code blocks for translation. hands off the code, bestie πŸ™ˆ
  • --no-frontmatter β€” do not extract front matter for translation
  • --no-placeholders β€” instead of the {n} placeholder markers, look up translation units by their full inline markdown (links, images, autolinks, HTML spans rendered verbatim). ⚠️ use this together with md2po --no-placeholders, they're a matching set okay 🫢
  • --threshold β€” only convert files where the translation completion is above PERCENT
  • --fuzzy β€” use translations marked fuzzy ✨
  • --nofuzzy β€” don't use translations marked fuzzy. this is the default, she's the baseline behavior πŸ’–

🌈 reminder bestie: these have to stay exactly as written β€” don't go renaming flags or "fixing" them, the computer will simply not get it. iykyk.

mwah πŸ’‹ that's the whole page, written by the Translate Toolkit crew. this version is 3.19.5 and the manpage lives in the po2md(1) section of the manual. go translate something gorgeous, you ate fr fr πŸ‘‘βœ¨πŸŒΈ

πŸ“¦ where this page comes from