Page MenuHomePhabricator

VisualEditor on Cantonese Wikipedia defaults to foreign keyword for "#REDIRECT"
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Use VisualEditor on Cantonese Wikipedia
  • Try to insert a redirect using the VE interface

What happens?:
The Wikitext generated is

#重新導向 [[Article name]]

...which uses the zh-hk translation rather than the yue translation (跳轉) of "redirect"

What should have happened instead?:
It should have created either the English original magic word

#redirect [[Article name]]

or the customary Cantonese translation should be made a magic word (it currently isn't)

#跳轉 [[Article name]]

Other information (browser name/version, screenshots, etc.):
This seems to be related to a language fallback chain issue (T296188). Instead of localizing the "Redirect" magic word correctly, it implemented a translation somewhere else down the language fallback chain (zh-hk).

Event Timeline

Looks like some individual bot did not update the pywikibot framework and the zh localized redirect magic word was used instead. Please see the link below.

https://zh-yue.wikipedia.org/wiki/Special:Diff/1860279

Not sure the pywikipedia version needs to be updated in order to correct the behavior or not on the bot account.

deryckchan added a subscriber: Stang.

@Stang It is also a Wikimedia-Site-requests - fixing this bug will ideally also include adding the correct localization of the REDIRECT magic word (跳轉). If you want me to open a subtask for it, I can.

JJMC89 subscribed.

VE's behavior is unrelated to pywikibot. If there is also an issue with pywikibot, file a separate task.

Arlolra subscribed.

Parsoid will use the first alias when generating a new redirect,

https://zh-yue.wikipedia.org/w/api.php?action=query&format=json&prop=&meta=siteinfo&siprop=namespaces%7Cnamespacealiases%7Cmagicwords%7Cfunctionhooks%7Cextensiontags%7Cgeneral%7Cinterwikimap%7Clanguages%7Cprotocols%7Cspecialpagealiases

{
    "name": "redirect",
    "aliases": [
        "#REDIRECT"
    ],
    "case-sensitive": false
},

I tried the steps to reproduce here and I got,

#REDIRECT [[Testing Menu]]

Am I doing something wrong?

matmarex subscribed.

I can't reproduce this either. VisualEditor uses #REDIRECT for the redirects created in it. Here's an example page I was able to find on Special:RecentChanges: https://zh-yue.wikipedia.org/w/index.php?title=謝瑞麟集團&action=edit (you can confirm that there's the "Visual edit" / "即見編輯" tag on the edit: https://zh-yue.wikipedia.org/w/index.php?title=謝瑞麟集團&action=history).

If you can reproduce the problem, please share a link to the faulty edits.

@Stang It is also a Wikimedia-Site-requests - fixing this bug will ideally also include adding the correct localization of the REDIRECT magic word (跳轉). If you want me to open a subtask for it, I can.

I guess open another task for that then

Thanks for closing. Seems to be solved by a separate, coincidental change
(the addition of zh redirect magic word 重新導向 was undone altogether),
probably something to do with T296188.