Bug 26752 - Please add the new locale zgh_MA
Summary: Please add the new locale zgh_MA
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: 2.39
Assignee: Mike FABIAN
URL:
Keywords:
: 26751 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-10-18 18:09 UTC by Hakim OUBOUALI
Modified: 2024-01-09 16:20 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2024-01-09 00:00:00
fweimer: security-


Attachments
locale for standard Moroccan Tamazight language (1.66 KB, text/plain)
2020-10-18 18:09 UTC, Hakim OUBOUALI
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hakim OUBOUALI 2020-10-18 18:09:36 UTC
Created attachment 12908 [details]
locale for standard Moroccan Tamazight language

Dear maintainers,

Please find attached the locale definition for Standard moroccan tamazight(zgh) to be considered for inclusion in glibc.

Thanks
Comment 1 Florian Weimer 2020-10-19 08:04:48 UTC
*** Bug 26751 has been marked as a duplicate of this bug. ***
Comment 2 Hakim OUBOUALI 2020-10-20 22:50:45 UTC
Comment on attachment 12908 [details]
locale for standard Moroccan Tamazight language

changing some mistakes
Comment 3 Hakim OUBOUALI 2020-10-20 22:53:50 UTC
Comment on attachment 12908 [details]
locale for standard Moroccan Tamazight language

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.

% Tamazight language locale for Morocco
% Contributed by OUBOUALI Hakim <hakim.oubouali.skr@gmail.com>
% and Yassine Aït-El-Mouden <yaitelmouden@outlook.com>

LC_IDENTIFICATION
title      "Tamazight language locale for Morocco"
source     ""
contact    "OUBOUALI Hakim"
email      "hakim.oubouali@etu.cyu.fr"
language   "Moroccan Tamazight"
territory  "Morocco"
revision   "1.0"
date       "2020-10-18"

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_CTYPE
copy "i18n"

translit_start
include "translit_combining";""
translit_end
END LC_CTYPE

LC_COLLATE

% Copy the template from ISO/IEC 14651
copy "iso14651_t1"

END LC_COLLATE


LC_TIME
day    	"ⴰⵙⴰⵎⴰⵙ";/
	   	"ⴰⵢⵏⴰⵙ";/
        "ⴰⵙⵉⵏⴰⵙ";/
        "ⴰⴽⵕⴰⵙ";/
        "ⴰⴽⵡⴰⵙ";/
        "ⴰⵙⵉⵎⵡⴰⵙ";/
        "ⴰⵙⵉⴹⵢⴰⵙ"

abday   "ⴰⵙⴰ";/
		"ⴰⵢⵏ";/
        "ⴰⵙⵏ";/<U202F>
        "ⴰⴽⵕ";/
        "ⴰⴽⵡ";/
        "ⴰⵙⵎ";/
        "ⴰⵙⴹ"

mon     "ⵉⵏⵏⴰⵢⵔ";/
        "ⴱⵕⴰⵢⵕ";/
        "ⵎⴰⵕⵚ";/
        "ⵉⴱⵔⵉⵔ";/
        "ⵎⴰⵢⵢⵓ";/
        "ⵢⵓⵏⵢⵓ";/
        "ⵢⵓⵍⵢⵓⵣ";/
        "ⵖⵓⵛⵜ";/
        "ⵛⵓⵜⴰⵏⴱⵉⵔ";/
        "ⴽⵟⵓⴱⵕ";/
        "ⵏⵓⵡⴰⵏⴱⵉⵔ";/
        "ⴷⵓⵊⴰⵏⴱⵉⵔ"

abmon   "ⵉⵏⵏ";/
        "ⴱⵕⴰ";/
        "ⵎⴰⵕ";/
        "ⵉⴱⵔ";/
        "ⵎⴰⵢ";/
        "ⵢⵓⵏ";/
        "ⵢⵓⵍ";/
        "ⵖⵓⵛ";/
        "ⵛⵓⵜ";/
        "ⴽⵟⵓ";/
        "ⵏⵓⵡ";/
        "ⴷⵓⵊ"
%
% Appropriate date and time representation
d_t_fmt       "%a %d %b %Y %T"
%
% Appropriate date and time representation for date(1)
date_fmt      "%a %d %b %Y %T %Z"
% Appropriate date representation
d_fmt         "%d//%m//%Y"
% Appropriate time representation
t_fmt         "%T"
% Appropriate 12 h time representation
t_fmt_ampm    "%I:%M:%S %p"
%
% Strings for AM/PM
%
am_pm "ⵏ ⵜⵉⴼⴰⵡⵜ";"ⵏ ⵜⴷⴳⴳⵯⴰⵜ"
week 7;19971130;1
first_weekday 7
first_workday 1
END LC_TIME

LC_NUMERIC
decimal_point","
thousands_sep"<U202F>"
grouping      3
END LC_NUMERIC

LC_MONETARY
% This is the POSIX Locale definition the LC_MONETARY category.
% These are generated based on XML base Locale definition file
% for IBM Class for Unicode/Java
%
int_curr_symbol       "MAD "
currency_symbol       "ⴷ.ⵎ"
mon_decimal_point     "."
mon_thousands_sep     ","
mon_grouping          3
positive_sign         ""
negative_sign         "-"
int_frac_digits       3
frac_digits           3
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           2
%
END LC_MONETARY

LC_MESSAGES
yesexpr "^[+1yYiI]"
noexpr  "^[-0nNuUaA]"
yesstr "ⵢⴰⵀ"
nostr  "ⵓⵀⵓ"
END LC_MESSAGES

LC_PAPER
copy "i18n"
END LC_PAPER

LC_NAME
name_fmt  "%d%t%g%t%m%t%f"
name_miss "ⵜⴰⵎⵙⵉⵡⵜ"
name_mr   "ⵎⴰⵙⵙ"
name_mrs  "ⵎⴰⵙⵙⴰ"
name_ms   "ⵎⴰⵙⵙⴰ"
END LC_NAME

LC_ADDRESS
postal_fmt   "%f%N%a%N%d%N%b%N%s %h %e %r%N%z %T%N%c%N"
country_name "ⵜⴰⴳⵍⴷⵉⵜ ⵏ ⵓⵎⵔⵔⵓⴽ"
country_ab2  "MA"
country_ab3  "MAR"
country_num  504
country_car  "MA"
lang_name    "ⵜⴰⵎⴰⵣⵉⵖⵜ"
lang_term    "zgh"
lang_lib     "zgh"
END LC_ADDRESS

LC_TELEPHONE
% This is the ISO_IEC TR14652 Locale definition for the
%
tel_int_fmt "+%c ;%a ;%l"
int_prefix  "212"
int_select  "00"
END LC_TELEPHONE

LC_MEASUREMENT
copy "ar_MA"
END LC_MEASUREMENT
Comment 5 Mike FABIAN 2024-01-09 12:53:33 UTC
https://github.com/unicode-org/cldr/blob/main/common/main/zgh.xml#L182 has

<territory type="MA">ⵍⵎⵖⵔⵉⴱ</territory>

https://github.com/unicode-org/cldr/blob/main/common/main/zgh.xml#L57

<language type="zgh">ⵜⴰⵎⴰⵣⵉⵖⵜ</language>

The language name is the same, but country_name is not. Why not?
Comment 6 Mike FABIAN 2024-01-09 16:11:13 UTC
    "ⵍⵎⵖⵔⵉⴱ" (in Tifinagh script) corresponds to "LMGRIB" (transliterated) and "Morocco" in English.

    "ⵜⴰⴳⵍⴷⵉⵜ ⵏ ⵓⵎⵔⵔⵓⴽ" (in Tifinagh script) corresponds to "Tageldit n Umrṛuk" (transliterated) and "Kingdom of Morocco" in English.
Comment 7 Mike FABIAN 2024-01-09 16:20:28 UTC
Fixed in glibc master:

https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=03f2265a37ca344d05fb77f3fa5f9bc28357abd9

commit 03f2265a37ca344d05fb77f3fa5f9bc28357abd9
Author: Mike FABIAN <mfabian@redhat.com>
Date:   Tue Jan 9 13:43:38 2024 +0100

    localedata: add new locale zgh_MA
    
    Resolves: BZ # 12908
    
    https://iso639-3.sil.org/code/zgh


I wrote the wrong bug number in "Resolves: BZ # 12908".