• pander

    (@pander)


    I want to explicitaly set hl (language code) per use of each hCaptcha in the form of [cf7sr-hcaptcha hl=nl] or [cf7sr-hcaptcha hl=es] for Dutch and Spanish respectively.

    Or can this be done already?

    See also https://docs.hcaptcha.com/configuration

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pander

    (@pander)

    Looking at the code, the shortcode only supports theme and size currently.

    The question above is important for multilingual sites.

    Plugin Author Costel Tudose

    (@247wd)

    Hi,

    Currently, the language is globally forced using the “Force hCaptcha to render in a specific language” setting.

    In a future update, I will add this feature to the shortcode, enabling it to be used on multilingual sites.

    Thank you for your suggestion!

    Thread Starter pander

    (@pander)

    Thank you very much.

    Meanwhile, I think this is a more complete approach in the settings for hCaptcha (and reCaptcha). Replace the empty choice at the top of the list of languages to select with the choice: page language

    Add some text that explains that this will use the language from HTML page (as found in e.g. <html lang=”en-US”>, <html lang=”en”>, <html lang=”nl-NL”>, <html lang=”nl”>, etc.).

    Implementing this will render the captcha in the correct language on multilingual websites without having to force the captcha to a specific language via the shortcode.

    Overriding this (in all cases) would be adding language as an option in the short code as described above. Implementing this gives the user additional freedom when needed. Most users, including myself, would be already helped with the “page language” above.

    Viewing 3 replies - 1 through 3 (of 3 total)
    • You must be logged in to reply to this topic.