po2prop(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

🌸 NAME 🌸

okay so bestie, meet po2prop(1) from Translate Toolkit 3.12.1. This is the little main character that converts Gettext PO localization files to Java/Mozilla .properties files. That's literally the job, no cap πŸ’…βœ¨

✨ SYNOPSIS ✨

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

πŸ’– DESCRIPTION πŸ’–

The original page says: See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/prop2po.html for examples and usage instructions. So here's the exact link, bestie β€” it's giving docs-and-examples energy, and yes, it's useful, iykyk πŸ¦‹

πŸ’… OPTIONS πŸ’…

okay now the flags, bestie β€” every single one is here, no skipping, periodt.

  • --version β€” show program's version number and exit. iconic exit behavior πŸ’–
  • -h, --help β€” show this help message and exit. the classic β€œhelp me help you” moment 🫢
  • --manpage β€” output a manpage based on the help. yes, it can generate the very kind of page you're reading, meta af ✨
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your vibe check for progress updates 🌈
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. choose how much drama the errors get πŸ’€
  • -i, --input β€” read from INPUT in po, pot formats. that's the source material, bestie πŸŽ€
  • -x, --exclude β€” exclude names matching EXCLUDE from input paths. not me filtering the guest list πŸ™ˆ
  • -o, --output β€” write to OUTPUT in lang, properties, strings formats. the glow-up destination πŸ’…
  • -t, --template β€” read from TEMPLATE in lang, properties, strings formats. template bestie said β€œfollow my lead” πŸ‘‘
  • -S, --timestamp β€” skip conversion if the output file has newer timestamp. lowkey protecting you from unnecessary work ⭐
  • --personality β€” override the input file format: java, java-utf8, java-utf16, xwiki, flex, mozilla, gaia, gwt, skype, strings, strings-utf8, joomla (for .properties files, default: java). so many personalities, all valid, fr fr 🧚
  • --encoding β€” override the encoding set by the personality. when the personality's encoding isn't the moment πŸ’œ
  • --threshold β€” only convert files where the translation completion is above PERCENT. setting the bar, literally πŸ“
  • --fuzzy β€” use translations marked fuzzy. bring the fuzzy ones to the party πŸ“
  • --nofuzzy β€” don't use translations marked fuzzy (default). the default is no fuzzy, bestie 🫢
  • --removeuntranslated β€” remove untranslated strings from output. clean it up, leave no untranslated crumbs 🌸
lowkey important: --nofuzzy is the default, so if you want fuzzy translations in the mix, you gotta say --fuzzy out loud, fr fr.

Translate Toolkit 3.12.1 is the version energy on the footer, bestie β€” and no date was listed, so we're not making one up. signed, sealed, slayed πŸ«ΆπŸ’…πŸŽ€

πŸ“¦ where this page comes from