Created
May 30, 2014 10:19
-
-
Save mircobabini/aaaa9c72849153fd0d6b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function textdomain_localization() { | |
$theme_textdomain = 'yit'; | |
load_theme_textdomain($theme_textdomain, get_stylesheet_directory() . '/languages'); | |
load_textdomain('woocommerce', get_stylesheet_directory() . '/woocommerce/i18n/languages'); | |
} | |
add_action('init', 'textdomain_localization'); | |
// useless tests | |
// unload_textdomain('yit'); | |
// load_textdomain('yit', get_stylesheet_directory() . '/languages/it_IT.mo'); | |
// unload_textdomain('woocommerce'); | |
// load_textdomain('woocommerce', get_stylesheet_directory() . '/woocommerce/i18n/languages/it_IT.mo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment