[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#298972: marked as done (mkvmlinuz: Please switch to gettext-based debconf templates)



Your message dated Thu, 09 Nov 2006 18:56:31 -0800
with message-id <E1GiMZD-0001TG-Ds@spohr.debian.org>
and subject line Bug#298972: fixed in mkvmlinuz 25
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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)
diff -ruN mkvmlinuz-13.old/debian/control mkvmlinuz-13/debian/control
--- mkvmlinuz-13.old/debian/control	2005-03-10 21:54:34.000000000 +0100
+++ mkvmlinuz-13/debian/control	2005-03-10 21:55:52.000000000 +0100
@@ -3,12 +3,12 @@
 Priority: optional
 Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
 Uploaders: Sven Luther <luther@debian.org>, Jens Schmalzing <jensen@debian.org>
-Build-Depends: docbook-to-man, debhelper (>= 4.0.0)
+Build-Depends: docbook-to-man, debhelper (>= 4.1.16)
 Standards-Version: 3.6.0
 
 Package: mkvmlinuz
 Architecture: powerpc
-Depends: binutils
+Depends: binutils, debconf (>= 1.2.0)
 Description: create a kernel to boot a PowerPC machine from Open Firmware
  .
  This little program takes a PowerPC Linux kernel as an uncompressed
diff -ruN mkvmlinuz-13.old/debian/mkvmlinuz.templates mkvmlinuz-13/debian/mkvmlinuz.templates
--- mkvmlinuz-13.old/debian/mkvmlinuz.templates	2005-03-10 21:54:34.000000000 +0100
+++ mkvmlinuz-13/debian/mkvmlinuz.templates	2005-03-10 21:58:12.000000000 +0100
@@ -2,6 +2,6 @@
 Type: select
 Choices: ${choices}
 Default: ${default}
-Description: select your bootloader.
- Your PowerPC arch supports more than one bootloader, 
- please chose the one you want to use.
+_Description: Bootloader to use:
+ Your PowerPC sub-architecture supports more than one bootloader, please
+ select the one you want to use.
diff -ruN mkvmlinuz-13.old/debian/po/POTFILES.in mkvmlinuz-13/debian/po/POTFILES.in
--- mkvmlinuz-13.old/debian/po/POTFILES.in	1970-01-01 01:00:00.000000000 +0100
+++ mkvmlinuz-13/debian/po/POTFILES.in	2005-03-10 21:56:43.000000000 +0100
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] mkvmlinuz.templates
diff -ruN mkvmlinuz-13.old/debian/po/templates.pot mkvmlinuz-13/debian/po/templates.pot
--- mkvmlinuz-13.old/debian/po/templates.pot	1970-01-01 01:00:00.000000000 +0100
+++ mkvmlinuz-13/debian/po/templates.pot	2005-03-10 21:58:15.000000000 +0100
@@ -0,0 +1,39 @@
+#
+#    Translators, if you are not familiar with the PO format, gettext
+#    documentation is worth reading, especially sections dedicated to
+#    this format, e.g. by running:
+#         info -n '(gettext)PO Files'
+#         info -n '(gettext)Header Entry'
+#
+#    Some information specific to po-debconf are available at
+#            /usr/share/doc/po-debconf/README-trans
+#         or http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+#    Developers do not need to manually edit POT or PO files.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-03-10 21:58+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: select
+#. Description
+#: ../mkvmlinuz.templates:5
+msgid "Bootloader to use:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../mkvmlinuz.templates:5
+msgid ""
+"Your PowerPC sub-architecture supports more than one bootloader, please "
+"select the one you want to use."
+msgstr ""
diff -ruN mkvmlinuz-13.old/debian/rules mkvmlinuz-13/debian/rules
--- mkvmlinuz-13.old/debian/rules	2005-03-10 21:54:34.000000000 +0100
+++ mkvmlinuz-13/debian/rules	2005-03-10 21:56:26.000000000 +0100
@@ -30,6 +30,8 @@
 	rm -f build-stamp configure-stamp
 
 	rm -f mkvmlinuz.8
+	
+	debconf-updatepo
 
 	dh_clean 
 

--- End Message ---
--- Begin Message ---
Source: mkvmlinuz
Source-Version: 25

We believe that the bug you reported is fixed in the latest version of
mkvmlinuz, which is due to be installed in the Debian FTP archive:

mkvmlinuz_25.dsc
  to pool/main/m/mkvmlinuz/mkvmlinuz_25.dsc
mkvmlinuz_25.tar.gz
  to pool/main/m/mkvmlinuz/mkvmlinuz_25.tar.gz
mkvmlinuz_25_powerpc.deb
  to pool/main/m/mkvmlinuz/mkvmlinuz_25_powerpc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 298972@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sven Luther <luther@debian.org> (supplier of updated mkvmlinuz package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu,  9 Nov 2006 22:13:12 +0100
Source: mkvmlinuz
Binary: mkvmlinuz
Architecture: source powerpc
Version: 25
Distribution: unstable
Urgency: low
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Changed-By: Sven Luther <luther@debian.org>
Description: 
 mkvmlinuz  - create a kernel to boot a PowerPC machine from Open Firmware
Closes: 298972 331020
Changes: 
 mkvmlinuz (25) unstable; urgency=low
 .
   [ Christian Perrier ]
   * Switch to po-debconf for debconf templates. Closes: 298972
   * Debconf translations:
     - Add Swedish (updated during the l10n update campaign)
       Closes: #331020
     - Add Vietnamese. Sent during the l10n update campaign
     - Add Czech. Sent during the l10n update campaign
     - Add Romanian. Sent during the l10n update campaign
     - Add French. Sent during the l10n update campaign
     - Add German. Sent during the l10n update campaign
     - Add Russian. Sent during the l10n update campaign
     - Add Brazilian Portuguese. Sent during the l10n update campaign
Files: 
 ca44f23a1460c30e297fb0c7e590c6f1 572 devel optional mkvmlinuz_25.dsc
 518190549423ca2030e70106e155c440 55831 devel optional mkvmlinuz_25.tar.gz
 8083f0b366b1acf87cc9de751c2e7f30 37456 devel optional mkvmlinuz_25_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFU5un2WTeT3CRQaQRAsAkAKCem5RERIukairlqncXaiHJ/S5pHgCgkAcT
HVGRbqeGLbWN16R6f1bamBg=
=iBKP
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: