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 [[ https://doc.wikimedia.org/mediawiki-core/master/php/classRequestContext.html#aea752ea8e3670aca0a7e8550551cbf23 | 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 subscribed.

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 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 subscribed.

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

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

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