mozlang2po(1)
β¨ NAME β¨
mozlang2po β the little glow-up machine that turns Mozilla .lang files into Gettext PO localization files π yes bestie, that's literally the whole job, and it does it flawlessly.
This one lives in the Translate Toolkit family, so if you already hang out with po2mozlang and the rest of the squad, you know the vibe π«Ά
π SYNOPSIS π
mozlang2po [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-P|--pot] [--encoding]
[--duplicates DUPLICATESTYLE]
okay so here's the tea π you give it an INPUT in lang format, you tell it an OUTPUT in po, pot formats, and you sprinkle in whatever flags your heart desires. That's it. That's the whole main character moment π
π OPTIONS π
--versionβ shows the program's version number and dips βοΈ-h,--helpβ shows this help message and exits, the classic "wait what do I do" save πΈ--manpageβ outputs a manpage based on the help. yes, a manpage about a manpage. meta icon behavior β¨--progressβ how to show progress. your options are:dots,none,bar,names,verbose. pick your aesthetic, bestie π--errorlevelβ how to show errorlevel. your options are:none,message,exception,traceback. start atmessage, escalate only if you must π-i,--inputβ read fromINPUTin lang format. this is where your Mozilla.langfile goes π₯-x,--excludeβ exclude names matchingEXCLUDEfrom input paths. not me ghosting files I don't want π-o,--outputβ write toOUTPUTin po, pot formats. this is the destination, the final form, the slay π€-S,--timestampβ skip conversion if the output file has newer timestamp. lowkey lazy, highkey efficient π-P,--potβ output PO Templates (.pot) rather than PO files (.po). template era π¦--encodingβ the encoding of the input file. default:UTF-8π§--duplicatesβ what to do with duplicate strings (identical source text):merge,msgctxt. default is'msgctxt'. choose wisely, this one changes how your whole file reads π
lowkey important:--duplicatesdefaults to'msgctxt', so if you were expectingmergeenergy, you have to ask for it fr fr π
πΈ that's a wrap πΈ
go forth, convert your .lang files, and be the localization icon you were always meant to be π no cap.
written under the Translate Toolkit 3.19.5 banner β that's the source and the version, bestie, it's giving official π
bye pookie, go run it π«Άβ¨
π¦ 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