[2/2] New locale de_LI

Message ID 1458850770-23717-3-git-send-email-aurelien@aurel32.net
State Superseded
Delegated to: Mike Frysinger
Headers

Commit Message

Aurelien Jarno March 24, 2016, 8:19 p.m. UTC
  The Principality of Liechtenstein currently does not have a corresponding
locale. Given the links with Switzerland, the best is to base the locale
on the de_CH one (German is the official language) and only change the
country related categories: LC_ADDRESS. and LC_TELEPHONE.

localedata/Changelog:
	* locales/de_LI: New locale.
	* SUPPORTED: Add de_LI.
---
 localedata/ChangeLog     |   5 +++
 localedata/SUPPORTED     |   1 +
 localedata/locales/de_LI | 102 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 108 insertions(+)
 create mode 100644 localedata/locales/de_LI
  

Comments

Marko Myllynen March 25, 2016, 8:35 a.m. UTC | #1
Hi,

On 2016-03-24 22:19, Aurelien Jarno wrote:
> The Principality of Liechtenstein currently does not have a corresponding
> locale. Given the links with Switzerland, the best is to base the locale
> on the de_CH one (German is the official language) and only change the
> country related categories: LC_ADDRESS. and LC_TELEPHONE.
> +
> +LC_ADDRESS
> +postal_fmt	"<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
> +		<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
> +		<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
> +		<U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/
> +		<U004E><U0025><U0063><U0025><U004E>"
> +country_name	"<U004C><U0069><U0065><U0063><U0068><U0074><U0065><U006E><U0073><U0074>/
> +		<U0065><U0069><U006E>"
> +country_ab2	"<U004C><U0049>"
> +country_ab3	"<U004C><U0049><U0045>"
> +country_num	438
> +lang_name	"<U0044><U0065><U0075><U0074><U0073><U0063><U0068>"
> +lang_ab		"<U0064><U0065>"
> +lang_term	"<U0064><U0065><U0075>"
> +lang_lib	"<U0067><U0065><U0072>"
> +END LC_ADDRESS

Do you think could country_{post,car,isbn} be defined as well here?

Thanks,
  
Aurelien Jarno March 25, 2016, 9:49 a.m. UTC | #2
On 2016-03-25 10:35, Marko Myllynen wrote:
> Hi,
> 
> On 2016-03-24 22:19, Aurelien Jarno wrote:
> > The Principality of Liechtenstein currently does not have a corresponding
> > locale. Given the links with Switzerland, the best is to base the locale
> > on the de_CH one (German is the official language) and only change the
> > country related categories: LC_ADDRESS. and LC_TELEPHONE.
> > +
> > +LC_ADDRESS
> > +postal_fmt	"<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
> > +		<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
> > +		<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
> > +		<U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/
> > +		<U004E><U0025><U0063><U0025><U004E>"
> > +country_name	"<U004C><U0069><U0065><U0063><U0068><U0074><U0065><U006E><U0073><U0074>/
> > +		<U0065><U0069><U006E>"
> > +country_ab2	"<U004C><U0049>"
> > +country_ab3	"<U004C><U0049><U0045>"
> > +country_num	438
> > +lang_name	"<U0044><U0065><U0075><U0074><U0073><U0063><U0068>"
> > +lang_ab		"<U0064><U0065>"
> > +lang_term	"<U0064><U0065><U0075>"
> > +lang_lib	"<U0067><U0065><U0072>"
> > +END LC_ADDRESS
> 
> Do you think could country_{post,car,isbn} be defined as well here?

The original patch we have in Debian does not define them. Now if I can
find the information, that can clearly be done.

Aurelien
  
Aurelien Jarno March 25, 2016, 11:39 a.m. UTC | #3
On 2016-03-25 10:49, Aurelien Jarno wrote:
> On 2016-03-25 10:35, Marko Myllynen wrote:
> > Hi,
> > 
> > On 2016-03-24 22:19, Aurelien Jarno wrote:
> > > The Principality of Liechtenstein currently does not have a corresponding
> > > locale. Given the links with Switzerland, the best is to base the locale
> > > on the de_CH one (German is the official language) and only change the
> > > country related categories: LC_ADDRESS. and LC_TELEPHONE.
> > > +
> > > +LC_ADDRESS
> > > +postal_fmt	"<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
> > > +		<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
> > > +		<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
> > > +		<U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/
> > > +		<U004E><U0025><U0063><U0025><U004E>"
> > > +country_name	"<U004C><U0069><U0065><U0063><U0068><U0074><U0065><U006E><U0073><U0074>/
> > > +		<U0065><U0069><U006E>"
> > > +country_ab2	"<U004C><U0049>"
> > > +country_ab3	"<U004C><U0049><U0045>"
> > > +country_num	438
> > > +lang_name	"<U0044><U0065><U0075><U0074><U0073><U0063><U0068>"
> > > +lang_ab		"<U0064><U0065>"
> > > +lang_term	"<U0064><U0065><U0075>"
> > > +lang_lib	"<U0067><U0065><U0072>"
> > > +END LC_ADDRESS
> > 
> > Do you think could country_{post,car,isbn} be defined as well here?
> 
> The original patch we have in Debian does not define them. Now if I can
> find the information, that can clearly be done.

I have found the country_post value (LI), the country_car value (FL),
but not the country_isbn value. It seems the number 3 (German) is used,
but I am not fully sure about that, so I prefer a missing value than a
wrong one.

I'll send a new version of this patch after it get some more comments.

Aurelien
  
Marko Myllynen March 25, 2016, 11:59 a.m. UTC | #4
Hi,

On 2016-03-25 13:39, Aurelien Jarno wrote:
> On 2016-03-25 10:49, Aurelien Jarno wrote:
>> On 2016-03-25 10:35, Marko Myllynen wrote:
>>> On 2016-03-24 22:19, Aurelien Jarno wrote:
>>>> The Principality of Liechtenstein currently does not have a corresponding
>>>> locale. Given the links with Switzerland, the best is to base the locale
>>>> on the de_CH one (German is the official language) and only change the
>>>> country related categories: LC_ADDRESS. and LC_TELEPHONE.
>>>> +
>>>> +LC_ADDRESS
>>>> +postal_fmt	"<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
>>>> +		<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
>>>> +		<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
>>>> +		<U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/
>>>> +		<U004E><U0025><U0063><U0025><U004E>"
>>>> +country_name	"<U004C><U0069><U0065><U0063><U0068><U0074><U0065><U006E><U0073><U0074>/
>>>> +		<U0065><U0069><U006E>"
>>>> +country_ab2	"<U004C><U0049>"
>>>> +country_ab3	"<U004C><U0049><U0045>"
>>>> +country_num	438
>>>> +lang_name	"<U0044><U0065><U0075><U0074><U0073><U0063><U0068>"
>>>> +lang_ab		"<U0064><U0065>"
>>>> +lang_term	"<U0064><U0065><U0075>"
>>>> +lang_lib	"<U0067><U0065><U0072>"
>>>> +END LC_ADDRESS
>>>
>>> Do you think could country_{post,car,isbn} be defined as well here?
>>
>> The original patch we have in Debian does not define them. Now if I can
>> find the information, that can clearly be done.
> 
> I have found the country_post value (LI), the country_car value (FL),
> but not the country_isbn value. It seems the number 3 (German) is used,
> but I am not fully sure about that, so I prefer a missing value than a
> wrong one.

I was under impression country_isbn is for national codes, not for
language codes. Thus for Luxembourg 99959 would be correct.

In any case, I'll ask from a Luxembourgian colleague about this.

Thanks,
  
Marko Myllynen March 25, 2016, 12:04 p.m. UTC | #5
Hi,

On 2016-03-25 13:59, Marko Myllynen wrote:
> On 2016-03-25 13:39, Aurelien Jarno wrote:
>> On 2016-03-25 10:49, Aurelien Jarno wrote:
>>> On 2016-03-25 10:35, Marko Myllynen wrote:
>>>> On 2016-03-24 22:19, Aurelien Jarno wrote:
>>>>> The Principality of Liechtenstein currently does not have a corresponding
>>>>> locale. Given the links with Switzerland, the best is to base the locale
>>>>> on the de_CH one (German is the official language) and only change the
>>>>> country related categories: LC_ADDRESS. and LC_TELEPHONE.
>>>>> +
>>>>> +LC_ADDRESS
>>>>> +postal_fmt	"<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
>>>>> +		<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
>>>>> +		<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
>>>>> +		<U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/
>>>>> +		<U004E><U0025><U0063><U0025><U004E>"
>>>>> +country_name	"<U004C><U0069><U0065><U0063><U0068><U0074><U0065><U006E><U0073><U0074>/
>>>>> +		<U0065><U0069><U006E>"
>>>>> +country_ab2	"<U004C><U0049>"
>>>>> +country_ab3	"<U004C><U0049><U0045>"
>>>>> +country_num	438
>>>>> +lang_name	"<U0044><U0065><U0075><U0074><U0073><U0063><U0068>"
>>>>> +lang_ab		"<U0064><U0065>"
>>>>> +lang_term	"<U0064><U0065><U0075>"
>>>>> +lang_lib	"<U0067><U0065><U0072>"
>>>>> +END LC_ADDRESS
>>>>
>>>> Do you think could country_{post,car,isbn} be defined as well here?
>>>
>>> The original patch we have in Debian does not define them. Now if I can
>>> find the information, that can clearly be done.
>>
>> I have found the country_post value (LI), the country_car value (FL),
>> but not the country_isbn value. It seems the number 3 (German) is used,
>> but I am not fully sure about that, so I prefer a missing value than a
>> wrong one.
> 
> I was under impression country_isbn is for national codes, not for
> language codes. Thus for Luxembourg 99959 would be correct.
> 
> In any case, I'll ask from a Luxembourgian colleague about this.

Err, nevermind, I obviously mixed up Lichtenstein and Luxembourg, mea culpa.

Thanks,
  
Aurelien Jarno March 25, 2016, 4:11 p.m. UTC | #6
On 2016-03-25 14:04, Marko Myllynen wrote:
> Hi,
> 
> On 2016-03-25 13:59, Marko Myllynen wrote:
> > On 2016-03-25 13:39, Aurelien Jarno wrote:
> >> On 2016-03-25 10:49, Aurelien Jarno wrote:
> >>> On 2016-03-25 10:35, Marko Myllynen wrote:
> >>>> On 2016-03-24 22:19, Aurelien Jarno wrote:
> >>>>> The Principality of Liechtenstein currently does not have a corresponding
> >>>>> locale. Given the links with Switzerland, the best is to base the locale
> >>>>> on the de_CH one (German is the official language) and only change the
> >>>>> country related categories: LC_ADDRESS. and LC_TELEPHONE.
> >>>>> +
> >>>>> +LC_ADDRESS
> >>>>> +postal_fmt	"<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
> >>>>> +		<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
> >>>>> +		<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
> >>>>> +		<U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/
> >>>>> +		<U004E><U0025><U0063><U0025><U004E>"
> >>>>> +country_name	"<U004C><U0069><U0065><U0063><U0068><U0074><U0065><U006E><U0073><U0074>/
> >>>>> +		<U0065><U0069><U006E>"
> >>>>> +country_ab2	"<U004C><U0049>"
> >>>>> +country_ab3	"<U004C><U0049><U0045>"
> >>>>> +country_num	438
> >>>>> +lang_name	"<U0044><U0065><U0075><U0074><U0073><U0063><U0068>"
> >>>>> +lang_ab		"<U0064><U0065>"
> >>>>> +lang_term	"<U0064><U0065><U0075>"
> >>>>> +lang_lib	"<U0067><U0065><U0072>"
> >>>>> +END LC_ADDRESS
> >>>>
> >>>> Do you think could country_{post,car,isbn} be defined as well here?
> >>>
> >>> The original patch we have in Debian does not define them. Now if I can
> >>> find the information, that can clearly be done.
> >>
> >> I have found the country_post value (LI), the country_car value (FL),
> >> but not the country_isbn value. It seems the number 3 (German) is used,
> >> but I am not fully sure about that, so I prefer a missing value than a
> >> wrong one.
> > 
> > I was under impression country_isbn is for national codes, not for
> > language codes. Thus for Luxembourg 99959 would be correct.
> > 
> > In any case, I'll ask from a Luxembourgian colleague about this.
> 
> Err, nevermind, I obviously mixed up Lichtenstein and Luxembourg, mea culpa.
> 

Still that's a good example. de_LU and fr_LU do not define country_isbn.
lb_LU defines it as 2 not 99959.

Aurelien
  
Mike Frysinger April 10, 2016, 5:48 a.m. UTC | #7
On 24 Mar 2016 21:19, Aurelien Jarno wrote:
> +% German Language Locale for Liechtenstein
> +% Language: de
> +% Territory: LI
> +% Revision: 1.0
> +% Date: 2007-11-27
> +% Users: general
> +% Charset: ISO-8859-1

i'm not sure this block serves any useful purpose.  should just punt it.

> +LC_TELEPHONE
> +tel_int_fmt	"<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025><U006C>"

seems like you can/should just copy i18n here.  yes, this statement
applies to many other locales, but we shouldn't keep adding more bad
ones :).

otherwise looks OK
-mike
  
Aurelien Jarno April 10, 2016, 4:21 p.m. UTC | #8
On 2016-04-10 01:48, Mike Frysinger wrote:
> On 24 Mar 2016 21:19, Aurelien Jarno wrote:
> > +% German Language Locale for Liechtenstein
> > +% Language: de
> > +% Territory: LI
> > +% Revision: 1.0
> > +% Date: 2007-11-27
> > +% Users: general
> > +% Charset: ISO-8859-1
> 
> i'm not sure this block serves any useful purpose.  should just punt it.

Ok.

> > +LC_TELEPHONE
> > +tel_int_fmt	"<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025><U006C>"
> 
> seems like you can/should just copy i18n here.  yes, this statement
> applies to many other locales, but we shouldn't keep adding more bad
> ones :).

If I copy i18n, how can I define also define int_prefix? I tried using
using copy and defining it below, and I get:

| de_LI:69: no other keyword shall be specified when `copy' is used

Any idea?

Aurelien
  
Mike Frysinger April 10, 2016, 4:57 p.m. UTC | #9
On 10 Apr 2016 18:21, Aurelien Jarno wrote:
> On 2016-04-10 01:48, Mike Frysinger wrote:
> > On 24 Mar 2016 21:19, Aurelien Jarno wrote:
> > > +LC_TELEPHONE
> > > +tel_int_fmt	"<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025><U006C>"
> > 
> > seems like you can/should just copy i18n here.  yes, this statement
> > applies to many other locales, but we shouldn't keep adding more bad
> > ones :).
> 
> If I copy i18n, how can I define also define int_prefix? I tried using
> using copy and defining it below, and I get:
> 
> | de_LI:69: no other keyword shall be specified when `copy' is used
> 
> Any idea?

sorry, i thought you could use copy & then define more stuff after the
copy.  if that's not the case and i'm misremembering, then ignore it.
just drop a comment in there saying "same as i18n".
-mike
  

Patch

diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index 6374f37..cf6f1ee 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,8 @@ 
+2016-03-24  Aurelien Jarno  <aurelien@aurel32.net>
+
+	* locales/de_LI: New locale.
+	* SUPPORTED: Add de_LI.
+
 2016-03-24  Jordi Mallach  <jordi@gnu.org>
 	    Aurelien Jarno  <aurelien@aurel32.net>
 
diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
index 68f13df..51bb91f 100644
--- a/localedata/SUPPORTED
+++ b/localedata/SUPPORTED
@@ -107,6 +107,7 @@  de_CH/ISO-8859-1 \
 de_DE.UTF-8/UTF-8 \
 de_DE/ISO-8859-1 \
 de_DE@euro/ISO-8859-15 \
+de_LI.UTF-8/UTF-8 \
 de_LU.UTF-8/UTF-8 \
 de_LU/ISO-8859-1 \
 de_LU@euro/ISO-8859-15 \
diff --git a/localedata/locales/de_LI b/localedata/locales/de_LI
new file mode 100644
index 0000000..9271190
--- /dev/null
+++ b/localedata/locales/de_LI
@@ -0,0 +1,102 @@ 
+comment_char %
+escape_char  /
+
+% This file is part of the GNU C Library and contains locale data.
+% The Free Software Foundation does not claim any copyright interest
+% in the locale data contained in this file.  The foregoing does not
+% affect the license of the GNU C Library as a whole.  It does not
+% exempt you from the conditions of the license if your use would
+% otherwise be governed by that license.
+
+% German Language Locale for Liechtenstein
+% Language: de
+% Territory: LI
+% Revision: 1.0
+% Date: 2007-11-27
+% Users: general
+% Charset: ISO-8859-1
+
+LC_IDENTIFICATION
+title      "German locale for Liechtenstein"
+source     ""
+address    ""
+contact    ""
+email      "bug-glibc-locales@gnu.org"
+tel        ""
+fax        ""
+language   "German"
+territory  "Liechtenstein"
+revision   "1.0"
+date       "2007-11-27"
+%
+category  "i18n:2000";LC_IDENTIFICATION
+category  "i18n:2000";LC_CTYPE
+category  "i18n:2000";LC_COLLATE
+category  "i18n:2000";LC_TIME
+category  "i18n:2000";LC_NUMERIC
+category  "i18n:2000";LC_MONETARY
+category  "i18n:2000";LC_MESSAGES
+category  "i18n:2000";LC_PAPER
+category  "i18n:2000";LC_NAME
+category  "i18n:2000";LC_ADDRESS
+category  "i18n:2000";LC_TELEPHONE
+END LC_IDENTIFICATION
+
+LC_CTYPE
+copy "de_CH"
+END LC_CTYPE
+
+LC_COLLATE
+copy "de_CH"
+END LC_COLLATE
+
+LC_MESSAGES
+copy "de_CH"
+END LC_MESSAGES
+
+LC_MONETARY
+copy "de_CH"
+END LC_MONETARY
+
+LC_NUMERIC
+copy "de_CH"
+END LC_NUMERIC
+
+LC_TIME
+copy "de_CH"
+END LC_TIME
+
+LC_PAPER
+copy "de_CH"
+END LC_PAPER
+
+LC_TELEPHONE
+tel_int_fmt	"<U002B><U0025><U0063><U0020><U0025><U0061><U0020><U0025><U006C>"
+int_prefix	"<U0034><U0032><U0033>"
+END LC_TELEPHONE
+
+LC_MEASUREMENT
+copy "de_CH"
+END LC_MEASUREMENT
+
+LC_NAME
+copy "de_CH"
+END LC_NAME
+
+LC_ADDRESS
+postal_fmt	"<U0025><U0066><U0025><U004E><U0025><U0061><U0025><U004E>/
+		<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0073>/
+		<U0020><U0025><U0068><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
+		<U004E><U0025><U0025><U007A><U0020><U0025><U0054><U0025>/
+		<U004E><U0025><U0063><U0025><U004E>"
+country_name	"<U004C><U0069><U0065><U0063><U0068><U0074><U0065><U006E><U0073><U0074>/
+		<U0065><U0069><U006E>"
+country_ab2	"<U004C><U0049>"
+country_ab3	"<U004C><U0049><U0045>"
+country_num	438
+lang_name	"<U0044><U0065><U0075><U0074><U0073><U0063><U0068>"
+lang_ab		"<U0064><U0065>"
+lang_term	"<U0064><U0065><U0075>"
+lang_lib	"<U0067><U0065><U0072>"
+END LC_ADDRESS
+