dtd2po(1)

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

πŸ’… dtd2po(1) β€” your Mozilla .dtd to Gettext PO bestie πŸ’…

okay so welcome to the dtd2po(1) manual page from Translate Toolkit 3.12.1. This is the little icon that converts a Mozilla .dtd UTF-8 localization format into a Gettext PO localization file. no cap.

πŸŽ€ NAME πŸŽ€

dtd2po β€” converts a Mozilla .dtd UTF-8 localization format to a Gettext PO localization file. πŸ’–

✨ SYNOPSIS ✨

dtd2po [--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 πŸ¦‹

So this tool uses the po and dtd modules, plus the dtd2po convertor class that lives in this module. Yes, β€œconvertor” β€” that’s the spelling in the source, bestie, we’re not correcting it. πŸ’…

You can convert back to .dtd using po2dtd.py. round-trip queen behavior, honestly. ✨

🌸 OPTIONS 🌸

  • --version β€” shows the program’s version number and exits.
  • -h/--help β€” shows the help message and exits.
  • --manpage β€” outputs a manpage based on the help.
  • --progress β€” shows progress as: dots, none, bar, names, verbose.
  • --errorlevel β€” shows errorlevel as: none, message, exception, traceback.
  • -i/--input β€” reads from INPUT in dtd format.
  • -x/--exclude β€” excludes names matching EXCLUDE from input paths.
  • -o/--output β€” writes to OUTPUT in po, pot formats.
  • -t/--template β€” reads from TEMPLATE in dtd format.
  • -S/--timestamp β€” skips conversion if the output file has a newer timestamp.
  • -P/--pot β€” outputs PO Templates (.pot) rather than PO files (.po).
  • --duplicates β€” what to do with duplicate strings (identical source text): merge, msgctxt (default: 'msgctxt').
lowkey important: --duplicates defaults to 'msgctxt', so if you don’t touch it, that’s the duplicate-string behavior. πŸ’…

cute little sign-off: this page is serving Translate Toolkit 3.12.1 source/version energy, and there’s no date stamped on this footer, bestie β€” that’s the whole footer vibe. πŸ’–βœ¨

πŸ“¦ where this page comes from