Page MenuHomePhabricator

Localized messages are not being loaded
Closed, ResolvedPublic

Description

Example of the bug

Hi!

When we access the page
http://pt.wikipedia.org/w/index.php?title=Wikipedia:Habilite_o_Add_Media_Wizard&withJS=MediaWiki:Gadget-MwEmbed.js
it is shown [mwe-enable-gadget] instead of the text of message (which is already at http://translatewiki.net/wiki/MediaWiki:mwe-enable-gadget/pt).

The English message is displayed correctly if we access the page using "&uselang=en" in the URL.

If some localized message is not available, the English default should be used instead of the current behavior.

The problem also happens with many other messages of the interface when we go to edit mode with the Gadget enabled.

The bug was previously reported at Wikipedia,
http://en.wikipedia.org/wiki/Wikipedia_talk:WikiProject_Lights_Camera_Wiki#Portuguese_localisation
but I thought here would be a better place


Version: unspecified
Severity: major
URL: http://pt.wikipedia.org/w/index.php?title=Wikipedia:Habilite_o_Add_Media_Wizard&withJS=MediaWiki:Gadget-MwEmbed.js

Attached:

Missing_localized_messages_.png (313×664 px, 34 KB)

Details

Reference
bz25516

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:18 PM
bzimport set Reference to bz25516.

Marking as "major" since it makes the feature unusable.

mdale wrote:

Thanks for pointing this out. I have updated all the messages with the latest translatewiki translations and set it it to use the English fallback were it can't find the localized string in r74758 and deployed it.

Also the pt gadget was pointing to an old version of the gadget. I have updated the path on the gadget.

I have also renamed the gadget to match the resource checks and default rewrite rules ie there should be two pages one 'MediaWiki:MwEmbed.js' used for rewrite urls and the gadget 'MediaWiki:Gadget-mwEmbed.js' used for turning on the gadget permanently.

Now links like the following should work and give you a working 'enable this gadget button' in your local language:
http://pt.wikipedia.org/w/index.php?title=Wikipedia:Habilite_o_Add_Media_Wizard&action=edit&withJS=MediaWiki:MwEmbed.js

Thanks for your help!
It seems to be working now.

Questions:

  • When I have the gadget enabled in my preferences and I click in the link

http://en.wikipedia.org/w/index.php?title=Wikipedia:Enable_the_Add_Media_Wizard&withJS=MediaWiki:MwEmbed.js
(which is in that page) the button in the top is not shown. Is this the expected behavior? Shouldn't it display some message like "You already have mwEmbed enabled"?

  • If I click in "edit" and "preview" the edition of that same page, the video in the right side changes to the old interface. Shouldn't it use html5 in preview too?

Should I create new bug reports for some of these things?

mdale wrote:

Yes once you have the gadget enabled it does not give you a link to enable the gadget.

Fixed the preview page rewrite video player display in r74764 and updated prototype