Page MenuHomePhabricator

Clean up, merge, update zh/zh-* translations and update zh-related language fallback chains in mediawiki/core
Open, In Progress, 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

Related Objects

StatusSubtypeAssignedTask
In ProgressWinston_Sung
In ProgressWinston_Sung
ResolvedWinston_Sung
ResolvedWinston_Sung
ResolvedMarcoAurelio
Resolvedhoo
ResolvedWinston_Sung
OpenNone
OpenNone
ResolvedNikerabbit
ResolvedWinston_Sung
ResolvedWinston_Sung
ResolvedBUG REPORTWinston_Sung
OpenNone
ResolvedBUG REPORTXiplus
StalledNone
StalledNone
ResolvedNone
OpenNone
OpenNone
StalledNone
OpenNone
OpenNone
OpenNone
OpenNone
Invalid GWicke
Resolvedliangent
Resolvedthiemowmde
OpenNone
Resolvedcscott
Resolvedcscott
Resolved Elitre
Resolvedcscott
Resolvedcscott
Resolvedcscott
Resolvedcscott
Resolvedcscott
OpenNone
DuplicateBUG REPORTNone
Resolvedcscott
OpenNone
OpenNone
OpenNone
OpenNone
ResolvedBUG REPORTJgiannelos
OpenNone
OpenNone

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Winston_Sung changed the task status from In Progress to Stalled.Dec 10 2021, 4:22 AM

Waiting MobileFrontend translation fixes to be merged.

Winston_Sung renamed this task from Clean up, merge and update zh, zh-hant, zh-tw translations in mediawiki/core to Clean up, merge and update zh/zh-* translations and language fallback chain in mediawiki/core.Dec 24 2021, 7:04 PM
Winston_Sung updated the task description. (Show Details)
Winston_Sung renamed this task from Clean up, merge and update zh/zh-* translations and language fallback chain in mediawiki/core to Clean up, merge, update zh/zh-* translations and update zh-related language fallback chains in mediawiki/core.Jan 16 2022, 1:01 AM
Winston_Sung updated the task description. (Show Details)

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

[mediawiki/core@master] Update language fallback chain for yue

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

@Krinkle I noticed that some @author markups in Messages*.php files didn't be removed, though the actual contents introduced via L10n update are moved to json files in change 122787, is that intentional?
(Author of that patch may not active these years, so I need to ask the reviewer of that change for help, thank you.)

@Func To my knowledge, we do not keep track of what an author contributed to a file exactly, only that they contributed.

For languages where, after moving the translations from Messages*.php to JSON, there was no code left (other than comments such as @author attributions), the file was removed, and thus these attributions were effectively moved from PHP to JSON.

For languages where, there was still some code left, the attributions were left as well as they may be attributions for the code that remains in PHP.

I hope this answers your question. Feel free to ask further :)

Change 788416 had a related patch set uploaded (by Winston Sung; author: 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 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