Definition:
function load_child_theme_textdomain( $domain, $path = false ) {}
Loads the child themes translated strings.
If the current locale exists as a .mo file in the child themes root directory, it will be included in the translated strings by the $domain.
Parameters
- string $domain: Unique identifier for retrieving translated strings
- $path
Defined filters
- theme_locale
apply_filters( 'theme_locale', get_locale()
Source code
function load_child_theme_textdomain( $domain, $path = false ) {
$locale = apply_filters( 'theme_locale', get_locale(), $domain );
$path = ( empty( $path ) ) ? get_stylesheet_directory() : $path;
$mofile = "$path/$locale.mo";
return load_textdomain($domain, $mofile);
}
2279

February 12, 2011 


No comments yet... Be the first to leave a reply!