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

Passage de debconf à po-debconf : comment faire ?



Bonsoir,

Puisque la liste des fichiers po-debconf à traduire et relire s'amenuise, je 
vais proposer quelques correctifs pour certains paquets afin que le 
mainteneur passe à po-debconf.

Mais je ne connais pas très bien le système. J'ai récupéré les sources de zsh 
(apt-get source zsh -t unstable), appliqué le patch (gzip -dc 
../zsh_4.0.6.diff.gz | patch -p1) puis lancé « debconf-gettextize 
debian/templates ».

Ensuite j'ai fait :
diff -urN zsh_4.0.6/ zsh_4.0.6-new/ > zsh.patch

Est-ce que c'est correct ? Je n'ai pas bien suivi l'histoire de rajouter 
debconf dans les champs Depends ou Build-Depends... Si le paquet utilisait 
déjà debconf avant, que faire ?

Ci-joint un correctif pour le paquet zsh.
-- 
Michel Grentzinger
	OpenPGP key ID : B2BAFAFA
		Available on http://www.keyserver.net
diff -urN zsh-4.0.6/debian/po/POTFILES.in zsh-4.0.6.new/debian/po/POTFILES.in
--- zsh-4.0.6/debian/po/POTFILES.in	1970-01-01 01:00:00.000000000 +0100
+++ zsh-4.0.6.new/debian/po/POTFILES.in	2003-06-19 23:17:13.000000000 +0200
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff -urN zsh-4.0.6/debian/po/templates.pot zsh-4.0.6.new/debian/po/templates.pot
--- zsh-4.0.6/debian/po/templates.pot	1970-01-01 01:00:00.000000000 +0100
+++ zsh-4.0.6.new/debian/po/templates.pot	2003-06-19 23:17:13.000000000 +0200
@@ -0,0 +1,42 @@
+#
+#    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: 2003-06-19 23:17+0200\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"
+
+#. Description
+#: ../templates:3
+msgid "Global RCs moved to /etc/zsh/"
+msgstr ""
+
+#. Description
+#: ../templates:3
+msgid ""
+"Global RC files (/etc/zshenv, /etc/zshrc, /etc/zprofile, /etc/zlogin) have "
+"been moved to the /etc/zsh directory."
+msgstr ""
+
+#. Description
+#: ../templates:3
+msgid "You may remove the old files or move them to /etc/zsh."
+msgstr ""
diff -urN zsh-4.0.6/debian/templates zsh-4.0.6.new/debian/templates
--- zsh-4.0.6/debian/templates	2003-06-19 23:19:51.000000000 +0200
+++ zsh-4.0.6.new/debian/templates	2003-06-19 23:17:13.000000000 +0200
@@ -1,7 +1,7 @@
 Template: zsh/rcmove
 Type: note
-Description: Global RCs moved to /etc/zsh/
- Global RC files (/etc/zshenv, /etc/zshrc, /etc/zprofile, /etc/zlogin)
- have been moved to the /etc/zsh directory.
+_Description: Global RCs moved to /etc/zsh/
+ Global RC files (/etc/zshenv, /etc/zshrc, /etc/zprofile, /etc/zlogin) have
+ been moved to the /etc/zsh directory.
  .
  You may remove the old files or move them to /etc/zsh.

Reply to: