Page MenuHomePhabricator

Clean up, merge, update zh/zh-* translations and update zh-related language fallback chains in mediawiki/core
Open, Needs TriagePublic

Description

Clean up, merge, update zh/zh-* translations and update zh-related language fallback chains in mediawiki/core.

Update zh/zh-* language fallback chain.

  • Update zh-hant => zh-hans to zh-hans <=> zh-hant (unidirectional => bidirectional)
    • Adding zh-hant to each zh-Hans zh-* variant fallback chain
  • Adding zh to each zh-related languages'/variants' fallback chain
    • This also fix the Special:MyLanguage/* redirection issue

Merge zh-tw translations back to zh-hant, update zh, zh-hant, zh-tw translations and adding missing aliases in php file (namespace/special page/magic words names and aliases) in mediawiki/core.

  • Merge zh-tw translations back to zh-hant
    • Merge zh-tw namespace aliases
    • Merge zh-tw special page names
    • Merge zh-tw special page aliases
    • Update zh-hant namespace names
    • Update zh-hant namespace aliases
    • Update zh-hant special page names
    • Update zh-hant special page aliases
  • Adding zh-hant translations as aliases to zh/zh-hans for fallback issues
    • Update zh namespace aliases
    • Update zh-hans special page aliases (moved from zh to zh-hans to prevent duplicated translation content)
    • Update zh magic word default names
    • Update zh magic word aliases
    • Adding zh magic word default names (intended to be in en)
    • Adding zh magic word aliases

Details

Related Changes in Gerrit:
SubjectRepoBranchLines +/-
mediawiki/coreREL1_45+3 -3
mediawiki/coremaster+3 -3
mediawiki/coremaster+147 -0
mediawiki/coremaster+59 -103
mediawiki/coremaster+0 -41
mediawiki/coremaster+7 -33
mediawiki/coremaster+99 -177
mediawiki/coremaster+88 -35
mediawiki/coreREL1_40+107 -123
mediawiki/coreREL1_39+107 -123
mediawiki/coremaster+107 -123
mediawiki/corewmf/1.39.0-wmf.21+0 -2
mediawiki/corewmf/1.39.0-wmf.19+0 -2
mediawiki/coremaster+0 -2
mediawiki/extensions/Wikibasewmf/1.39.0-wmf.21+5 -1
mediawiki/extensions/Wikibasewmf/1.39.0-wmf.19+5 -1
mediawiki/extensions/Wikibasemaster+5 -1
mediawiki/coremaster+226 -27
Show related patches Customize query in gerrit

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Change 788606 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@wmf/1.39.0-wmf.9] Rearrange zh-related fallbacks and zh/zh-* translations, aliases in mediawiki/core

https://gerrit.wikimedia.org/r/788606

Change 788606 abandoned by Winston Sung:

[mediawiki/core@wmf/1.39.0-wmf.9] Rearrange zh-related fallbacks and zh/zh-* translations, aliases in mediawiki/core

Reason:

https://gerrit.wikimedia.org/r/788606

Change 788416 abandoned by Winston Sung:

[mediawiki/core@wmf/1.39.0-wmf.10] Rearrange zh-related fallbacks and zh/zh-* translations, aliases in mediawiki/core

Reason:

https://gerrit.wikimedia.org/r/788416

Change 788416 restored by Winston Sung:

[mediawiki/core@wmf/1.39.0-wmf.10] Rearrange zh-related fallbacks and zh/zh-* translations, aliases in mediawiki/core

https://gerrit.wikimedia.org/r/788416

Change 788606 restored by Winston Sung:

[mediawiki/core@wmf/1.39.0-wmf.9] Rearrange zh-related fallbacks and zh/zh-* translations, aliases in mediawiki/core

https://gerrit.wikimedia.org/r/788606

Change 797213 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@master] Merge and rearrange zh-related message file translations

https://gerrit.wikimedia.org/r/797213

Change 703560 merged by jenkins-bot:

[mediawiki/core@master] Rearrange zh-related language fallback chain

https://gerrit.wikimedia.org/r/703560

Is there any reason why the fallback chain for yue is modified? The change has caused confusion, concern and shock in yue.wikipedia.

Is there any reason why the fallback chain for yue is modified? The change has caused confusion, concern and shock in yue.wikipedia.

@H78c67c

See T125373#1992846 , T125373#7975601 .

This is not only for system messages but also for Special:MyLanguage redirection.

I would like to state that I cannot think of any justifiable reason for this change. Can you explain why you changed the fallback chain to what it is please?

https://yue.wikipedia.org/wiki/Wikipedia:城市論壇_(技術)?curid=4284&oldid=1836053


此一改動係為暫冇粵文翻譯且zh-hk、zh-hant或fallback chain內嘅語言已有對應翻譯時能提供介面顯示。如:「取消」、「下載PDF」在冇粵文翻譯時能直接用zh-hk、zh-hant與粵文相同嘅翻譯顯示。
同時調整Special:MyLanguage之重新導向。
單純係技術嘅改動,毋須擔心分薄粵維啲資源。
若有改進嘅意見歡迎各位提出。
同時歡迎至translatewiki:貢獻、完善粵文嘅翻譯。
(在下嘅粵語尚在學習,如有錯誤歡迎提醒。)

Is there any reason why the fallback chain for yue is modified? The change has caused confusion, concern and shock in yue.wikipedia.

Was there any communciation between phab and the yue community before such change? I myself was actually shocked being NOTIFIED about this change, without any discussion before.

I was considering that it should be the expected behavior (when thinking that all zh-related language should be able to redirect to zh / zh-* , especially after looked into one of the YueConverter patchset) and mis-ignored and didn't confirm the fact that the language fallback chain change to yue haven't gain the community consensus on Wikipedia-yue.

My apologies for not asking/confirming community consensus first.

(Also, my apologies to the late reply as I was having a test.)

Also there's hasn't any consensus for the Yue community to implementing any Language Converter Functions onto the Yue language.
For my opinion I would oppose to implement the Language Converter Functions for the Yue language until ALL of the following conversion issues are being resolved in the software level itself, where those are listed in https://zh.wikipedia.org/wiki/Wikipedia:%E7%AE%80%E7%B9%81%E4%B8%80%E5%A4%9A%E5%AF%B9%E5%BA%94%E6%A0%A1%E9%AA%8C%E8%A1%A8 and https://zh.wikipedia.org/wiki/Wikipedia:%E7%B9%81%E7%AE%80%E4%B8%80%E5%A4%9A%E5%AF%B9%E5%BA%94%E6%A0%A1%E9%AA%8C%E8%A1%A8

@shinjiman

For the LanguageConverter for yue, please go to T59106 Implement LanguageConverter for yue (Cantonese) instead.

The change to yue should be reverted ASAP, having caused numerous undesirable side effects as brought up in https://zh-yue.wikipedia.org/wiki/Wikipedia:城市論壇_(技術)#MediaWiki_介面訊息今後無粵文翻譯就會預設用zh-hk或zh-hant顯示

Yes. There is a consensus shown that the yue community prefer the fallback to en instead of zh.

Change 811417 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@master] Revert language fallback chain changes to yue

https://gerrit.wikimedia.org/r/811417

For the change to fallback chain:

  • Should we consider separate the Special:MyLanguage fallback from the message fallback (for example, add a new variable to override the $fallback for Special:MyLanguage)?
    • It will reduce the message fallback cost (as it would no longer need to add so much code to the message fallback list).
    • It will help us separate LanguageConverter-handeled content ("mixed writing content") from "mono-language" content.
  • What kind of way should we do for better "LanguageConverter <=> without LanguageConverter" content handling, including news feed to Village Pumps?
  • Should we consider separate the Special:MyLanguage fallback from the message fallback (for example, add a new variable to override the $fallback for Special:MyLanguage)?

The yue users may also don't want to see Special:MyLanguage fallback to some variants of zh? (Though that would never happen)

  • It will reduce the message fallback cost (as it would no longer need to add so much code to the message fallback list).

Actually, I am thinking about what's the point to add zh-cn into the fallback chain, there is no magic words or messages by design. And obviously, no one would translate every single variant of zh separately, this case should not be supported.

Actually, I am thinking about what's the point to add zh-cn into the fallback chain

Some users prefer to translate into zh-cn, zh-tw, zh-hk codes in Extension:Translate for multilingual pages, some prefer zh-hans, zh-hant, zh-hk codes, some simply use zh by using LanguageConverter.

Actually, I am thinking about what's the point to add zh-cn into the fallback chain

Some users prefer to translate into zh-cn, zh-tw, zh-hk codes in Extension:Translate for multilingual pages, some prefer zh-hans, zh-hant, zh-hk codes, some simply use zh by using LanguageConverter.

Are there any sites doing/allowing this?

Change 812954 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/extensions/Wikibase@master] Temporarily disable yue language fallback tests

https://gerrit.wikimedia.org/r/812954

Change 815285 had a related patch set uploaded (by Tim Starling; author: Winston Sung):

[mediawiki/extensions/Wikibase@wmf/1.39.0-wmf.19] Temporarily disable yue language fallback tests

https://gerrit.wikimedia.org/r/815285

Change 815406 had a related patch set uploaded (by Tim Starling; author: Winston Sung):

[mediawiki/extensions/Wikibase@wmf/1.39.0-wmf.21] Temporarily disable yue language fallback tests

https://gerrit.wikimedia.org/r/815406

Change 815407 had a related patch set uploaded (by Tim Starling; author: Winston Sung):

[mediawiki/core@wmf/1.39.0-wmf.19] Temporarily revert language fallback chain changes to yue

https://gerrit.wikimedia.org/r/815407

Change 815408 had a related patch set uploaded (by Tim Starling; author: Winston Sung):

[mediawiki/core@wmf/1.39.0-wmf.21] Temporarily revert language fallback chain changes to yue

https://gerrit.wikimedia.org/r/815408

Change 812954 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Temporarily disable yue language fallback tests

https://gerrit.wikimedia.org/r/812954

Change 815285 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@wmf/1.39.0-wmf.19] Temporarily disable yue language fallback tests

https://gerrit.wikimedia.org/r/815285

Change 815406 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@wmf/1.39.0-wmf.21] Temporarily disable yue language fallback tests

https://gerrit.wikimedia.org/r/815406

Change 811417 merged by jenkins-bot:

[mediawiki/core@master] Temporarily revert language fallback chain changes to yue

https://gerrit.wikimedia.org/r/811417

Change 815407 merged by jenkins-bot:

[mediawiki/core@wmf/1.39.0-wmf.19] Temporarily revert language fallback chain changes to yue

https://gerrit.wikimedia.org/r/815407

Change 815408 merged by jenkins-bot:

[mediawiki/core@wmf/1.39.0-wmf.21] Temporarily revert language fallback chain changes to yue

https://gerrit.wikimedia.org/r/815408

Mentioned in SAL (#wikimedia-operations) [2022-07-20T02:51:12Z] <tstarling@deploy1002> Started scap: revert yue -> zh fallback, needs LC rebuild in both branches T296188

Mentioned in SAL (#wikimedia-operations) [2022-07-20T03:10:53Z] <tstarling@deploy1002> Finished scap: revert yue -> zh fallback, needs LC rebuild in both branches T296188 (duration: 19m 41s)

Change 861880 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@master] Merge gan translations back to gan-hans and gan-hant respectively

https://gerrit.wikimedia.org/r/861880

Change 860490 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@master] Merge zh and zh-tw namespace translations back to zh-hans, zh-hant, zh-hk respectively

https://gerrit.wikimedia.org/r/860490

Change 863085 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@master] Implement TranslateMagicWords config option

https://gerrit.wikimedia.org/r/863085

Change 860490 merged by jenkins-bot:

[mediawiki/core@master] Merge zh and zh-tw namespace translations back to zh-hans, zh-hant, zh-hk respectively

https://gerrit.wikimedia.org/r/860490

Change 938322 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@REL1_40] Merge zh and zh-tw namespace translations back to zh-hans, zh-hant, zh-hk respectively

https://gerrit.wikimedia.org/r/938322

Change 938323 had a related patch set uploaded (by Winston Sung; author: Winston Sung):

[mediawiki/core@REL1_39] Merge zh and zh-tw namespace translations back to zh-hans, zh-hant, zh-hk respectively

https://gerrit.wikimedia.org/r/938323

Change 938323 merged by jenkins-bot:

[mediawiki/core@REL1_39] Merge zh and zh-tw namespace translations back to zh-hans, zh-hant, zh-hk respectively

https://gerrit.wikimedia.org/r/938323

Change 938322 merged by jenkins-bot:

[mediawiki/core@REL1_40] Merge zh and zh-tw namespace translations back to zh-hans, zh-hant, zh-hk respectively

https://gerrit.wikimedia.org/r/938322

Change #861880 merged by jenkins-bot:

[mediawiki/core@master] Merge gan translations back to gan-hans and gan-hant respectively

https://gerrit.wikimedia.org/r/861880

Change #863085 abandoned by Winston Sung:

[mediawiki/core@master] Implement TranslateMagicWords config option

Reason:

It is discussed that zh wiki should just always use English (en) magic words first and use the magic word translations as aliases to prevent confusion.

https://gerrit.wikimedia.org/r/863085

Change #1118101 had a related patch set uploaded (by Anterdc99; author: Anterdc99):

[mediawiki/core@master] MessagesZh.php: Remove duplicated special page aliases

https://gerrit.wikimedia.org/r/1118101

Change #1118130 had a related patch set uploaded (by Anterdc99; author: Anterdc99):

[mediawiki/core@master] MessagesZh.php: Merge ZH special page aliases into respective variants

https://gerrit.wikimedia.org/r/1118130

Change #1118140 had a related patch set uploaded (by Anterdc99; author: Anterdc99):

[mediawiki/core@master] MessageZh.php: Using English special page names by default

https://gerrit.wikimedia.org/r/1118140

Aklapper changed the task status from In Progress to Open.Mar 22 2025, 7:23 AM

Resetting task status from "In Progress" to "Open" as this task has been "in progress" for more than two years.

Change #797213 merged by jenkins-bot:

[mediawiki/core@master] Merge zh-Hant-TW special page aliases translations back to zh-Hant

https://gerrit.wikimedia.org/r/797213

Change #1118101 merged by jenkins-bot:

[mediawiki/core@master] MessagesZh.php: Remove duplicated special page aliases

https://gerrit.wikimedia.org/r/1118101

Change #1118130 merged by jenkins-bot:

[mediawiki/core@master] MessagesZh.php: Merge zh special page aliases into respective variants

https://gerrit.wikimedia.org/r/1118130

Change #1118140 merged by jenkins-bot:

[mediawiki/core@master] MessagesZh.php: Using English special page names by default

https://gerrit.wikimedia.org/r/1118140

Change #1118140 merged by jenkins-bot:

[mediawiki/core@master] MessagesZh.php: Using English special page names by default

https://gerrit.wikimedia.org/r/1118140

@Winston_Sung Where is the consensus/discussion? How can third-party sites restore the original behaviour easily?

Is there more to do in this task, or is this resolved? Asking as there are no remaining open patches in Gerrit.

The only remaining patch(es) should be the magic word part, which is still a work in progress/to-do.

https://gerrit.wikimedia.org/r/c/mediawiki/core/+/879987

Change #1213616 had a related patch set uploaded (by Winston Sung; author: Anterdc99):

[mediawiki/core@master] MessagesZh*.php: Restore missing aliases

https://gerrit.wikimedia.org/r/1213616

Change #1213616 merged by jenkins-bot:

[mediawiki/core@master] MessagesZh*.php: Restore missing special page aliases

https://gerrit.wikimedia.org/r/1213616

Change #1213628 had a related patch set uploaded (by Anterdc99; author: Anterdc99):

[mediawiki/core@REL1_45] MessagesZh*.php: Restore missing special page aliases

https://gerrit.wikimedia.org/r/1213628

Change #1213628 merged by jenkins-bot:

[mediawiki/core@REL1_45] MessagesZh*.php: Restore missing special page aliases

https://gerrit.wikimedia.org/r/1213628