Page MenuHomePhabricator

ProveIt becomes unusable in Chinese Wikipedia
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
TimWu007
Sep 4 2025, 4:16 PM
Referenced Files
F65986475: IMG_6150.jpeg
Sep 8 2025, 3:12 PM
F65966558: image.png
Sep 5 2025, 3:22 PM
F65966547: image.png
Sep 5 2025, 3:22 PM
F65964530: 螢幕截圖 2025-09-05 21.07.28.png
Sep 5 2025, 1:17 PM
F65964481: 螢幕截圖 2025-09-05 20.58.04.png
Sep 5 2025, 1:17 PM
F65964444: 螢幕截圖 2025-09-05 20.57.51.png
Sep 5 2025, 1:17 PM
F65964102: IMG_6135.jpeg
Sep 5 2025, 12:22 PM
F65964062: image.png
Sep 5 2025, 12:07 PM

Description

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

  • Edit pages in Chinese Wikipedia
  • Open ProveIt gadget

What happens?:

It appears that the localization file is not loading properly. While some buttons are displayed in English, the other field names remain blank.

Logs in Chrome console indicates that https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/gadgets/ProveIt/+/master/i18n/zh-cn.json?format=text is 404 not found.

What should have happened instead?:

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

My display language and content language variant are both zh-Hans-CN. Using Timeless skin.

螢幕截圖 2025-09-04 23.54.38.png (964×2 px, 321 KB)

螢幕截圖 2025-09-04 23.55.00.png (964×2 px, 347 KB)

Event Timeline

I’ve tried zh-hans, but field names are still empty. :-(

IMG_6126.jpeg (1×1 px, 171 KB)

IMG_6125.jpeg (1×1 px, 269 KB)

This comment was removed by Sophivorus.

(removed for better reading order)

The issue with the labels not showing should be fixed now.

As to the fallback logic of the user interface, Proveit currently checks for messages in the preferred user language variant, and if that fails, it fallbacks to English. Can this be improved? Should Proveit fallback to 'zh' if 'zh-cn' is not available? Or to 'zh-hans'? Or to the main content language of the wiki? Or is English ok? And how to know that programmatically? I looked into the data available at mw.config but I don't see an obvious way.

As to the fallback logic of the user interface, Proveit currently checks for messages in the preferred user language variant, and if that fails, it fallbacks to English. Can this be improved? Should Proveit fallback to 'zh' if 'zh-cn' is not available? Or to 'zh-hans'? Or to the main content language of the wiki? Or is English ok?

It should follow the language fallback chain defined in MessagesFoo_bar.php.

And how to know that programmatically? I looked into the data available at mw.config but I don't see an obvious way.

For JavaScript, the current available solution would be https://github.com/wikimedia/jquery.i18n/blob/f6a8fe7/src/jquery.i18n.fallbacks.js , which is included in the UniversalLanguageSelector extension. However, the array wouldn't load until either the language selector or the interlanguage link menu being clicked.

image.png (1×1 px, 452 KB)

IMG_6135.jpeg (1×1 px, 249 KB)

It appears that the labels are not displaying correctly.

That was an intermediate "fix" where I screwed up. The good fix is already deployed, but the old one must still be in your cache. Please hard-refresh or wait a few minutes to confirm it's fixed now. Cheers!

Hi, I've found the labels are showing up :-D. But there are still some issues that make the new version less user-friendly compared to the old one:

  1. There are spaces between ref lists and left border (under Timeless skin);
    螢幕截圖 2025-09-05 20.57.51.png (796×1 px, 204 KB)
  1. Large fonts and wide spaces make the window appear to contain less content;
    螢幕截圖 2025-09-05 20.58.04.png (796×1 px, 115 KB)
  1. Deprecated parameters were not marked with strikethrough;
  1. Dates generated by the "Today" button were not in yyyy-mm-dd format.
    螢幕截圖 2025-09-05 21.07.28.png (796×1 px, 117 KB)

Should I create a new ticket to report them?

Issue 4 should be fixed now (diff). I'll look into the rest tomorrow.

Should I create a new ticket to report them?

No need for now, thanks!

Issue 4 should be fixed now (diff).

image.png (796×1 px, 78 KB)

Unfortunately, it still isn’t in the yyyy-mm-dd format. I also encountered the same issue on English Wikipedia. It appears that this should be fixed in ProveIt, not local wikis?

image.png (796×1 px, 77 KB)

All reported issues should be fixed now. Let me know otherwise!

Awesome, thanks for fixing it!

There is a small bug: After quitting 2017 Wikitext editor, the ProveIt window remain opened.

IMG_6150.jpeg (1×1 px, 289 KB)