|
Bug#298972: mkvmlinuz: Please switch to gettext-based debconf templates: msg#00037linux.debian.internationalization.general
Package: mkvmlinuz Severity: wishlist Tags: patch l10n Using the "new" gettext format for debconf templates helps for templates translations. For instance, detecting outdated or untranslated strings becomes considerably easier. It also keeps track of who did which translation. Patch description: ------------------ The attached patch does the required modifications: - debian/control modification for dependencies: build-dep: debhelper (>= 4.1.16) which depends on po-debconf depend: debconf (>= 1.2.0) since old versions have problems with templates specifying the encoding of their content - Add 'debconf-updatepo' to the clean target of your debian/rules (to make sure that the relevant files are ready for translation in the distributed source packages, and thus help translators) - execute "debconf-gettextize debian/*templates*". This does: - generate po/ directory containing all the translation mecanism - change the template file to mark some strings as translatable by putting a _ before the field name. - mark the right strings as translatable in the templates. This is a manual check to make sure that fields containing stuff which cannot be translated such as kernel module name, and the one not shown to the users are not marked as translatable. For more details, see po-debconf documentation, especially "man 7 po-debconf" This patch also document the most important modifications in the changelog. Use this as a sample, and please feel free to change it to fit your taste. If you want to give me credit for this, write my name but avoid to publish my email address there since I already get enough spam. About backports: ---------------- Please note that the suggested modifications will make your package a little bit harder to backport to earlier Debian releases. If this is a concern to you, you may try to adopt the method used by the openssh package and detailed by Colin Watson in http://lists.debian.org/debian-i18n/2003/debian-i18n-200307/msg00026.html This patch does not includes this method as this would make it too invasive, IMHO. So, preserving backportability is up to you... Stylistic considerations: ------------------------- While I was working on the convertion to po-debconf, I noticed that the templates of your package may be easily improved by applying the advices contained at the following address: http://people.debian.org/~bubulle/dtsg.txt I applied the advices from this document concerning the short descriptions, but you may want to change the long descriptions accordingly as well, for example to make them clearer even to newbies. Don't get me wrong, I don't want to criticize, I just want the template to reach a translatable state (ie quite stable) rather soon. Future: ------- Once the switch is achieved, and style improvements are done (if any), I guess that you will receive translations of your templates rather soon. They will consist in XX.po files where XX is the code of the language they contain. Simply put them to debian/po, add a changelog entry, and your package is ready for rebuilding and uploading after the usual checks. If you modify your templates in the future, no action is absolutely mandatory from you to take care of the translations (outdated translations will be automatically discarded). But it is nicer to your translators and your not english speaking users to include the updated translations in the same upload. For that, run debconf-updatepo, and mail each translator the XX.po file they provided you. Their adress can be found in the headers of the po file. Wait a few days so that they can do their work, and put the new version of the po file back in position in debian/po before upload. Thanks for helping the translators, and thus your non english speaker end-users. Bye, Mt. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.7-1-686 Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Announce of the upcoming NMU for the am-utils package: 00037, Lucas Wall |
|---|---|
| Next by Date: | [D-I] "level4" statistics: 00037, Christian Perrier |
| Previous by Thread: | Announce of the upcoming NMU for the am-utils packagei: 00037, Lucas Wall |
| Next by Thread: | Re: Bug#298972: mkvmlinuz: Please switch to gettext-based debconf templates: 00037, Christian Perrier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |