Created attachment 8904 [details] Locale file for Garhwali Language Hello, I want to add a new locale in glibc. Locale Name : gbm_IN Language Name : Garhwali Author : Kusum Rawat Author Email : rawatkusum801@gmail.com No. of Speakers: 2,267,314 This language is very popular in Uttarakhand state in India. This language needs to be to the computer locale so that people can start using it. Reference : https://en.wikipedia.org/wiki/Garhwali_language Thanks, Kusum Rawat
do you have any references to documents/publications that specify the basic language features ? e.g. stuff that says "in Garhwali, the proper date format is xxxxxx". we like to leave details like this in the header file for future reviews.
The requested information was not provided within four months, closing.
for locales, i don't think we need to be this strict. from time to time, i'll roll through a random locale bug and do some research/digging myself.
I made the following changes to the locale you attached: --- gbm_IN.txt 2024-01-17 17:16:01.396516352 +0100 +++ gbm_IN 2024-01-17 17:14:44.418131103 +0100 @@ -17,83 +17,35 @@ revision "1.0" date "2016-01-17" % -category "gbm_IN:2016";LC_IDENTIFICATION -category "gbm_IN:2016";LC_CTYPE -category "gbm_IN:2016";LC_COLLATE -category "gbm_IN:2016";LC_TIME -category "gbm_IN:2016";LC_NUMERIC -category "gbm_IN:2016";LC_MONETARY -category "gbm_IN:2016";LC_MESSAGES -category "gbm_IN:2016";LC_PAPER -category "gbm_IN:2016";LC_NAME -category "gbm_IN:2016";LC_ADDRESS -category "gbm_IN:2016";LC_TELEPHONE +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 END LC_IDENTIFICATION LC_CTYPE copy "hi_IN" - -% Devanagari uses the alternate digits U+0966..U+096F -outdigit ०..९ - -% This is used in the scanf family of functions to read devanagari numbers as well as Hindi. -% using "%Id" and such. -map to_inpunct; / - (0,०); / - (1,१); / - (2,२); / - (3,३); / - (4,४); / - (5,५); / - (6,६); / - (7,७); / - (8,८); / - (9,९); - -translit_start -include "translit_combining";"" -translit_end END LC_CTYPE LC_COLLATE - -% Copy the template from ISO/IEC 14651 copy "hi_IN" - END LC_COLLATE 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 "₹" -currency_symbol "" -mon_decimal_point "." -mon_thousands_sep "," -mon_grouping 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 -% +copy "hi_IN" END LC_MONETARY LC_NUMERIC -% This is the POSIX Locale definition for the LC_NUMERIC category. -% -decimal_point "." -thousands_sep "," -grouping 3 -% +copy "hi_IN" END LC_NUMERIC @@ -103,59 +55,54 @@ % for IBM Class for Unicode/Java % % Abbreviated weekday names (%a) -abday - "अत";/ - "सोम";/ - "मंगल";/ - "बुध";/ - "भुप";/ - "शुक";/ - "छन" +abday "अत";/ + "सोम";/ + "मंगल";/ + "बुध";/ + "भुप";/ + "शुक";/ + "छन" % % Full weekday names (%A) -day - "अतवार";/ - "सोमवार";/ - "मंगलवार";/ - "बुधवार";/ - "भुपयार";/ - "शुकार";/ - "छनछर" +day "अतवार";/ + "सोमवार";/ + "मंगलवार";/ + "बुधवार";/ + "भुपयार";/ + "शुकार";/ + "छनछर" % % Abbreviated month names (%b) -abmon - "जन";/ - "फर";/ - "मार्च";/ - "अप्रै";/ - "मए";/ - "जून";/ - "जुल";/ - "अग";/ - "सित";/ - "अक्टू";/ - "नव";/ - "दिस" +abmon "जन";/ + "फर";/ + "मार्च";/ + "अप्रै";/ + "मए";/ + "जून";/ + "जुल";/ + "अग";/ + "सित";/ + "अक्टू";/ + "नव";/ + "दिस" % % Full month names (%B) -mon - "जनवअर";/ - "फरवअर";/ - "मार्च";/ - "अप्रैल";/ - "मए";/ - "जून";/ - "जुलऐ";/ - "अगस्त";/ - "सितंबर";/ - "अक्टूबर";/ - "नवंबर";/ - "दिसंबर" +mon "जनवअर";/ + "फरवअर";/ + "मार्च";/ + "अप्रैल";/ + "मए";/ + "जून";/ + "जुलऐ";/ + "अगस्त";/ + "सितंबर";/ + "अक्टूबर";/ + "नवंबर";/ + "दिसंबर" % % Equivalent of AM PM -am_pm - "पूर्वाह्न";/ - "अपराह्न" +am_pm "पूर्वाह्न";/ + "अपराह्न" % % Appropriate date and time representation % %A %d %b %Y%I:%M:%S %Z @@ -188,54 +135,43 @@ noexpr "^[nN].*" END LC_MESSAGES - LC_PAPER -% This is the ISO_IEC TR14652 Locale definition for the LC_PAPER category -% generated by IBM Basic CountryPack Transformer. -height 297 -width 210 - +copy "i18n" END LC_PAPER - LC_NAME % This is the ISO_IEC TR14652 Locale definition for the % LC_NAME category. % -name_fmt "%p%t%f%t/ -%g" +name_fmt "%p%t%f%t%g" name_gen "" name_mr "श्रीमान" name_mrs "श्रीमयत" name_miss "कुँवइर" name_ms "कुँवअर" - END LC_NAME - LC_ADDRESS % This is the ISO_IEC TR14652 Locale definition for the % LC_ADDRESS -postal_fmt "%z%c%T%s/ -%b%e%r" - +postal_fmt "%z%c%T%s%b%e%r" +% country_name "" FIXME country_ab2 "IN" country_ab3 "IND" country_num 356 +country_car "IND" +lang_name "गढ़वळि" +lang_ab "" +lang_term "gbm" +lang_lib "gbm" END LC_ADDRESS LC_TELEPHONE -% This is the ISO_IEC TR14652 Locale definition for the LC_TELEPHONE -% generated by IBM Basic CountryPack Transformer. -tel_int_fmt "+%c ;%a ;%l" -int_prefix "91" -int_select "00" +copy "hi_IN" END LC_TELEPHONE LC_MEASUREMENT -% This is the ISO_IEC TR14652 Locale definition for the LC_MEASUREMENT -% category generated by IBM Basic CountryPack Transformer. -measurement 1 +copy "i18n" END LC_MEASUREMENT
Adding country_name "भारत" is probably OK.
(In reply to Mike FABIAN from comment #5) > Adding > > country_name "भारत" > > is probably OK. Same as in Hindi.
The master branch has been updated by Mike Fabian <mfabian@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=692dfa87290293e2ffd4e618a348c416a57356d3 commit 692dfa87290293e2ffd4e618a348c416a57356d3 Author: Mike FABIAN <mfabian@redhat.com> Date: Wed Jan 17 16:46:12 2024 +0100 Define ISO 639-3 "gbm" (Garhwali) Related: BZ # 19479 References: https://iso639-3.sil.org/code/gbm https://en.wikipedia.org/wiki/Garhwali_language
The master branch has been updated by Mike Fabian <mfabian@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ce77e6919f0230eca5f266dcfafd6ebb95775c30 commit ce77e6919f0230eca5f266dcfafd6ebb95775c30 Author: Mike FABIAN <mfabian@redhat.com> Date: Wed Jan 17 17:13:48 2024 +0100 localedata: add gbm_IN locale Resolves: BZ # 19479
Fixed in glibc master.