WordPress.org

Ready to get started?Download WordPress

Forums

Codestyling Localization
[resolved] Child theme strange problem (and strange solution) (2 posts)

  1. meksone
    Member
    Posted 2 years ago #

    Hi, i use a professional theme from eleganttheme (it's not advertising, it's just for information).
    I've done a partial translation in italian, so i decided to move the .mo and .po files to a child theme for a better handling.
    Now, i've added a simple functions.php, with this code, in the child theme dir:

    <?php
    add_action( 'after_setup_theme', 'child_theme_language' );
    function child_theme_language() {
    	load_child_theme_textdomain("MYTEXTDOMAIN", get_stylesheet_directory() . '/lang');
    ?>

    obviously, MYTEXTDOMAIN is the same of the parent theme.

    So, here comes the strangeness:
    If i reload my site, the translation correctly apply, but if i want to edit in Codestyling Localization plugin, it doesn't show up.

    And now, more strangeness:
    if I create a empty file named A.php (all caps) and i upload in the child theme root folder, VOILA! the child theme shows up in the plugin. If I rename A.php in a.php (lowercase), the child theme vanishes again.
    So, the plugin needs a file whose name start in uppercase character.

    WTH?

    http://wordpress.org/extend/plugins/codestyling-localization/

  2. codestyling
    Member
    Plugin Author

    Posted 1 year ago #

    Will be working again with version 1.99.25, caused by a theme evaluation mistake.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic