diff mbox

[v2,2/2] New locale de_LI

Message ID 1467284253-21412-2-git-send-email-aurelien@aurel32.net
State New
Headers show

Commit Message

Aurelien Jarno June 30, 2016, 10:57 a.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 | 99 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 105 insertions(+)
 create mode 100644 localedata/locales/de_LI

Changes v1 -> v2
  - Add country_car and country_post
  - Add a comment telling that tel_int_fmt is the same as i18n

Comments

Marko Myllynen July 6, 2016, 11:21 a.m. UTC | #1
Hi,

On 2016-06-30 13:57, 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.
> 
> localedata/Changelog:
> 	* locales/de_LI: New locale.
> 	* SUPPORTED: Add de_LI.

LGTM.

Thanks,
Andreas Schwab July 7, 2016, 7:28 a.m. UTC | #2
LC_ADDRESS: invalid escape `%	' sequence in field `postal_fmt'
make[2]: *** [Makefile:205: install-de_LI.UTF-8/UTF-8] Error 1

Andreas.
Aurelien Jarno July 7, 2016, 12:50 p.m. UTC | #3
On 2016-07-07 09:28, Andreas Schwab wrote:
> LC_ADDRESS: invalid escape `%	' sequence in field `postal_fmt'
> make[2]: *** [Makefile:205: install-de_LI.UTF-8/UTF-8] Error 1

Oops I changed the indentation before submitting the patch, and I failed
to test it correctly. I have just pushed a fix. Sorry about that.

Aurelien
diff mbox

Patch

diff --git a/localedata/ChangeLog b/localedata/ChangeLog
index fa4e53b..de5ff6a 100644
--- a/localedata/ChangeLog
+++ b/localedata/ChangeLog
@@ -1,3 +1,8 @@ 
+2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
+
+	* locales/de_LI: New locale.
+	* SUPPORTED: Add de_LI.
+
 2016-06-30  Jordi Mallach  <jordi@gnu.org>
 	    Aurelien Jarno  <aurelien@aurel32.net>
 
diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
index 16b08ef..2cb785b 100644
--- a/localedata/SUPPORTED
+++ b/localedata/SUPPORTED
@@ -110,6 +110,7 @@  de_DE/ISO-8859-1 \
 de_DE@euro/ISO-8859-15 \
 de_IT.UTF-8/UTF-8 \
 de_IT/ISO-8859-1 \
+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..af7bced
--- /dev/null
+++ b/localedata/locales/de_LI
@@ -0,0 +1,99 @@ 
+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
+
+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
+% same as i18n
+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
+country_car	"<U0046><U004C>"
+country_post	"<U004C><U0049>"
+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
+