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

Bug#202550: cxhextris: Please switch to gettext-based debconf templates



Package: cxhextris
Version: unavailable; reported 2003-07-23
Severity: wishlist
Tags: patch

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*"
- removed files left by debconf-gettextize (*.templates.old which are the
  old-style templates and *.templates.xx which are the former translated
  templates
- french translation proofreading (the file is debian/po/fr.po)

Then diff file creation....

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)

Then pick up the fr.po file from my own patch (I often make small
corrections to existing french translations to make them conformant to
the existing standards of the Debian french l10n team).


Build Dependencies of the package have to become the following :

Build-Depends(-Indep) should list "debhelper (>= 4.1.16)" (debhelper
depends upon po-debconf) if you use debhelper, or "po-debconf"
directly if you don't (but, then, please look at po-debconf man page)

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

PS : I will build up a NMU for this software, as it is currently orphaned.
This BR is intended to keep record of the applied patch

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mykerinos 2.4.21 #1 lun jui 21 14:05:56 CEST 2003 i686
Locale: LANG=fr_FR.ISO-8859-1, LC_CTYPE=fr_FR.ISO-8859-1 (ignored: LC_ALL set)

diff -Nru cxhextris-1.0.ori/debian/control cxhextris-1.0/debian/control
--- cxhextris-1.0.ori/debian/control	2003-07-23 06:52:07.000000000 +0200
+++ cxhextris-1.0/debian/control	2003-07-23 06:52:25.000000000 +0200
@@ -2,7 +2,7 @@
 Section: non-free/games
 Priority: optional
 Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: debhelper (>> 4.0.0), xutils (>= 4.0.2), xlibs-dev
+Build-Depends: debhelper (>= 4.1.16), xutils (>= 4.0.2), xlibs-dev
 Standards-Version: 3.5.8
 
 Package: cxhextris
diff -Nru cxhextris-1.0.ori/debian/po/de.po cxhextris-1.0/debian/po/de.po
--- cxhextris-1.0.ori/debian/po/de.po	1970-01-01 01:00:00.000000000 +0100
+++ cxhextris-1.0/debian/po/de.po	2003-07-23 06:52:35.000000000 +0200
@@ -0,0 +1,51 @@
+#
+#    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-07-23 06:52+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=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Description
+#: ../templates:4
+msgid "Do you want to keep your old score file?"
+msgstr "Wollen Sie die alte Spielstandsdatei erhalten?"
+
+#. Description
+#: ../templates:4
+msgid ""
+"A cxhextris score file was found in /var/lib/games. From now on, game score "
+"files have to go to /var/games. If you want your score file to be kept and "
+"moved to its new location, answer `Yes'. If you do not want to keep your old "
+"score file, answer `No'."
+msgstr ""
+"Im Verzeichnis /var/lib/games wurde eine alte Spielstands- datei von "
+"cxhextrix gefunden. Ab sofort werden Spielstands- dateien in /var/games "
+"gespeichert. Wenn Sie die alte Datei erhalten und nach an den neuen "
+"Speicherort verschieben wollen, so sollten Sie mit 'Yes' antworten. Wenn Sie "
+"die alte Datei nicht mehr benötigen, dann können Sie mit 'No' antworten."
+
+#. Description
+#: ../templates:4
+msgid "Please first make sure that cxhextris is not running."
+msgstr ""
+"Bevor Sie fortfahren stellen Sie bitte sicher, das cxhextris im Moment nicht "
+"ausgeführt wird."
diff -Nru cxhextris-1.0.ori/debian/po/es.po cxhextris-1.0/debian/po/es.po
--- cxhextris-1.0.ori/debian/po/es.po	1970-01-01 01:00:00.000000000 +0100
+++ cxhextris-1.0/debian/po/es.po	2003-07-23 06:52:36.000000000 +0200
@@ -0,0 +1,49 @@
+#
+#    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-07-23 06:52+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=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Description
+#: ../templates:4
+msgid "Do you want to keep your old score file?"
+msgstr "¿Quiere mantener su fichero de puntuaciones antiguo?"
+
+#. Description
+#: ../templates:4
+msgid ""
+"A cxhextris score file was found in /var/lib/games. From now on, game score "
+"files have to go to /var/games. If you want your score file to be kept and "
+"moved to its new location, answer `Yes'. If you do not want to keep your old "
+"score file, answer `No'."
+msgstr ""
+"Se ha encontrado un fichero con sus puntuaciones antiguas en /var/lib/games. "
+"A partir de ahora, los ficheros de puntuación de los juegos tienen que estar "
+"en /var/games. Si quiere que se mantenga su fichero de puntuaciones y se "
+"cambie a la nueva ubicación, responda `Yes'. Si no quiere que se guarde, "
+"responda `No'."
+
+#. Description
+#: ../templates:4
+msgid "Please first make sure that cxhextris is not running."
+msgstr "Por favor, primero asegúrese de que no está ejecutándose cxhextris."
diff -Nru cxhextris-1.0.ori/debian/po/fr.po cxhextris-1.0/debian/po/fr.po
--- cxhextris-1.0.ori/debian/po/fr.po	1970-01-01 01:00:00.000000000 +0100
+++ cxhextris-1.0/debian/po/fr.po	2003-07-23 06:57:56.000000000 +0200
@@ -0,0 +1,48 @@
+#
+#    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.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: cxhextris 1.0-23\n"
+"POT-Creation-Date: 2003-07-23 06:52+0200\n"
+"PO-Revision-Date: 2003-07-23 06:56+0100\n"
+"Last-Translator: Jérôme Marant <jerome@debian.org>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=ISO-8859-15\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Description
+#: ../templates:4
+msgid "Do you want to keep your old score file?"
+msgstr "Souhaitez-vous garder votre ancien fichier de scores ?"
+
+#. Description
+#: ../templates:4
+msgid ""
+"A cxhextris score file was found in /var/lib/games. From now on, game score "
+"files have to go to /var/games. If you want your score file to be kept and "
+"moved to its new location, answer `Yes'. If you do not want to keep your old "
+"score file, answer `No'."
+msgstr ""
+"Un fichier de scores a été trouvé dans /var/lib/games. À partir de "
+"maintenant, les fichiers de scores des jeux doivent être placés dans /var/"
+"games. Acceptez ici, si vous souhaitez que ce fichier de scores soit "
+"conservé et déplacé vers son nouveau répertoire. Si vous refusez, votre "
+"ancien fichier de scores ne sera pas conservé."
+
+#. Description
+#: ../templates:4
+msgid "Please first make sure that cxhextris is not running."
+msgstr ""
+"Veuillez d'abord vérifier que cxhextris n'est pas en cours d'exécution."
diff -Nru cxhextris-1.0.ori/debian/po/POTFILES.in cxhextris-1.0/debian/po/POTFILES.in
--- cxhextris-1.0.ori/debian/po/POTFILES.in	1970-01-01 01:00:00.000000000 +0100
+++ cxhextris-1.0/debian/po/POTFILES.in	2003-07-23 06:52:34.000000000 +0200
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] templates
diff -Nru cxhextris-1.0.ori/debian/po/ru.po cxhextris-1.0/debian/po/ru.po
--- cxhextris-1.0.ori/debian/po/ru.po	1970-01-01 01:00:00.000000000 +0100
+++ cxhextris-1.0/debian/po/ru.po	2003-07-23 06:52:36.000000000 +0200
@@ -0,0 +1,48 @@
+#
+#    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-07-23 06:52+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=KOI8-R\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Description
+#: ../templates:4
+msgid "Do you want to keep your old score file?"
+msgstr "èÏÔÉÔÅ ÓÏÈÒÁÎÉÔØ ×ÁÛÉ ÓÔÁÒÙÅ ÆÁÊÌÙ ÏÞËÏ×?"
+
+#. Description
+#: ../templates:4
+msgid ""
+"A cxhextris score file was found in /var/lib/games. From now on, game score "
+"files have to go to /var/games. If you want your score file to be kept and "
+"moved to its new location, answer `Yes'. If you do not want to keep your old "
+"score file, answer `No'."
+msgstr ""
+"æÁÊÌ  ÏÞËÏ× ÄÌÑ ÉÇÒÙ cxhextris ÂÙÌ ÎÁÄÅÎ × /var/lib/games. óÅÊÞÁÓ ÉÇÒÁ "
+"ÈÒÁÎÉÔ  ÆÁÊÌÙ  ÏÞËÏ× × /var/games. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÓÏÈÒÁÎÉÔØ ×ÁÛ ÓÔÁÒÙÊ ÆÁÊÌ  "
+"ÏÞËÏ×  É  ÐÅÒÅÎÅÓÔÉ ÅÇÏ × ÎÏ×ÏÅ ÍÅÓÔÏ, ÏÔ×ÅÔØÔÅ `äÁ'. åÓÌÉ ×Ù ÎÅ ÈÏÔÉÔÅ "
+"ÓÏÈÒÁÎÉÔØ ×ÁÛ ÓÔÁÒÙÊ ÆÁÊÌ ÏÞËÏ×, ÏÔ×ÅÔØÔÅ `îÅÔ'."
+
+#. Description
+#: ../templates:4
+msgid "Please first make sure that cxhextris is not running."
+msgstr "ðÏÖÁÌÕÊÓÔÁ, ÓÐÅÒ×Á ÕÂÅÄÉÔÅÓØ, ÞÔÏ cxhextris ÎÅ ÚÁÐÕÝÅÎ."
diff -Nru cxhextris-1.0.ori/debian/po/templates.pot cxhextris-1.0/debian/po/templates.pot
--- cxhextris-1.0.ori/debian/po/templates.pot	1970-01-01 01:00:00.000000000 +0100
+++ cxhextris-1.0/debian/po/templates.pot	2003-07-23 06:52:36.000000000 +0200
@@ -0,0 +1,44 @@
+#
+#    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-07-23 06:52+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:4
+msgid "Do you want to keep your old score file?"
+msgstr ""
+
+#. Description
+#: ../templates:4
+msgid ""
+"A cxhextris score file was found in /var/lib/games. From now on, game score "
+"files have to go to /var/games. If you want your score file to be kept and "
+"moved to its new location, answer `Yes'. If you do not want to keep your old "
+"score file, answer `No'."
+msgstr ""
+
+#. Description
+#: ../templates:4
+msgid "Please first make sure that cxhextris is not running."
+msgstr ""
diff -Nru cxhextris-1.0.ori/debian/templates cxhextris-1.0/debian/templates
--- cxhextris-1.0.ori/debian/templates	2003-07-23 06:52:08.000000000 +0200
+++ cxhextris-1.0/debian/templates	2003-07-23 06:52:34.000000000 +0200
@@ -1,11 +1,10 @@
 Template: cxhextris/move_scorefile
 Type: boolean
 Default: true
-Description: Do you want to keep your old score file? 
- A cxhextris score file was found in /var/lib/games.
- From now on, game score files have to go to /var/games.
- If you want your score file to be kept and moved to its new location,
- answer `Yes'.
- If you do not want to keep your old score file, answer `No'.
+_Description: Do you want to keep your old score file?
+ A cxhextris score file was found in /var/lib/games. From now on, game
+ score files have to go to /var/games. If you want your score file to be
+ kept and moved to its new location, answer `Yes'. If you do not want to
+ keep your old score file, answer `No'.
  .
  Please first make sure that cxhextris is not running.
diff -Nru cxhextris-1.0.ori/debian/templates.de cxhextris-1.0/debian/templates.de
--- cxhextris-1.0.ori/debian/templates.de	2003-07-23 06:52:07.000000000 +0200
+++ cxhextris-1.0/debian/templates.de	1970-01-01 01:00:00.000000000 +0100
@@ -1,22 +0,0 @@
-Template: cxhextris/move_scorefile
-Type: boolean
-Default: true
-Description: Do you want to keep your old score file?
- A cxhextris score file was found in /var/lib/games.
- From now on, game score files have to go to /var/games.
- If you want your score file to be kept and moved to its
- new location, answer `Yes'.
- If you do not want to keep your old score file, answer `No'.
- .
- Please first make sure that cxhextris is not running.
-Description-de: Wollen Sie die alte Spielstandsdatei erhalten?
- Im Verzeichnis /var/lib/games wurde eine alte Spielstands-
- datei von cxhextrix gefunden. Ab sofort werden Spielstands-
- dateien in /var/games gespeichert. Wenn Sie die alte Datei
- erhalten und nach an den neuen Speicherort verschieben
- wollen, so sollten Sie mit 'Yes' antworten. Wenn Sie die
- alte Datei nicht mehr benötigen, dann können Sie mit
- 'No' antworten.
- .
- Bevor Sie fortfahren stellen Sie bitte sicher, das
- cxhextris im Moment nicht ausgeführt wird.
diff -Nru cxhextris-1.0.ori/debian/templates.es cxhextris-1.0/debian/templates.es
--- cxhextris-1.0.ori/debian/templates.es	2003-07-23 06:52:08.000000000 +0200
+++ cxhextris-1.0/debian/templates.es	1970-01-01 01:00:00.000000000 +0100
@@ -1,20 +0,0 @@
-Template: cxhextris/move_scorefile
-Type: boolean
-Default: true
-Description: Do you want to keep your old score file?
- A cxhextris score file was found in /var/lib/games.
- From now on, game score files have to go to /var/games.
- If you want your score file to be kept and moved to its
- new location, answer `Yes'.
- If you do not want to keep your old score file, answer `No'.
- .
- Please first make sure that cxhextris is not running.
-Description-es: ¿Quiere mantener su fichero de puntuaciones antiguo?
- Se ha encontrado un fichero con sus puntuaciones antiguas en /var/lib/games.
- A partir de ahora, los ficheros de puntuación de los juegos tienen que
- estar en /var/games.
- Si quiere que se mantenga su fichero de puntuaciones y se cambie a
- la nueva ubicación, responda `Yes'.
- Si no quiere que se guarde, responda `No'.
- .
- Por favor, primero asegúrese de que no está ejecutándose cxhextris.
diff -Nru cxhextris-1.0.ori/debian/templates.fr cxhextris-1.0/debian/templates.fr
--- cxhextris-1.0.ori/debian/templates.fr	2003-07-23 06:52:08.000000000 +0200
+++ cxhextris-1.0/debian/templates.fr	1970-01-01 01:00:00.000000000 +0100
@@ -1,23 +0,0 @@
-Template: cxhextris/move_scorefile
-Type: boolean
-Default: true
-Description: Do you want to keep your old score file? 
- A cxhextris score file was found in /var/lib/games.
- From now on, game score files have to go to /var/games.
- If you want your score file to be kept and moved to its new location,
- answer `Yes'.
- If you do not want to keep your old score file, answer `No'.
- .
- Please first make sure that cxhextris is not running.
-Description-fr: Voulez-vous garder vos ancien fichier de scores ?
- Il existe un fichiers de scores dans /var/lib/games.
- À partir de maintenannt, les fichiers de scores des jeux
- doivent aller dans /var/games.
- Si vous souhaitez que ce fichier de scores soit gardé et
- déplacé vers son nouveau répertoire, répondez par « Yes ».
- Si vous ne souhaitez pas garder votre ancien fichier de scores,
- répondez par « No ».
- .
- Vous êtes d'abord priés de vous assurer que cxhextris n'est pas en
- cours d'exécution.
-
diff -Nru cxhextris-1.0.ori/debian/templates.ru cxhextris-1.0/debian/templates.ru
--- cxhextris-1.0.ori/debian/templates.ru	2003-07-23 06:52:08.000000000 +0200
+++ cxhextris-1.0/debian/templates.ru	1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +0,0 @@
-Template: cxhextris/move_scorefile
-Type: boolean
-Default: true
-Description: Do you want to keep your old score file?
- A cxhextris score file was found in /var/lib/games. From now on, game
- score files have to go to /var/games. If you want your score file to be
- kept and moved to its new location, answer `Yes'. If you do not want to
- keep your old score file, answer `No'.
- .
- Please first make sure that cxhextris is not running.
-Description-ru: èÏÔÉÔÅ ÓÏÈÒÁÎÉÔØ ×ÁÛÉ ÓÔÁÒÙÅ ÆÁÊÌÙ ÏÞËÏ×?
- æÁÊÌ  ÏÞËÏ× ÄÌÑ ÉÇÒÙ cxhextris ÂÙÌ ÎÁÄÅÎ × /var/lib/games. óÅÊÞÁÓ ÉÇÒÁ
- ÈÒÁÎÉÔ  ÆÁÊÌÙ  ÏÞËÏ× × /var/games. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÓÏÈÒÁÎÉÔØ ×ÁÛ ÓÔÁÒÙÊ
- ÆÁÊÌ  ÏÞËÏ×  É  ÐÅÒÅÎÅÓÔÉ ÅÇÏ × ÎÏ×ÏÅ ÍÅÓÔÏ, ÏÔ×ÅÔØÔÅ `äÁ'. åÓÌÉ ×Ù ÎÅ
- ÈÏÔÉÔÅ ÓÏÈÒÁÎÉÔØ ×ÁÛ ÓÔÁÒÙÊ ÆÁÊÌ ÏÞËÏ×, ÏÔ×ÅÔØÔÅ `îÅÔ'.
- .
- ðÏÖÁÌÕÊÓÔÁ, ÓÐÅÒ×Á ÕÂÅÄÉÔÅÓØ, ÞÔÏ cxhextris ÎÅ ÚÁÐÕÝÅÎ.
-

Reply to: