DPO-MAKE-PATCH(1)
πΈ DPO-TOOLS πΈ
okay so bestie, you opened up DPO-APPLY-COMPENDIUM(1) β that's section 1 of the manual β and it's literally all about dpo-tools. grab a snack, we're doing this. π
β¨ NAME β¨
dpo-tools β a whole squad of shell scripts that can aid in the translation of podebconf files. π
π¦ DESCRIPTION π¦
dpo-tools is a set of shell scripts that can aid in the translation of Debian's podebconf files.
And here's the vibe: dpo-tools does not dictate any rule of how translations should be done. nope. it just tries to reflect the conventions used in the mailing list debian-l10n-portuguese@lists.debian.org. that's it, that's the whole energy. π«Ά
π SCRIPTS π
The scripts are as follows, and yes, each one is iconic in its own way:
dpo-get-templatesβ downloads atemplates.potfile from the podebconf templates repository.dpo-init-poβ creates and initializes a podebconf file from a file templates.dpo-apply-templatesβ updates a podebconf file with a new version of your templates file.dpo-apply-compendiumβ updates a odebconf file with strings already translated, from a compendium file.dpo-checkβ verifies if the podebconf file is well formed.dpo-diffβ shows information in a diff format colorful and paged.dpo-make-patchβ creates a patch file based on two versions of a podebconf file.dpo-wrapβ breaks the rows of a podebconf file in column 80.
π§ DEPENDENCIES π§
ngl, dpo-tools depends on other programs to work correctly. You must have the following major programs installed on your computer:
- gettext utilities:
msgfmt,msgcat,msgmerge awkcolordiff
To install them on a Debian system or derivative:
$ sudo apt install gettext gawk colordiff
You will also want to use the podebconf-display-po program. To install it on a Debian system or derivative:
$ sudo apt install po-debconf
π CONFIGURATION π
dpo-init-po.awkβ adjust theNOMEandEMAILvariables. If you usegawk, the variableANOmust be adjusted at the beginning of each year. You can uncomment the line that automatically detects the year, if your awk interpreter has support for thestrftime()function.dpo-init.poβ edit the last line of the file to reflect the full path of thedpo-init.po.awkfile, for instance:~/bin/dpo-init-po.awkdpo-make-patchβ set the variableIDwith the initials of your name.dpo-apply-compendiumβ adjust theCOMPENDIUMvariable to reflect the full path of the compendium file, downloaded fromhttp://i18n.debian.org/compendia/pt_BR/
π EXAMPLES π
starting a brand new translation β¨
To initiate a new translation: the following commands sequence downloads a podebconf templates file, creates a podebconf file based on the downloaded templates file, initializes the podebconf file with frequently used information, updates the podebconf file with compendium strings, edits the podebconf file, breaks the lines of the podebconffile in column 80, checks if the podebconf file is well formed ands tests the display of the podebconf file:
$ dpo-get-templates package
$ dpo-init-po package_version_templates.pot
$ dpo-apply-compendium package_pt_BR.po
$ vi package_pt_BR.po
$ dpo-wrap package_pt_BR.po
$ dpo-check package_pt_BR.po
$ podebconf-display-po package_pt_BR.po
send the package_pt_BR.po file to RFR
reviewing somebody else's translation and making a patch π
To review a translation made by another translator and generate a patch with change suggestions:
replace "me" with your initials in the following commands
$ vi /etc/dpo-tools/make-patch
$ cp package_pt_BR.po package_pt_BR.me.po
$ vi package_pt_BR.me.po
$ dpo-wrap package_pt_BR.me.po
$ dpo-check package_pt_BR.me.po
$ podebconf-display-po package_pt_BR.me.po
$ dpo-make-patch package_pt_BR.po
send the generated patch file, responding the RFR
applying a fresh templates version to an old translation π±
To apply a new version of the templates file to a podebconf file previously translated:
$ dpo-get-templates package_pt_BR.po
$ dpo-apply-templates package_pt_BR.po
π«Ά CONTRIBUTING π«Ά
Contributions are welcome either by creating issues in git repository or in the form of merge requests. Please access:
https://salsa.debian.org/l10n-br-team/dpo-tools
π LEIAME π
A LEIAME file is available in:
https://salsa.debian.org/l10n-br-team/dpo-tools-doc
π AUTHORS π
dpo-tools was written by Adriano Rafael Gomes <adrianorg@arg.eti.br> and Paulo Henrique de Lima Santana <phls@debian.org>.
This manual page was written by Debian Brazilian Localization Team <contato@debianbrasil.org.br> for the Debian project (but may be used by others).
and that's the whole page, bestie βdpo-toolsversion1.6, datedMarch 2025. slay, go translate something. π β¨
π¦ where this page comes from
- debian trixie: dpo-tools 1.6-1 Β· GPL-3.0-or-later
- ubuntu questing: dpo-tools 1.6-1
- ubuntu resolute: dpo-tools 1.6-2 Β· GPL-3.0-or-later
- ubuntu stonking: dpo-tools 1.6-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms