Page MenuHomePhabricator

Localize magic words referenced in WikiEditor toolbar
Closed, ResolvedPublic

Description

Author: danny.leinad

Description:
Vector edit toolbar do not support local magic words.

When user inserting redirect, should insert translation of "#REDIRECT", not English version.

For example in Polish, in Monobook toolbar we have "#PATRZ [[Nazwa artykułu docelowego]]", ugly Vector have "#REDIRECT [[Nazwa strony docelowej]]".


Version: unspecified
Severity: major

Details

Reference
bz24114

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:03 PM
bzimport added a project: WikiEditor.
bzimport set Reference to bz24114.

Rephrasing summary to include other magic words, moved to new WikiEditor component.

A few ideas / possible solutions:

  • If available through a messagekey, the appropiate message keys can be added to the registry of WikiEditor's ResourceLoader module
  • If not available through messagekey we could create a startup-like module in WikiEditor that is created through PHP and populates an object (or an instance of mediaWiki.Map) with the localized versions of the magic words in the *content* language.

see also gerrit change 9053
I added a file dialog to the wikieditor, and for using the localised magic words ("thumb", "right", "left" etc...) I had to expose the magic words to javascript. On the way it also fix this bug