Page MenuHomePhabricator

Preserve user language when calling API
Closed, ResolvedPublic

Description

The API accepts a uselang parameter (https://www.mediawiki.org/wiki/API:Parse#Parameters_2), but we are not passing it.

This would allow using template-based i18n, until on-wiki i18n is fully supported (e.g. with Gadgets 2.0). This is particularly important for wiki multi-language wikis such as Commons, which have existing i18n platforms such as https://commons.wikimedia.org/wiki/Template:LangSwitch (among others). See Rillke's comments at https://www.mediawiki.org/wiki/Thread:Extension_talk:GuidedTour/Navigate_to_the_next_step_using_a_custom_function_and_i18n


Version: master
Severity: normal

Details

Reference
bz55664

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:30 AM
bzimport set Reference to bz55664.

Change 89499 had a related patch set uploaded by Rillke:
Parse pages and text in context of user language

https://gerrit.wikimedia.org/r/89499

Feel free to abandon this change if you have other plans :) Saw this too late.

Change 89499 merged by jenkins-bot:
Parse pages and text in context of user language

https://gerrit.wikimedia.org/r/89499