po2ini(1)

πŸ’– po2ini(1) β€” the translate-toolkit glow-up πŸ’–

okay bestie, gather round, because this is the little command-line fairy that turns your Gettext PO files into .ini files and honestly? she ate. ✨


🌸 NAME 🌸

po2ini β€” converts Gettext PO localization files into .ini files. that's it, that's the whole job, and she does it FLAWLESSLY. πŸ’…


🌈 SYNOPSIS 🌈

po2ini [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--threshold PERCENT] [--fuzzy] [--nofuzzy]

like… look at her. a whole lineup of flags. main character energy fr fr. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so the actual vibe here is documented elsewhere, and I'm not gonna gatekeep the link:

See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/ini2po.html for examples and usage instructions.

(no cap, that's where the examples and usage instructions live. go read it, it's giving educational. πŸ“šβœ¨)


✨ OPTIONS ✨

every single one of them, bestie, no skips, no skimming, we are doing this properly 🫢

  • --version β€” show the program's version number and then dip. bye! πŸ‘‹
  • -h/--help β€” show this help message and exit. your emergency bestie when you forget a flag 😭
  • --manpage β€” output a manpage based on the help. manpage-ception. 🀯
  • --progress β€” show progress as one of: dots, none, bar, names, verbose. pick your aesthetic πŸ’…
  • --errorlevel β€” show errorlevel as one of: none, message, exception, traceback. how much detail do you want when things go sideways πŸ™ˆ
  • -i/--input β€” read from INPUT in po, pot formats. this is where you point at your PO files πŸ’–
  • -x/--exclude β€” exclude names matching EXCLUDE from the input paths. not today, satan 🚫
  • -o/--output β€” write to OUTPUT in ini, isl formats. two formats, one icon πŸŽ€
  • -t/--template β€” read from TEMPLATE in ini, isl formats. she copies the shape of the template 🌸
  • -S/--timestamp β€” skip the conversion if the output file has a newer timestamp. lowkey lazy highkey efficient ⭐
  • --threshold β€” only convert files where the translation completion is above PERCENT. set the bar, queen πŸ‘‘
  • --fuzzy β€” use translations marked fuzzy. yes, the fuzzy ones, we're getting them ✨
  • --nofuzzy β€” don't use translations marked fuzzy. this is the default, so if you don't say anything, fuzzy stays out of the party πŸŽ‰
⚠️ real talk: --fuzzy and --nofuzzy are opposites, and --nofuzzy is what you get unless you say otherwise. don't fight me on this, it's literally in the manual πŸ’€

πŸ’œ a lil sign-off πŸ’œ

that's the whole page, bestie. this one's from Translate Toolkit 3.19.5, and it's giving polished, it's giving documented, it's giving… a manpage that finally makes sense. go forth and convert. πŸ’–βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from