dtd2po(1)
π dtd2po β like, the whole vibe π
okay bestie, welcome to dtd2po(1) from the Translate Toolkit 3.19.5 era β she's a little old-school but she ATE, fr fr. Sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
dtd2po β the girl whose whole job is turning a Mozilla .dtd UTF-8 localization file into a Gettext PO localization file. That's it. That's the gig. She's the translator from DTD-land to PO-land and she does it flawlessly π
β¨ 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]
no cap, that's the whole shape of her πΈ
β¨ DESCRIPTION β¨
So like. Under the hood? She's built on the po module and the dtd module, plus the dtd2po convertor class which lives in this very module. iykyk. π§
And the important part, bestie β you can absolutely convert back to .dtd using po2dtd.py. round trip queen π
β¨ OPTIONS β¨
--versionβ shows the program's version number and then dips out. exit stage left π«Ά-h/--helpβ shows you this help message and then dips out too. the two of them leave together, iconic.--manpageβ spits out a manpage built straight from the help. meta af.--progressβ how loud she is about progress β¨ the options are:dots,none,bar,names,verbose. pick your vibe.--errorlevelβ how loud she is about errors π the options are:none,message,exception,traceback. choose your chaos level.-i/--inputβ read fromINPUTindtdformat. she needs her snack.-x/--excludeβ exclude any names matchingEXCLUDEfrom the input paths. not me ghosting half your files π-o/--outputβ write toOUTPUTinpo,potformats. both formats, she's flexible like that.-t/--templateβ read fromTEMPLATEindtdformat. a little blueprint, a little inspo π-S/--timestampβ skip the conversion if the output file already has a newer timestamp. she checks before she works, lowkey respectful of your time.-P/--potβ output PO Templates (.pot) rather than PO files (.po). template girlies rise π--duplicatesβ what to do with duplicate strings (identical source text). the options are:merge,msgctxt. the default is'msgctxt'. heads up though β if you don't say anything, she goes withmsgctxt, so don't be surprised when she does.
β οΈ bestie note:--duplicatesis doing choices about your identical strings.mergeandmsgctxtare genuinely different outcomes for your file. pick with intention, don't just let the default happen to you. β
and that's the whole page!! π this gorgeous thing came to you courtesy of Translate Toolkit 3.19.5 β that's the version and the source of this very manpage, mwah π. stay translating, stay hydrated, and remember: .dtd in, .po out, po2dtd.py to come home. periodt. ππ¦β
π¦ 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