ISO codes doesn't work for qtranslator plugin

Discussion in 'ButterBelly WordPress Theme' started by nannipung, Jul 29, 2014.

  1. nannipung

    nannipung New Member

    Joined:
    Jul 20, 2014
    Messages:
    10
    Likes Received:
    0

    Attached Files:

    • 1.png
      1.png
      File size:
      27 KB
      Views:
      5
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    Hello,

    Use format given below.

    Code:
    <!--:en-->Your text in English.<!--:-->
    <!--:de-->Your text in Deutsch<!--:-->
    <!--:it-->Your text in Italiano<!--:-->
    <!--:fr-->Your text in Français<!--:-->
    It will work.

    Thanks & Regards
    Nitesh Raghuwanshi
     
  3. nannipung

    nannipung New Member

    Joined:
    Jul 20, 2014
    Messages:
    10
    Likes Received:
    0
    Thanks, it helped!

    Now I am trying translate comment.php file, what am I doing wrong?
    <h2 class="leave_reply"><?php _e(“<!--:en-->Leave a Comment<!--:--><!--:et-->Kommenteeri<!--:-->”); ?></h2>

    Secondly, how can I translate text between value = " " ?
    Example in searchform.php line:
    <input type="text" onfocus="if (this.value == 'Search here') {this.value = 'Search here';}" onblur="if (this.value == '') {this.value = 'Search here';}" value="Search here" name="s" id="s" />
     
  4. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello,

    Replace your code in comment.php file with:

    <h2 class="leave_reply">
    <!--:en-->Your text in English.<!--:-->
    <!--:de-->Your text in Deutsch<!--:-->
    <!--:it-->Your text in Italiano<!--:-->
    <!--:fr-->Your text in Français<!--:-->
    </h2>


    And replace your code in searchform.php file with:

    <input type="text" value="" placeholder="<?php _e('<!--:en-->Your text in English.<!--:-->
    <!--:de-->Search here in Deutsch<!--:-->
    <!--:it-->Search here in Italiano<!--:-->
    <!--:fr-->Search here in Français<!--:-->'); ?>" name="s" id="s" />


    Thanks & Regards
    Pramod Patel
     

Share This Page