Package: po-debconf
Version: 1.0
Severity: normal

Denis,

I was trying to use the method you describe in po-debconf(7) to split out a
_Choices list without fuzzying the translations.

I did this with netcfg from D-I.

The original file is netcfg-common.templates:

Template: netcfg/wireless_adhoc_managed
Type: select
Default: Infrastructure (Managed) network
# Note to translators : Please keep your translations of each choice
# below the 65 columns limit (which means 65 characters for most languages)
# Choices MUST be separated by commas
# You MUST use standard commas not special commas for your language
# You MUST NOT use commas inside choices
_Choices: Infrastructure (Managed) network, Ad-hoc network (Peer to peer)
_Description: Wireless network kind:
 Wireless networks are either managed or ad-hoc. If you use a real access
  point of some sort, your network is Managed. If another computer is your
  'access point', then your network may be Ad-hoc.
  
>From that, I created a file named "debian/foo":

Template: netcfg/wireless_adhoc_managed
Type: select
_Choices: Infrastructure (Managed) network, Ad-hoc network (Peer to peer)

Then, I ran "debconf-gettextize --merge --choices debian/foo"

Two new strings were added to all PO files, but they had this:

#: Choices
msgid "Infrastructure(Managed)network"
.../...

Of course, running debconf-updatepo later then marks these two strings as
fuzzy bu fuzzy matching.

I suspect that some bad handling of spaces is occurring in
debconf-gettextize...

  

-- System©seau en mode Infrastructure"
Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)

Versions of packages po-debconf depends on:
ii  gettext                  0.14.5-2        GNU Internationalization utilities
ii  intltool-debian          0.34.2+20060415 Help i18n of RFC822 compliant conf
ii  perl                     5.8.8-4         Larry Wall's Practical Extraction 

Versions of packages po-debconf recommends:
ii  libcompress-zlib-perl         1.41-1     Perl module for creation and manip
ii  libmail-sendmail-perl         0.79-4     Send email from a perl script

-- no debconf information

Reply via email to