daniel created this task.
daniel added projects: Wikidata, I18n.
Herald added a subscriber: Aklapper.

TASK DESCRIPTION

DiffView and BasicEntityDiffVisualizer rely on IContextSource for fetching system messages. IContextSource is a terrible kitchen sink, it drag in a whole bunch of dependencies that we don't need. Also, a IContextSource is hard to come by in some contexts.

I propose to introduce a MessageLocalizer interface (along with a MediaWikiMessageLocalizer implementation) that exposes a msg() method, just like the one exposed by IContextSource. Or we define getWikitext and getHtml methods that return strings. That would be a bit nicer (no Message object mess), but a bit more work, and we'll need to think about the semantics of parameter escaping. Also, an interface exposing a msg() method just like IContextSource could be moved to MW core, to replace usages of IContextSource there.

WikibaseRepo (and perhaps WikibaseClient) would supply two instances, one for the user language, and one for the content language. DiffView and friends would use the user language.


TASK DETAIL
https://phabricator.wikimedia.org/T162594

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Ladsgroup, Aklapper, daniel, QZanden, Salgo60, MuhammadShuaib, Izno, Psychoslave, Wikidata-bugs, aude, Gryllida, Shizhao, Arrbee, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to