Page MenuHomePhabricator

incorrect language code for zh.wikipedia.org
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce

  1. more settings wikipedia languages
  2. add a language
  3. search chinese
  4. add chinese (china)

Expected results

language code zh

Actual results

result of chinese (hakka chinese not able to capture)

Screenshot_20251210-052356_Wikipedia.jpg (1×720 px, 112 KB)

language code zh-cn

Screenshot_20251210-051543_Wikipedia.jpg (1×720 px, 67 KB)

Stack trace

(Optional logcat output)

Environments observed

App version: *r/50561-r-2025-12-03*
Android OS versions:
Device model:
Device language:**

Event Timeline

Hi @vadan,

Thanks for submitting the feedback. Upon checking the issue, I was able to find Hakka Chinese if I searched "Chinese" in the search bar, and you will probably need to scroll down a little bit to see other results from the list.

Screenshot_20260106_091729_Wikipedia Dev.jpg (2×1 px, 70 KB)

cooltey claimed this task.

hi @cooltey.

reread description provided by me. completely wrong impression is given.

  1. chinese language code "zh" is not available
  2. zh code is used for chinese language per
    1. List of Wikipedias by country https://meta.wikimedia.org/wiki/List_of_Wikipedias_by_country
    2. List of Wikipedias https://meta.wikimedia.org/wiki/List_of_Wikipedias
  1. as on january 7, 2026 8 chinese languages are available
    1. zh-cn chinese (china)
    2. zh-hk chinese (hong kong)
    3. zh-mo chinese (macau)
    4. zh-my chinese (malaysia)
    5. zh-sg chinese (singapore)
    6. zh-tw chinese (taiwan)
    7. hak (hakka chinese)
    8. zh-classical (literary chinese)
  1. video: https://commons.wikimedia.org/wiki/File:Chinese_language_code_zh_missing.webm

The non-dialect variants are for built-in language conversion. That is, they are from the same wiki (zhwiki), serving the same contents, but in different writing systems. On the above list, only hak and classical are separated from zhwiki.

For the web interface, It is intentional to hide “zh”, “zh-hans” and “zh-hant” from the list, as they are non-localized variants. The same might have been applied to the app.