• Resolved Uobet

    (@uobet)


    Hi,

    I am using an Artisteer Theme, version 4.2.

    After installing the xili-language plugin, under properties – “current theme infos” the following messages appear:
    Theme domain NOT defined
    and
    CAUTION: no load_theme_textdomain() in functions.php – review the content of file in the current theme or choose another canonical theme. See Wiki for more details

    Artisteer confirms that the themes are translation ready.
    I checked the functions.php of the theme. It contains the following function:

    define(‘THEME_LANGS_FOLDER’, ‘/languages’);
    if (class_exists(‘xili_language’)) {
    define(‘THEME_TEXTDOMAIN’, THEME_NS);
    } else {
    load_theme_textdomain(THEME_NS, TEMPLATEPATH . THEME_LANGS_FOLDER);
    }

    Can somebody help me?

    https://www.ads-software.com/plugins/xili-language/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author don’t update functions.php… and use yet a very old uses : leave only line

    load_theme_textdomain(THEME_NS, TEMPLATEPATH . THEME_LANGS_FOLDER);

    and comment or erase unnecessary lines if then else

    Like below

    //if (class_exists(‘xili_language’)) {
    //define(‘THEME_TEXTDOMAIN’, THEME_NS);
    //} else {
    load_theme_textdomain(THEME_NS, TEMPLATEPATH . THEME_LANGS_FOLDER);
    //}

    Thread Starter Uobet

    (@uobet)

    I tried to comment the unnecessary lines, in fact the Messages in red have disappeared.
    I also forwarded your answer to Artisteer, asking them to update their code in one of the coming Versions.

    Thank you very much for answering so quickly.

    Thread Starter Uobet

    (@uobet)

    Sorry, I forgot to mark the Topic as solved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Xili Language and Artisteer Theme’ is closed to new replies.