WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: Chunk] Translation problem (2 posts)

  1. steinerized
    Member
    Posted 1 year ago #

    Hi,
    just downloaded the Chunk Theme and trying to get my translation working.
    I used the included chunk.pot as the basis for my own translation with poedit, compiled the file and saved the appropriate files as it_IT.po and it_IT.mo both in the theme root folder and in the languages folder.

    However nothing changes and everything still shows up in English. WP_LANG is defined as 'it_IT' in wp-options.php.

    Translations should get loaded from /languages/ as per functions.php:

    /**
     * Make theme available for translation
     * Translations can be filed in the /languages/ directory
     */
    load_theme_textdomain( 'chunk', get_template_directory_uri() . '/languages' );

    So where to go from here? Theme is said to be translation ready and the code looks like it, but apparently my translation files don't get loaded...

    Some pointers to the next step would be much appreciated.

    Cheers.

  2. faktanett
    Member
    Posted 1 year ago #

    There is an error in the functions.php file.

    Change
    load_theme_textdomain( 'chunk', get_template_directory_uri() . '/languages' );

    to

    load_theme_textdomain( 'chunk', get_template_directory() . '/languages' );

Topic Closed

This topic has been closed to new replies.

About this Topic