Re: Is zh_Hans a valid locale name?

2019-02-15 Thread Randy Barlow
I have filed an upstream ticket about this, in case anyone is interested in participating there: https://github.com/dino/dino/issues/524 signature.asc Description: This is a digitally signed message part ___ devel mailing list --

Re: Is zh_Hans a valid locale name?

2019-02-15 Thread Peng Wu
I think "zh_CN" is specified by ISO 639-1 and ISO 3166-1, and "zh-Hans" is used mainly in Unicode CLDR. The default locale for Simplified Chinese is "zh_CN.UTF-8". When gettext or glibc lookup the locale data, it will do some conversion to match from "zh_CN.UTF-8" locale to "zh_CN". But I

Re: Is zh_Hans a valid locale name?

2019-02-14 Thread Jens-Ulrik Petersen
Any reason not to use the more standard glibc locale name: zh_CN? I don't think glibc (or gettext) knows about zh_Hans, let alone zh-Hans. I think what Tom says is basically correct: zh-Hans is a CLDR locale name. Jens On Thu, Feb 14, 2019 at 11:42 PM Randy Barlow wrote: > I recently added

Re: Is zh_Hans a valid locale name?

2019-02-14 Thread Florian Weimer
* Tom Hughes: > On 14/02/2019 20:20, Florian Weimer wrote: >> * Tom Hughes: >> >>> It's not a fully specified locale but it's not wrong either. Per >>> the CLDR likely subtag rules it would expand to zh_Hans_CN. >> >> zh_Hans_CN or zh-Hans_CN? > > Well I think that depends on the system parsing

Re: Is zh_Hans a valid locale name?

2019-02-14 Thread Tom Hughes
On 14/02/2019 20:20, Florian Weimer wrote: * Tom Hughes: It's not a fully specified locale but it's not wrong either. Per the CLDR likely subtag rules it would expand to zh_Hans_CN. zh_Hans_CN or zh-Hans_CN? Well I think that depends on the system parsing the name and which standard if any

Re: Is zh_Hans a valid locale name?

2019-02-14 Thread Florian Weimer
* Tom Hughes: > It's not a fully specified locale but it's not wrong either. Per > the CLDR likely subtag rules it would expand to zh_Hans_CN. zh_Hans_CN or zh-Hans_CN? ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an

Re: Is zh_Hans a valid locale name?

2019-02-14 Thread Tom Hughes
On 14/02/2019 15:58, Randy Barlow wrote: On Thu, 2019-02-14 at 15:53 +, Tom Hughes wrote: It's not a fully specified locale but it's not wrong either. Per the CLDR likely subtag rules it would expand to zh_Hans_CN. It specifies simplified chinese without any specific country being targeted

Re: Is zh_Hans a valid locale name?

2019-02-14 Thread Randy Barlow
On Thu, 2019-02-14 at 15:53 +, Tom Hughes wrote: > It's not a fully specified locale but it's not wrong either. Per > the CLDR likely subtag rules it would expand to zh_Hans_CN. > > It specifies simplified chinese without any specific country being > targeted - so it's the equivalent of en

Re: Is zh_Hans a valid locale name?

2019-02-14 Thread Tom Hughes
On 14/02/2019 15:41, Randy Barlow wrote: I recently added dino to Fedora, and rpmlint seems unhappy with the locale in the package: dino.x86_64: E: incorrect-locale-subdir /usr/share/locale/zh-Hans/LC_MESSAGES/dino-omemo.mo dino.x86_64: E: invalid-lc-messages-dir

Is zh_Hans a valid locale name?

2019-02-14 Thread Randy Barlow
Greetings! I recently added dino to Fedora, and rpmlint seems unhappy with the locale in the package: dino.x86_64: E: incorrect-locale-subdir /usr/share/locale/zh-Hans/LC_MESSAGES/dino-omemo.mo dino.x86_64: E: invalid-lc-messages-dir /usr/share/locale/zh-Hans/LC_MESSAGES/dino-omemo.mo