Page MenuHomePhabricator

zh (Chinese) doesn't appear as a suggested language if the country is CN (China)
Closed, ResolvedPublic

Description

In CLDR, the Chinese language for China is listed as zh-hans and zh-hant, and not as zh. When ULS tries to find whether a link to zh exists, this fails because our links are only zh and not zh-hans or zh-hant.

This also happens with ug-arab and kk-arab, which we have as ug and kk.

zh may end up in the list despite this thanks to the recently-added extra common languages (T135366), but we must not count on it, and instead we must cover it with the CLDR territory info by converting zh-hans and zh-hant to zh.

Event Timeline

Amire80 created this task.May 25 2016, 9:10 PM
Restricted Application added a project: UniversalLanguageSelector. · View Herald TranscriptMay 25 2016, 9:10 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript
Amire80 triaged this task as High priority.May 25 2016, 9:10 PM
Amire80 moved this task from Backlog to Missing languages on the ULS-CompactLinks board.
Nikerabbit added a subscriber: Nikerabbit.

https://github.com/wikimedia/jquery.uls/pull/225

@Nemo_bis This bug is about our country data and the one you refer deals with search.

Arrbee closed this task as Resolved.Jun 14 2016, 7:53 AM
Arrbee moved this task from QA to Done on the Language-Q4-2016-Sprint 4 board.