• Resolved Luisfmarkes

    (@luisfmarkes)


    Hi,

    I’m having some trouble with the translation.

    I’ve tried a few things and none is working for me, the theme just dont change language :\

    well what have i done:

    I’m using child theme
    – created directory /languages inside child theme folder
    – put there the po and mo files for my language
    – edited functions.php to add load_theme_textdomain( 'hueman-child-master', get_template_directory(). '/languages' );

    Tryed without the child theme to and got no better results.

    My wordpress installation is in PT so my config.php allready has the define(‘WPLANG’, ‘pt_PT’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Luisfmarkes

    (@luisfmarkes)

    Well i’ve solved it 🙂

    here are the files pt_PT for the child theme

    click to download

    Installation Guide:
    – Go to child theme folder and create a new folder. name it languages.
    – Copy the files you’ve downloaded to languages folder into the childtheme
    – Go to functions.php (in the child folder) and add this line:
    load_child_theme_textdomain(‘hueman’, get_stylesheet_directory().’/languages’);

    don’t forget to go to wordpress root folder find the file wp-config.php and change the following line define(‘WPLANG’, ‘xx_XX’); to

    define(‘WPLANG’, ‘pt_PT’);

    Thanks for the update with the explanation for others! Glad it works.

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

The topic ‘Trouble With Language Pack’ is closed to new replies.