Google Language Translator translates despite ‘notranslate’ class
-
I have a website with Google Language Translator (on the fly translation) and a Forminator form. By adding ‘notranslate’ as a class to a field or div of a website, you can prevent GLT from translating that particular part. I added ‘notranslate’ in ‘Additional CSS classes’ of the Forminator settings of a select field. The class gets 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>`However, 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?
I know this question rather belongs into the GLT forum, but I thought the cause of this issue might be in Select2 which is used by Forminator for select fields.
- The topic ‘Google Language Translator translates despite ‘notranslate’ class’ is closed to new replies.