You need to use and register a separate textdomain for your child theme. Assuming you’re placing the language files inside a languages
folder inside your child theme, the following code will tell WordPress to load a separate language file for your child theme:
add_action( 'after_setup_theme', 'graphene_child_setup' );
function graphene_child_setup() {
/* Load the child theme's gettext file */
load_child_theme_textdomain( 'textdomain', get_stylesheet_directory() . '/languages' );
}
The code above goes into your child theme’s functions.php
file. Replace textdomain
with the actual textdomain that you use.