Page MenuHomePhabricator

ReCaptchaNoCaptcha always in English
Closed, ResolvedPublic

Description

ReCaptchaNoCaptcha API provides hl parametre to set user language (see https://developers.google.com/recaptcha/docs/display). Please use it and set to wiki user's language.

The hl attribute should be set in the script load tag of the api.js recaptcha widget code. You can get the language, the page is currently viewed in, using the RequestContext object, which handles all possible ways to change the display language automatically, using getLanguage.

Event Timeline

alex-mashin raised the priority of this task from to Needs Triage.
alex-mashin updated the task description. (Show Details)
alex-mashin added a subscriber: alex-mashin.
Restricted Application added subscribers: StudiesWorld, Florian, Aklapper. · View Herald TranscriptDec 23 2015, 2:53 PM

Wondering how it can gather the wiki user language (API) in case a contributor would like to work on this task.

(Link with general info: https://www.mediawiki.org/wiki/Extension:ConfirmEdit#ReCaptcha )

Florian updated the task description. (Show Details)Dec 23 2015, 8:50 PM
Florian added a project: Google-Code-In-2015.
Florian set Security to None.

Wondering how it can gather the wiki user language (API) in case a contributor would like to work on this task.

If the contributor is anonymous, which is not always the case, obviously, the wiki interface language.

Tacsipacsi added a subscriber: Tacsipacsi.

I'm working on it in Code-in.

Change 261044 had a related patch set uploaded (by Tacsipacsi):
ReCaptchaNoCaptcha: Set captcha language to interface language

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

Florian closed this task as Resolved.Dec 26 2015, 10:14 PM

Change 261044 merged by jenkins-bot:
ReCaptchaNoCaptcha: Set captcha language to interface language

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