po2moz(1)

πŸ’… po2moz β€” the group chat version

okay bestie, so po2moz is a command from Translate Toolkit and it's literally the glow-up station for your translations. It takes Gettext PO localization files and turns them into Mozilla .dtd and .properties files. That's the whole job. That's the vibe. πŸ¦‹


✨ NAME ✨

po2moz β€” Convert Gettext PO localization files to Mozilla .dtd and .properties files. no notes, that's it, that's the mission πŸ’–


✨ SYNOPSIS ✨

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

✨ DESCRIPTION ✨

The manpage itself says to go here for examples and usage instructions:

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

(yes bestie, that's the moz2po page β€” that's what the original says, so that's what you get. iykyk 🫢)


✨ OPTIONS ✨

  • --version β€” show the program's version number and exit. peek at who she is, then dip ✌️
  • -h/--help β€” show this help message and exit. the classic. your best friend.
  • --manpage β€” output a manpage based on the help. manpage-ception, iconic.
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your progress aesthetic πŸŽ€
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much do you wanna know when things go wrong 😭
  • -i/--input β€” read from INPUT in *, dtd.po, dtd.pot, inc.po, inc.pot, ini.po, ini.pot, it.po, it.pot, js, lang.po, lang.pot, manifest, properties.po, properties.pot, rdf formats. yes, all of those. the whole lineup πŸ’…
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not in my house πŸ™ˆ
  • -o/--output β€” write to OUTPUT in *, dtd, inc, ini, it, js, lang, manifest, properties, rdf formats. this is where the magic gets dropped ✨
  • -t/--template β€” read from TEMPLATE in *, dtd, inc, ini, it, js, lang, manifest, properties, rdf formats. shape it up with a template πŸ”₯
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. she's not doing work that's already been done, periodt ⏭️
  • -l/--locale β€” set output locale. and listen: this one is required, because it sets the directory names. don't skip her, fr fr 🫢
  • --threshold β€” only convert files where the translation completion is above PERCENT. no half-finished energy here πŸ‘‘
  • --fuzzy β€” use translations marked fuzzy. embrace the blur πŸŒ€
  • --nofuzzy β€” don't use translations marked fuzzy (default). the original ick-avoidant behaviour 🌸
  • --removeuntranslated β€” remove untranslated strings from output. if it's not translated, it's not invited, bye πŸ’€
lowkey important bestie: -l/--locale is required, because it's the thing that decides the directory names. not optional. not a suggestion. slay responsibly πŸ’œ

that's the whole page, no cap. this was Translate Toolkit 3.19.5 doing the most for your localization game β€” go convert something gorgeous, bestie πŸ§šβ€β™€οΈπŸ’–βœ¨

πŸ“¦ where this page comes from