moz2po(1)

✨ moz2po β€” bestie edition ✨

okay so you found the moz2po(1) manual page, and honestly? iconic of you. this is part of the Translate Toolkit, version 3.19.5, and it's the little tool that turns Mozilla's .dtd and .properties files into Gettext PO files. let's get into it πŸ’…


🌸 NAME 🌸

moz2po</purl> β€” Convert Mozilla .dtd and .properties files to Gettext PO localization files. that's it, that's the job, and it slays πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

moz2po [--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]

πŸ’– DESCRIPTION πŸ’–

like… just go read it, bestie:

http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/moz2po.html
that link has examples and usage instructions, fr fr. the manpage itself is giving "check the docs" energy and honestly? valid.

✨ OPTIONS ✨

  • --version β€” shows the program's version number and then dips out. bye πŸ‘‹
  • -h/--help β€” shows this help message and exits. the classic "help me help you" move 🫢
  • --manpage β€” outputs a manpage based on the help. recursion but make it cute.
  • --progress β€” shows progress as: dots, none, bar, names, verbose. pick your vibe check.
  • --errorlevel β€” shows errorlevel as: none, message, exception, traceback. when things go wrong, how loud do you want it? 😭
  • -i/--input β€” read from INPUT in *, dtd, inc, ini, it, js, lang, manifest, properties, rdf formats. so many formats, so little time.
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not me ghosting certain files πŸ’€
  • -o/--output β€” write to OUTPUT 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. the full menu, no crumbs left.
  • -t/--template β€” read from TEMPLATE in *, dtd, inc, ini, it, js, lang, manifest, properties, rdf formats. yes the same list as input, no i'm not kidding.
  • -S/--timestamp β€” skip conversion if the output file has newer timestamp. she's efficient, she's not doing work twice πŸ’…
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). lowercase .po, uppercase .pot, chaos but organized.
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt'). when the same string shows up twice, you gotta decide how to handle it. default says msgctxt, always.

heads up bestie: that --duplicates default is 'msgctxt'. like, actually with the quotes in the docs. don't come for me, i'm just the messenger 😌

and that's the whole page!! every flag, every format, every default, preserved like a pressed flower πŸ“

this was the moz2po(1) manual page from Translate Toolkit 3.19.5 β€” mwah, sending you off with main character energy πŸ‘‘βœ¨

πŸ“¦ where this page comes from