What language specifically is Chinese, language code 'zh'?
Asked Answered
P

1

7

I understand that there is Simplified Chinese (zh-Hans) and Traditional Chinese (zh-Hant).

However Xcode allows to localize for Chinese (zh).

From the localization fallback concept I understand that it is the fallback for Simplified Chinese and Traditional Chinese. Thus is can technically be used to host common Chinese localized strings that are equal in Simplified and Traditional Chinese.

What is the Xcode locale zh for? Should zh be Simplified or Traditional Chinese?

Pecos answered 2/10, 2017 at 22:23 Comment(0)
P
10

Should zh be Simplified or Traditional Chinese?

According to W3C (and the IANA subtag registry) zh is a "macrolanguage". As such it has no default writing system and a more specific variant should be used. However, it gives an example of common usage as follows:

When zh is used on its own, it is usually used to mean the predominant language in the encompassed range, although this is not explicitly specified in BCP 47. For example, conventionally zh is considered to represent the predominant, Mandarin form of Chinese.

source: https://www.w3.org/International/articles/language-tags/

It seems that zh might be used in legacy applications to mean Mandarin. Although the language tag cmn has no default writing system either, so that still doesn't answer the question as to which script it should be written in.

I note that my iPhone (iOS 11) allows me to set the system language to zh-Hans, zh-Hant and zh-Hant-HK only, but has no Mandarin option.


Disclamer: I'm neither an iOS developer nor do I understand Chinese. I'm just a language tag nerd.

Paperback answered 5/10, 2017 at 10:13 Comment(1)
zh-Hans is Mandarin, zh-Hant is used for Taiwan. Taiwanese does not speak Mandarin.Dogberry

© 2022 - 2024 — McMap. All rights reserved.