recaptcha language settings How ?

35 views
Skip to first unread message

icodk

unread,
Jun 9, 2019, 6:05:16 PM6/9/19
to web2py-users
How to set  reCaptcha2 language ?
I tried with the options parameter but got an error that the nl parameter is not recognized
form.element('table').insert(-1, TR('' ,Recaptcha2(request, 'PUBLIC_KEY', 'PRIVATE_KEY',options={nl:'da'})))

Looking into the reCaptcha2 class definition  I can see referance to nl but can't figure out how to implement it so it works

google reference :
Thanks

Nico de Groot

unread,
Jul 11, 2019, 3:37:49 AM7/11/19
to web2py-users
Looks like the parameter is ‘hl’ not ‘nl’. I think hl: ‘da’ might work.

icodk

unread,
Jul 11, 2019, 4:19:11 AM7/11/19
to web2py-users
Thanks it works
Here is what works:
form.element('table').insert(-1, TR('' ,Recaptcha2(request, 'PUBLIC_KEY', 'PRIVATE_KEY',options={'hl':'da'}), ''))
Reply all
Reply to author
Forward
0 new messages