• Hi,
    I am using polylang on a site to have multilanguage options.
    I wanted to edit the captcha_label for the english version and the spanish version, but, since the functionality is now in the settings page, whatever new label text I use in there becomes static in a single language 🙁
    I was wondering if you could revert to having the shortcode attribute available for the label on the captcha field, so I can insert the appropriate translations via the shortcode on each language-version of my contact pages?
    I have made the mod myself, but, of course, it will be lost when/if the plugin changes or updates.
    Thank you in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi,

    And what about the other labels? How do you translate them? I don’t understand why the shortcode attribute was helpful for you while making your form multilingual. Or do you have multiple contact forms; one for each language?

    Guido

    Thread Starter DanielJ7

    (@danielj7)

    Hi Guido,
    Thank you for your reply.
    If I leave the labels, in settings page, blank (with your greyed out default text), they automatically translate when your contact form shows up.
    However, if I want to change a label from its default values (and the ONLY one I need to change is the captcha label, since people find the default version confusing), and I type in the new label in the settings page, then that does NOT translate 🙁
    This is why I would want to be able to set the captcha label via shortcode attributes, as opposed to via the settings page.

    Plugin Author Guido

    (@guido07111975)

    Hi,

    The auto translation only works when it is translated into that language already. So only when plugin translation is available on this page, am I right?

    Guido

    Thread Starter DanielJ7

    (@danielj7)

    Yes, that is correct. Auto-translation happens IF the area on the Settings page is left blank (with your default text) AND the translation is available in the po-mo files.
    Once a user inserts their own customized text in the settings area, then the auto-translation does not happen for that field.
    I have changed the po-mo ES files to include the translation for the Privacy checkbox text, since this had not already been included, and that text did not autotranslate. However, I had no requirement to use custom text there.
    I imagine I could have done the same with the Cpatcha label text (just changed the strings in the GB and ES files), but I preferred to use the shortcode attribute for that, so the website owner could change that text to their liking (in both languages).
    Thank you for your replies!

    • This reply was modified 5 years, 11 months ago by DanielJ7.
    Plugin Author Guido

    (@guido07111975)

    Hi,

    When I get back from my trip I will add the shortcode attribute for the captcha again, no problem.

    Meanwhile, are you willing to complete the Spanisch translation? And are you willing to become a translation editor for my plugin, so you can approve Spanish translation?

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi again,

    Thought about it some more..
    The problem with the shortcode attribute is, you cannot add an attribute for each language. So if you have a multi-language site, you must use a different form for each language, when using this atribute.

    Guido

    Plugin Author Guido

    (@guido07111975)

    Hi @danielj7

    I’m thinking about a plugin update which includes all label (shortcode) attributes, so you will be able to change labels via attributes again, instead of the settingspage.

    Guido

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Captcha Label Shortcode’ is closed to new replies.