Viewing 8 replies - 1 through 8 (of 8 total)
  • Hii alurna,

    Go to enigma theme directory -> open comments.php file and see line no. 29 and replace it with below code and save the file.

    'comment_field'=> '<div class="enigma_form_group"><label for="message">' __('Message','enigma') ' *</label>

    Thanks.

    Thread Starter alurna

    (@alurna)

    Hi weblizar,

    thanks for your support… I’ve added your code and it seems there is some kind of error as page did not load correctly… I’ve check other code in comments.php and I’ve changed line 29 into:

    'comment_field'=> '<div class="enigma_form_group"><label for="message">' . __('Message','enigma') . ' *</label>

    Addind points before and after __(‘Message’,’enigma’) and now the page loads correctly…

    At any case, message text is still in English… Then I’ve opened to .po file but I do not find “message” for translation, so the text is still in English in my site…

    Now I will have to check how to add message text in .po file for translate into spanish… do you now how to add?

    I’ve gone to https://translate.wordpress.org/projects/wp-themes/enigma/es/default and I can not find “message” text neither

    Thanks in advance.

    Hello,

    Sorry, bymistake we gave wrong code. Now please copy the below code for comments.php file

    'comment_field'=> '<div class="enigma_form_group"><label for="message"> Mensaje *</label>

    and save the changes.

    This will definitely help you.

    Thread Starter alurna

    (@alurna)

    Hi weblizar,

    Thanks for your reply… In this case, I would solve the problem in my site in Spanish… but I still would have the problem in my site in Catalan as text should be “Missatge *”…

    Is there the possibilty to add some code like:

    if lang=es{xxx} 
    elseif lang=ca {yyy}

    This could solve the problem… can you help? Where/How to add this code in comments.php?

    Thanks in advance.

    Best regards.

    Hii alurna,

    Go to enigma theme directory -> open comments.php file and see line no. 29 and replace it with below code and save the file.

    'comment_field'=> '<div class="enigma_form_group"><label for="message">'.__('Message','enigma') .' *</label>

    Thanks.

    Thread Starter alurna

    (@alurna)

    Hi Weblizar,

    It is the same solution that we commented two or three days ago and didn’t work… it shows “Message *” in Ebglish, both in my Spanish site and Catalan site… The text “Message” is not appearing on the -po file so I can not translate into my languages… so it shown in English.

    Thanks.

    Hii alurna,

    Please contact to Weblizar regarding this issue https://weblizar.com/contact/
    We will email you po file.

    Thanks.

    Thread Starter alurna

    (@alurna)

    Hi Weblinzar… i sent mail… thanks for support…

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Text translation for comments section’ is closed to new replies.