Fix language loading with WP_LANG_DIR

This commit is contained in:
Geert De Deckere 2012-03-06 11:32:07 +01:00
parent 972b375c09
commit 6155ded5db
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ class Woocommerce {
function load_plugin_textdomain() {
// Note: the first-loaded translation file overrides any following ones if the same translation is present
$variable_lang = ( get_option( 'woocommerce_informal_localisation_type' ) == 'yes' ) ? 'informal' : 'formal';
load_plugin_textdomain( 'woocommerce', false, WP_LANG_DIR.'/woocommerce');
load_textdomain( 'woocommerce', WP_LANG_DIR.'/woocommerce/woocommerce-'.get_locale().'.mo' );
load_plugin_textdomain( 'woocommerce', false, dirname( plugin_basename( __FILE__ ) ).'/languages/'.$variable_lang );
load_plugin_textdomain( 'woocommerce', false, dirname( plugin_basename( __FILE__ ) ).'/languages');
}