• Resolved vivalis

    (@vivalis)


    I have a website with Google Language Translator and a Forminator form. In ‘Additional CSS classes’ of the select field’s settings, I could add the ‘notranslate’ class which is then output in the classes of the container of the select field:

    <div id=”select-7″ class=”forminator-col forminator-col-12 notranslate”>
    <div class=”forminator-field”>
    <label for=”forminator-form-938__field–select-7_635c0c96e8626-label” class=”forminator-label”>Data usage <span class=”forminator-required”>*</span>
    </label><select id=”forminator-form-938__field–select-7_635c0c96e8626″ class=”forminator-select–field forminator-select2″ data-required=”1″ name=”select-7″ data-default-value=”” data-placeholder=”Please choose an option” data-search=”false”>
    <option value=””>Please choose an option</option>
    <option value=”All” data-calculation=”0″>All</option>
    <option value=”Selected” data-calculation=”0″>Only selected manufacturers</option>
    <option value=”None” data-calculation=”0″>None</option>
    </select>
    </div>
    </div>`

    When clicking on the dropdown/select field, the options still get translated on the fly, but I do not want them to be translated. Any idea how I could stop GLT from translating the options of this field?

    P.S. AFAIK, the select fields in Forminator are based on Select2.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    Please post your website address, so I can check.

    Thanks! ??

    Thread Starter vivalis

    (@vivalis)

    Hi,
    Thanks for looking into this matter. The website is not launched yet, so I’m sending you the bypass link:
    https://www.eautotest.ch/testdrive/booking/?cmp_bypass=ldifisd7898034jalfvasefua09845j345fjsdf

    There’s a Forminator form that gets translated despite the notranslate class. I thought it might just be an issue with Select2 (Forminator uses Select2 for the select fields), but Forminator support told me that they tried the notranslate class for the entire form, and it still gets translated.

    Hope you can find a solution. Thanks!

    Kind regards,
    Roger

    Plugin Author edo888

    (@edo888)

    Hi,

    The link says coming soon.

    If the wrapper element of a text or any parent has notranslate class it will not be translated. You can use the browser inspect tool to check if it has notranslate or not.

    Please feel free to reopen this topic when you go online, so I can check it for you.

    Thanks! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Select2 field in Forminator form still gets translated’ is closed to new replies.