This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2] New locale for it_SM
- From: Mike FABIAN <mfabian at redhat dot com>
- To: Akhilesh Kumar <akhilesh dot k at samsung dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 08 Aug 2017 09:59:32 +0200
- Subject: Re: [PATCH 2/2] New locale for it_SM
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=mfabian at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 71EB0769E5
- References: <CGME20170808034943epcas5p446043a4704098da2de8283564590d5e8@epcas5p4.samsung.com> <1502163904-8750-1-git-send-email-akhilesh.k@samsung.com>
Akhilesh Kumar <akhilesh.k@samsung.com> wrote:
> New locale is added for "Republic of San Marino"
> and Official languages is Italian
>
> https://en.wikipedia.org/wiki/San_Marino
>
> [#BZ 21918]
> * localedata/SUPPORTED : Added it_SM
> * localedata/locales/it_SM: Added New File it_SM
> --- /dev/null
> +++ b/localedata/locales/it_SM
> @@ -0,0 +1,119 @@
> +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.
> +
> +% Italian Language Locale for San Marino
> +% Contributed by Akhilesh Kumar <akhilesh.k@samsung.com>
> +% Language: it
> +% Territory: Republic of San Marino
> +% Revision: 0.1
> +% Date: 08/08/2017
> +% Users: general
> +
> +LC_IDENTIFICATION
> +title "Italian locale for Republic of San Marino"
> +source "Samsung Electronics Co., Ltd."
> +address ""
> +contact ""
> +email "akhilesh.k@samsung.com"
> +tel ""
> +fax ""
> +language "Italian"
> +territory "San Marino"
> +revision "0.1"
> +date "2017-08-08"
> +
> +category "i18n:2012";LC_IDENTIFICATION
> +category "i18n:2012";LC_CTYPE
> +category "i18n:2012";LC_COLLATE
> +category "i18n:2012";LC_TIME
> +category "i18n:2012";LC_NUMERIC
> +category "i18n:2012";LC_MONETARY
> +category "i18n:2012";LC_MESSAGES
> +category "i18n:2012";LC_PAPER
> +category "i18n:2012";LC_NAME
> +category "i18n:2012";LC_ADDRESS
> +category "i18n:2012";LC_TELEPHONE
> +category "i18n:2012";LC_MEASUREMENT
> +END LC_IDENTIFICATION
> +
> +LC_COLLATE
> +copy "it_IT"
> +END LC_COLLATE
> +
> +LC_CTYPE
> +copy "it_IT"
> +END LC_CTYPE
> +
> +LC_MESSAGES
> +copy "it_IT"
> +END LC_MESSAGES
> +
> +LC_MONETARY
> +int_curr_symbol "ERO "
I think that should be "EUR ".
> +currency_symbol "€"
> +mon_decimal_point "."
> +mon_thousands_sep ","
> +mon_grouping 3;3
> +positive_sign ""
> +negative_sign "-"
> +int_frac_digits 2
> +frac_digits 2
> +p_cs_precedes 1
> +p_sep_by_space 1
> +n_cs_precedes 1
> +n_sep_by_space 1
> +p_sign_posn 1
> +n_sign_posn 1
> +END LC_MONETARY
Why are mon_decimal_point and mon_thousands_sep different from what the
it_IT locale has?:
LC_MONETARY
int_curr_symbol "EUR "
currency_symbol "€"
mon_decimal_point ","
mon_thousands_sep "."
mon_grouping 3;3
positive_sign ""
negative_sign "-"
int_frac_digits 2
frac_digits 2
p_cs_precedes 1
p_sep_by_space 1
n_cs_precedes 1
n_sep_by_space 1
p_sign_posn 1
n_sign_posn 1
END LC_MONETARY
Do you have any reference whether San Marino uses a different monetary
formatting than Italy?
> +
> +LC_NUMERIC
> +copy "it_IT"
> +END LC_NUMERIC
> +
> +LC_TIME
> +copy "it_IT"
> +END LC_TIME
> +
> +LC_PAPER
> +copy "it_IT"
> +END LC_PAPER
> +
> +LC_TELEPHONE
> +% https://www.howtocallabroad.com/san-marino/
> +tel_int_fmt "+%c %l"
> +% 00 Europe: all countries except Belarus and Russia
> +int_prefix "00"
> +int_select "378"
> +END LC_TELEPHONE
> +
> +LC_MEASUREMENT
> +copy "it_IT"
> +END LC_MEASUREMENT
> +
> +LC_NAME
> +copy "it_IT"
> +END LC_NAME
> +
> +LC_ADDRESS
> +postal_fmt "%f%N%h%s%N%T"
> +country_name "Republic of San Marino"
> +country_ab2 "SM"
> +country_ab3 "SMR"
> +country_num 674
> +% https://en.wikipedia.org/wiki/List_of_international_vehicle_registration_codes
> +country_car "RSM"
> +lang_name "Italian"
> +% it
> +lang_ab "it"
> +% ita
> +lang_term "ita"
> +% ita
> +lang_lib "ita"
> +END LC_ADDRESS
--
Mike FABIAN <mfabian@redhat.com>