• Resolved catyourday

    (@catyourday)


    Dear Support,

    I am using the free version of the TranslatePress. Until now I had only minor issues, which got solved, and the plugin is working fine, except one thing.

    If I change to/use my default language (HU), the textarea gets buggy, it stars to push the first letter in front of the input text and changes the order of characters randomly. The wordpress theme is written in English, but I set as default language the HU.

    After a couple of order of research I found out, that my theme is using a jQuery textarea feature, because in html I get a jqte_editor class instead of textarea class.The textarea is a hidden input in the form:

    <div class="jqte_editor" contenteditable="true"></div>
            <div class="jqte_source jqte_hiddenField">
                <textarea name="cand_cover_letter" rows="6"
                    class="form-control job_textarea"
                    placeholder="Kisér?levél (Kérjük néhány mondatban írja le jelentkezésének motivációját.)"
                    data-no-translation-placeholder="" data-origin="textarea">
                </textarea>
            </div>

    So I tried to use the trp_no_translate_selectors filter defined on your site, excluding anything which is related to any textarea or any jqte html classes:

    add_filter( 'trp_no_translate_selectors', 'trpc_no_stranslate_selectors', 10, 2);
    function trpc_no_stranslate_selectors($selectors_array, $language){
        $selectors_array[] = '.textarea';
        $selectors_array[] = '.jqte_editor';
        $selectors_array[] = '.jqte';
        return $selectors_array;
    }

    It didn’t solve the issue. I am not even sure that is TranslatePress related issue, it might be some weird JS bug. I put a video here, to make it clear what I am talking about.

    The weird thing is that it happens only if I change to the translated (set as default) language: HU. In this case, no translation needed. There will be typed in or pasted in text from the side of the users.

    Could you please help me out identifying the problem?
    Could there be a jQuery conflict with your plugin?

    Thanks,
    Szilard

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Szilard,

    That really is waird. You can try is to go to TranslatePress -> Settings -> Advanced and enable “Disable dynamic translation”. You can follow this link to see exactly where that is: https://translatepress.com/docs/settings/advanced-settings/.

    Also, can you provide the URL to where this is happening? Taking a live look at it will be useful. No need for login data, the page’s URL is enough.

    Best reagards,
    Cristian

    Thread Starter catyourday

    (@catyourday)

    Hi Cristian,

    Disable dynamic translation

    solved the problem. Thank you.
    I was almost sure that it’s a jQuery conflict (I guess the dynamic translation is also based on javascript).

    If I see any other issues after disabling the dynamic translation I’ll be back to you with the link.
    Thanks,
    Szilard

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘textarea not working’ is closed to new replies.