Theme translation in Dutch

Home Forums Massage Center (Spa) Forum Theme translation in Dutch

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #65831
    CarlaCarla
    Participant
    • Topics: 11
    • Replies: 27
    • Total: 38
    Member since: January 16, 2017

    I am working on a clients website with Wellness/Spa Pro theme. A few things I can translate through the theme options but not all of them. I have installed the plugin loco translate but it says that the template is missing and that this bundle doesn’t define a translations template file. What do I do to translate in Dutch? Can you please help?

    #65845
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi Carla,

    Can you tell us which text do you want to translate? Which is not in the theme options so that we can assist you further.

    Regards,
    Dave

    #65846
    CarlaCarla
    Participant
    • Topics: 11
    • Replies: 27
    • Total: 38
    Member since: January 16, 2017

    Yes I can. On the homepage in the Populair procedure box I can’t translate the text on the read more buttons. In the topbar I can’t find how to translate Folow us.
    I managed to get a translation template in loco translate but in there I see mainly back end translations and not the front end translation options.
    Also I can’t find in loco translate an option to translate search in de searchform. I know I can translate it by copying the searchform file to my childtheme and change it there so that is an option but I expected it also to be possible through loco translate.
    And also I can’t find how to translate “Phone” in the footer contact section.
    I hope you can help me with this issues.

    #65848
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi Carla,

    For the topbar Foloow us text kindly go to header.php and change the text from there.

    Watch this video on how to translate text within sections:

    https://www.youtube.com/watch?v=vRrVr8waiH4

    Regards,
    Dave

    #65850
    CarlaCarla
    Participant
    • Topics: 11
    • Replies: 27
    • Total: 38
    Member since: January 16, 2017

    Thank you for your reply. Follow us I have translated through the header.php and Search through the searchform.php but Read more on the Populair section button I still could not translate.
    The Youtube film you posted is about translating the whole website through qtranslate but that is not what I want. The website is in Dutch only and therefor I have to translate the buttons. All the other buttons I could translate except for the button in the Populair procedure box. Is there a php.file I can use for that? Or is there another option in the Theme options box settings?
    Thank you.

    #65851
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Hi Carla,

    Kindly go to functions.php on line number 617. Change the text from there.

    Regards,
    Dave

    #65852
    CarlaCarla
    Participant
    • Topics: 11
    • Replies: 27
    • Total: 38
    Member since: January 16, 2017

    Thank you. I work with a child theme. It would be very helpfull if you could provide me with the exact code to put in my child theme functions.php. I hope that is possible. Thanks in advance.

    #65856
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Here is the code:

    // add shortcode for popular procedures
    function skt_spa_popular($skt_var, $content = null){
        extract( shortcode_atts(array(
          'title' => 'title',
          'icon'  => get_template_directory_uri().'/images/icon-customizable.png',
          'link'  => '#',
        ), $skt_var));
        
        return '<div id="popular-box">
            <img src="'.$icon.'" />
            <h2>'.$title.'</h2>
            <p>'.$content.'</p>
            <a class="read-more" href="'.$link.'">Read More</a>
            </div>';
    }
    add_shortcode('popular','skt_spa_popular');

    Regards,
    Dave

    #65863
    CarlaCarla
    Participant
    • Topics: 11
    • Replies: 27
    • Total: 38
    Member since: January 16, 2017

    I tried adding this code to my child theme functions.php and I got an error and was locked out of my dashboard. So I deleted the code through ftp and now I am back in but this isn’t the resolution I’m afraid. Isn’t there another option other than change this through the functions.php? I hope there is.

    All the other read more buttons I could change through the theme options only this one I can’t. Perhaps in an upgraded version you can make this possible? I think you will make a lot of people happy.

    #65867
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    Obviously it will throw an error. You need to remove that code from your main site’s function.php and then add the code in your child theme.

    2 shortcode function didn’t work on the same theme.

    Regards,
    Dave

    #65871
    CarlaCarla
    Participant
    • Topics: 11
    • Replies: 27
    • Total: 38
    Member since: January 16, 2017

    Yesss! It worked. I didn’t know that I had to remove it first. I thought it would overwrite it. But it worked now. Thank you very much for your help.

    #65873
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31029
    • Total: 31029
    Member since: August 16, 2013

    🙂

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Theme translation in Dutch’ is closed to new replies.