[Bug localedata/31411] Add Latgalian locale

maiku.fabian at gmail dot com sourceware-bugzilla@sourceware.org
Tue Jun 11 11:18:53 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=31411

--- Comment #1 from Mike FABIAN <maiku.fabian at gmail dot com> ---
(In reply to Rudolfs Mazurs from comment #0)
> Created attachment 15377 [details]
> Possible Latgalian locale file demo
> 
> Glibc is missing the locale description for Latgalian (ltg).
> 
> Latgalian locale is in process of being added to the CLDR:
> https://unicode-org.atlassian.net/browse/CLDR-2671
> 
> I have attached a possible implementation for the locale file. It is
> somewhat based on the Latvian locale file. I have not verified that the
> ltg_LV file is valid.
> 
> Some things that would be nice to have, but I have no idea how to describe
> it in code:
> 
> - Collation rules for Latvian (lv_LV) and Latgalian are the same. Is it
> possible to just use the Latvian rules, so that if someone reports a bug for
> the Latvian collation rules, they would automatically apply to the Latgalian?\

Yes.

LC_COLLATE
copy "lv_LV"
END LC_COLLATE

Several others can be copied from lv_LV as well as they are identical:

LC_CTYPE
copy "lv_LV"
END LC_CTYPE

LC_MONETARY
copy "lv_LV"
END LC_MONETARY

LC_NUMERIC
copy "lv_LV"
END LC_NUMERIC

LC_TELEPHONE
copy "lv_LV"
END LC_TELEPHONE

LC_NAME
copy "lv_LV"
END LC_NAME

> - Is there a way to designate Latvian locale as the fallback to the
> Latgalian locale? I mean, if the user chooses to use Latgalian translations,
> but for a given application there is no Latgalian translation, the system
> should try to use the Latvian translation before falling back to English.

I don't know of any way to do that except using the LANGUAGE environment
variable, i.e. you can use these settings:

LANGUAGE=ltg:lv
LANG=ltg_LV.UTF-8

See:
https://www.gnu.org/software/gettext/manual/html_node/The-LANGUAGE-variable.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list