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 fromINPUTin*,dtd,inc,ini,it,js,lang,manifest,properties,rdfformats. so many formats, so little time.-x/--excludeβ exclude names matchingEXCLUDEfrom input paths. not me ghosting certain files π-o/--outputβ write toOUTPUTin*,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,rdfformats. the full menu, no crumbs left.-t/--templateβ read fromTEMPLATEin*,dtd,inc,ini,it,js,lang,manifest,properties,rdfformats. 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 saysmsgctxt, always.
heads up bestie: that--duplicatesdefault 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
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms