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

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



Your message dated Sun, 07 Mar 2004 15:32:13 -0500
with message-id <E1B04wX-0007lq-00@newraff.debian.org>
and subject line Bug#235831: fixed in cdtool 2.1.5-6
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 2 Mar 2004 18:17:15 +0000
>From mquinson@ens-lyon.fr Tue Mar 02 10:17:15 2004
Return-path: <mquinson@ens-lyon.fr>
Received: from pompone.cs.ucsb.edu [128.111.45.35] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AyESB-0001oQ-00; Tue, 02 Mar 2004 10:17:15 -0800
Received: from [128.111.45.152] (helo=localhost ident=mail)
	by pompone.cs.ucsb.edu with asmtp (Exim 3.35 #1 (Debian))
	id 1AyESA-0008My-00; Tue, 02 Mar 2004 10:17:14 -0800
Received: from mquinson by localhost with local (Exim 3.36 #1 (Debian))
	id 1AyES9-0005t8-00; Tue, 02 Mar 2004 10:17:13 -0800
Content-Type: multipart/mixed; boundary="===============1923625412=="
MIME-Version: 1.0
From: Martin Quinson <Martin.Quinson@tuxfamily.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: cdtool: Please switch to gettext-based debconf templates
X-Mailer: reportbug 2.39
Date: Tue, 02 Mar 2004 10:17:13 -0800
Message-Id: <[🔎] E1AyES9-0005t8-00@localhost>
Sender: Martin Quinson <mquinson@ens-lyon.fr>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_01 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_03_01
X-Spam-Level: 

This is a multi-part MIME message sent by reportbug.

--===============1923625412==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: cdtool
Version: n/a
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.

The attached patch does the required modifications :
- debian/control modification for dependencies (see below)
- execute "debconf-gettextize debian/*templates*" 
- mark the right strings as translatable in the templates (see below)
- update the style to the best current practice (see below)


If you want to reproduce this by yourself instead of applying the
patch, you have to do:

- install po-debconf on your system
- go to the debian directory
- read man po-debconf..:-)
- run "debconf-gettextize *.templates"
- read the output
- change Build-Depends or Build-Depends-Indep (see below)
  They should list "po-debconf"
- update the templates file to mark as translatable only the fields
  which should (ie, not the one containing stuff which cannot be
  translated such as kernel module name, and neither the one not
  shown to the users), and improve the style to follow the dstg.

For more details, see po-debconf documentation, especially "man 7
po-debconf"

Read this if you're concerned with 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...

The rest of the story :
---------------------
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,
and I think that no extra work is needed on the templates. But feel free to
improve them further, if you want... 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.

Once the switch is achieved, and the style improvement are done, I 
guess that you will receive translations of your templates rather soon. You
may consider asking on the debian-i18n@lists.debian.org mailing list for
translations once you think that your templates are in a sort of final state
where they won't be modified in the near future.


Thanks for helping the translators, and thus your non english speaker
end-users. 

Bye, Mt.

PS: I know that this package is orphaned, but according to my stats, that
the most important package (wrt popcon) not having a po-debconf switch bug
report. So here you are..
http://graal.ens-lyon.fr/~mquinson/debian/switch/popcon.html

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux galadriel 2.4.22 #1 ven nov 21 16:02:19 CET 2003 i686
Locale: LANG=fr_FR.ISO-8859-1, LC_CTYPE=fr_FR.ISO-8859-1


--===============1923625412==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="/home/mquinson/src/diff-switch-cdtool"

diff -ruN cdtool-2.1.5.ori/debian/control cdtool-2.1.5/debian/control
--- cdtool-2.1.5.ori/debian/control	2004-03-02 10:09:45.000000000 -0800
+++ cdtool-2.1.5/debian/control	2004-03-02 10:11:01.000000000 -0800
@@ -2,11 +2,12 @@
 Section: sound
 Priority: optional
 Maintainer: Debian QA Group <packages@qa.debian.org>
+Build-Depends: po-debconf
 Standards-Version: 3.6.1
 
 Package: cdtool
 Architecture: any
-Depends: ${shlibs:Depends}, debconf (>= 0.5.00)
+Depends: ${shlibs:Depends}, debconf (>= 1.2.0)
 Description: some text-based commands for managing a CD
  cdtool contains cdplay, cdeject, cdstop, cdpause, and several other
  utilities that let you control your CD-ROM drive from a command
diff -ruN cdtool-2.1.5.ori/debian/po/POTFILES.in cdtool-2.1.5/debian/po/POTFILES.in
--- cdtool-2.1.5.ori/debian/po/POTFILES.in	1969-12-31 16:00:00.000000000 -0800
+++ cdtool-2.1.5/debian/po/POTFILES.in	2004-03-02 10:11:30.000000000 -0800
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff -ruN cdtool-2.1.5.ori/debian/po/templates.pot cdtool-2.1.5/debian/po/templates.pot
--- cdtool-2.1.5.ori/debian/po/templates.pot	1969-12-31 16:00:00.000000000 -0800
+++ cdtool-2.1.5/debian/po/templates.pot	2004-03-02 10:12:40.000000000 -0800
@@ -0,0 +1,40 @@
+#
+#    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: 2004-03-02 10:12-0800\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: string
+#. Description
+#: ../templates:3
+msgid "Audio CD device:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../templates:3
+msgid ""
+"cdtools needs to know which device to use for playing audio CDs. It tried to "
+"determine that automatically but failed. You can enter the correct device "
+"below or leave the field empty."
+msgstr ""
diff -ruN cdtool-2.1.5.ori/debian/rules cdtool-2.1.5/debian/rules
--- cdtool-2.1.5.ori/debian/rules	2004-03-02 10:09:45.000000000 -0800
+++ cdtool-2.1.5/debian/rules	2004-03-02 10:10:33.000000000 -0800
@@ -22,6 +22,7 @@
 	-rm -f build
 	-make clean
 	-rm `find . -name "*~"`
+	-debconf-updatepo
 	-rm -rf debian/tmp debian/files* debian/substvars core
 
 binary-indep:	checkroot build
@@ -66,7 +67,7 @@
 	cd debian/tmp/usr/share/man/man1 && ln -s cdtool.1.gz cdvolume.1.gz
 	install -m 0755 debian/postinst debian/tmp/DEBIAN
 	install -m 0755 debian/config debian/tmp/DEBIAN
-	install -m 0644 debian/templates debian/tmp/DEBIAN
+	po2debconf debian/templates > debian/tmp/DEBIAN
 	dpkg-shlibdeps debian/tmp/usr/lib/cdtool/cdtool debian/tmp/usr/bin/cdctrl debian/tmp/usr/bin/cdown
 	dpkg-gencontrol -isp
 	chown -R root.root debian/tmp
diff -ruN cdtool-2.1.5.ori/debian/templates cdtool-2.1.5/debian/templates
--- cdtool-2.1.5.ori/debian/templates	2004-03-02 10:09:45.000000000 -0800
+++ cdtool-2.1.5/debian/templates	2004-03-02 10:11:51.000000000 -0800
@@ -1,6 +1,6 @@
 Template: cdtool/unknown_audiocd_device
 Type: string
-Description: Please enter the audio CD device or leave empty
- cdtools needs to know which device to use for playing audio CDs. It
- tried to determine that automatically but failed. You can enter
- the correct device below or leave the field empty.
+_Description: Audio CD device:
+ cdtools needs to know which device to use for playing audio CDs. It tried
+ to determine that automatically but failed. You can enter the correct
+ device below or leave the field empty.

--===============1923625412==--

---------------------------------------
Received: (at 235831-close) by bugs.debian.org; 7 Mar 2004 20:38:08 +0000
>From katie@ftp-master.debian.org Sun Mar 07 12:38:08 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B052G-0000ry-00; Sun, 07 Mar 2004 12:38:08 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1B04wX-0007lq-00; Sun, 07 Mar 2004 15:32:13 -0500
From: Christian Perrier <bubulle@debian.org>
To: 235831-close@bugs.debian.org
X-Katie: $Revision: 1.44 $
Subject: Bug#235831: fixed in cdtool 2.1.5-6
Message-Id: <E1B04wX-0007lq-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 07 Mar 2004 15:32:13 -0500
Delivered-To: 235831-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_05 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no 
	version=2.60-bugs.debian.org_2004_03_05
X-Spam-Level: 

Source: cdtool
Source-Version: 2.1.5-6

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

cdtool_2.1.5-6.diff.gz
  to pool/main/c/cdtool/cdtool_2.1.5-6.diff.gz
cdtool_2.1.5-6.dsc
  to pool/main/c/cdtool/cdtool_2.1.5-6.dsc
cdtool_2.1.5-6_i386.deb
  to pool/main/c/cdtool/cdtool_2.1.5-6_i386.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 235831@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Perrier <bubulle@debian.org> (supplier of updated cdtool 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: Sat,  6 Mar 2004 10:08:46 +0100
Source: cdtool
Binary: cdtool
Architecture: source i386
Version: 2.1.5-6
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description: 
 cdtool     - some text-based commands for managing a CD
Closes: 235831
Changes: 
 cdtool (2.1.5-6) unstable; urgency=low
 .
   * Debian QA upload
   * Swith to gettext for debconf templates. Closes: #235831
     Martin patch slightly corrected
   * French debconf templates translation
Files: 
 ef1ad8415bab2cc6633ec9f5e64b3f57 554 sound optional cdtool_2.1.5-6.dsc
 717144e7ea14e8010a88e72c0f601db7 18415 sound optional cdtool_2.1.5-6.diff.gz
 af590e2a923597e861daa15f30b83775 39222 sound optional cdtool_2.1.5-6_i386.deb

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

iD8DBQFASZXD1OXtrMAUPS0RAuwqAJ4qk/DwJr1zZBsbzalLERRGwwoQBwCfTwcQ
4SEwB+yFVe3Txe2lyz/JveM=
=WTSK
-----END PGP SIGNATURE-----



Reply to: