• Resolved rasmus851

    (@rasmus851)


    I am using a theme called Pluto which i have made a child theme out of, to be able to modify without worring about changes.

    In the main themes functions.php file is this line :

    load_theme_textdomain('ct_theme', get_template_directory() . '/lang');

    Now, the main themes lang folder only contains one file as it is, if that does anything.

    I wrote this line in my child theme functions.php:

    load_theme_textdomain('LTB_trans', get_template_directory() . '/lang');

    And yet i am getting the CAUTION warning in the xili dashboard.

    Any reason for this?

    https://wordpress.org/plugins/xili-language/

Viewing 1 replies (of 1 total)
  • Plugin Author Michel – xiligroup dev

    (@michelwppi)

    Have you look how a multilingual child theme is built.
    Some examples are available here http://2014.extend.xiligroup.org (Sidebar links or download page with link toward Github)

    Just a note :
    load_theme_textdomain( $theme_domain, get_stylesheet_directory() . '/langs' ); // now use .mo of child in sub-folder langs
    must be targeted to the child theme and in a function called by hook after_theme_setup with priority 11.

    For more accurate diagnosis, don’t hesitate to use support form in 6th tab of xili-language settings.

Viewing 1 replies (of 1 total)

The topic ‘Unable to load load_theme_textdomain()’ is closed to new replies.