WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven
how to add a language file for a child theme with Twenty Eleven? (2 posts)

  1. Laurent J.V. Dubois
    Member
    Posted 2 years ago #

    I need a dedicated .mo translation file for the child theme.

    I've take a look to the code,
    load_theme_textdomain is called by twentyeleven_setup() in the functions file.

    get_template_directory() is a common issue with child theme, I've tested the with get_stylesheet_directory()
    without success ...

    if someone have an ideas ...

    http://wordpress.org/extend/themes/twentyeleven/

  2. Laurent J.V. Dubois
    Member
    Posted 2 years ago #

    How stupid is my wordpress blog, It don't check if I use a child theme so ...

    In your Child theme, you have to remplace load_theme_textdomain by
    load_child_theme_textdomain just because the common function load_theme_textdomain don't do it, and you have to take care about get_template_directory() and get_stylesheet_directory() too ...

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic