Hi,

Thanks for the interesting patch. Sorry about the delay in replying.
I've been looking at the patch, but how do you see it being used ?
That is, the data is used at the moment by UI code doing drop-down
lists, presenting a list of countries, and normally returning a country-code
to the program for internal use; how would this data be different?

and why not just use ISO-3166-2 instead?

Regards
Alastair


Robert Millan wrote:

Package: iso-codes
Version: 0.49-1
Severity: wishlist
Tags: patch

Hi!

To describe this "regional_name" I'm proposing, it is basicaly for languages
that:

 - Are spoken in more than one country.
 - In at least one of the countries where it is spoken, it is only spoken in
 a specific region.
 - Such region has a particular name that can be easily identified by the
 language's community.

This is the case for ca_{FR,IT} and eu_{ES,FR}, but I'm sure there are many
similar situations in the world (and each translator team can figure out which
apply to their language).

As you can see in the attached patch, the idea is that the base name is
something like "@region@ (Country)" that is never actualy used untranslated.
Then, translator teams that find it appropiate (i.e. when the conditions I
described above apply to their language) may add their own translation for this
string.

This will be specialy useful for d-i's localechooser, as it'll output more
descriptive information when queriing the user for her location.

My patch adds ca_{FR,IT} and eu_{ES,FR} as a proof of concept.  Then I plan to
get localechooser to identify this information and use it appropiately.

Thanks

-- System Information:
Debian Release: testing/unstable
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-amd64-k8
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)

-- no debconf information
------------------------------------------------------------------------

diff -ur iso-codes-0.49.old/iso_3166/ca.po iso-codes-0.49/iso_3166/ca.po
--- iso-codes-0.49.old/iso_3166/ca.po   2004-09-30 15:13:09.000000000 +0200
+++ iso-codes-0.49/iso_3166/ca.po       2006-03-30 20:27:35.000000000 +0200
@@ -587,6 +587,10 @@
msgid "France"
msgstr "França"

+#. regional_name for FRA
+msgid "@region@ (France)"
+msgstr "Catalunya Nord (França)"
+
# CZ
#. official_name for FRA
msgid "French Republic"
@@ -829,6 +833,10 @@
msgid "Italy"
msgstr "Itàlia"

+#. regional_name for ITA
+msgid "@region@ (Italy)"
+msgstr "L'Alguer (Itàlia)"
+
#. official_name for ITA
msgid "Italian Republic"
msgstr "República Italiana"
diff -ur iso-codes-0.49.old/iso_3166/eu.po iso-codes-0.49/iso_3166/eu.po
--- iso-codes-0.49.old/iso_3166/eu.po   2004-09-28 09:08:59.000000000 +0200
+++ iso-codes-0.49/iso_3166/eu.po       2006-03-30 20:29:14.000000000 +0200
@@ -536,6 +536,10 @@
msgid "France"
msgstr "Frantzia"

+#. regional_name for FRA
+msgid "@region@ (France)"
+msgstr "Iparralde (Frantzia)"
+
# CZ
#. official_name for FRA
msgid "French Republic"
@@ -1436,6 +1440,10 @@
msgid "Spain"
msgstr "Espainia"

+#. regional_name for ESP
+msgid "@region@ (Spain)"
+msgstr "Hegoalde (Espainia)"
+
#. official_name for ESP
msgid "Kingdom of Spain"
msgstr "Espaniako Erresuma"
diff -ur iso-codes-0.49.old/iso_3166/iso_3166.xml 
iso-codes-0.49/iso_3166/iso_3166.xml
--- iso-codes-0.49.old/iso_3166/iso_3166.xml    2005-08-10 19:16:19.000000000 
+0200
+++ iso-codes-0.49/iso_3166/iso_3166.xml        2006-03-30 20:25:15.000000000 
+0200
@@ -17,6 +17,7 @@
                common_name             CDATA   #IMPLIED
                name                    CDATA   #REQUIRED
                official_name           CDATA   #IMPLIED
+               regional_name           CDATA   #IMPLIED
        >
        <!ELEMENT iso_3166_3_entry EMPTY>
        <!ATTLIST iso_3166_3_entry
@@ -453,6 +454,7 @@
                alpha_3_code="FRA"
                numeric_code="250"
                name="France"
+               regional_name="@region@ (France)"
                official_name="French Republic" />
        <iso_3166_entry
                alpha_2_code="GF"
@@ -633,6 +635,7 @@
                alpha_3_code="ITA"
                numeric_code="380"
                name="Italy"
+               regional_name="@region@ (Italy)"
                official_name="Italian Republic" />
        <iso_3166_entry
                alpha_2_code="JM"
@@ -1165,6 +1168,7 @@
                alpha_3_code="ESP"
                numeric_code="724"
                name="Spain"
+               regional_name="@region@ (Spain)"
                official_name="Kingdom of Spain" />
        <iso_3166_entry
                alpha_2_code="LK"



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to