Title: [Plugin: Codestyling Localization] Child theme strange problem (and strange solution)
Last modified: August 20, 2016

---

# [Plugin: Codestyling Localization] Child theme strange problem (and strange solution)

 *  Resolved [meksONE](https://wordpress.org/support/users/meksone/)
 * (@meksone)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-child-theme-strange-problem-and-strange-solution/)
 * 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/](http://wordpress.org/extend/plugins/codestyling-localization/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-child-theme-strange-problem-and-strange-solution/#post-2891205)
 * Will be working again with version 1.99.25, caused by a theme evaluation mistake.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Codestyling Localization] Child theme strange problem (and strange
solution)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/codestyling-localization_e6e1e3.svg)
 * [Codestyling Localization](https://wordpress.org/plugins/codestyling-localization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codestyling-localization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codestyling-localization/)
 * [Active Topics](https://wordpress.org/support/plugin/codestyling-localization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codestyling-localization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codestyling-localization/reviews/)

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)

 * 1 reply
 * 2 participants
 * Last reply from: [codestyling](https://wordpress.org/support/users/codestyling/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-child-theme-strange-problem-and-strange-solution/#post-2891205)
 * Status: resolved