Permalink
Browse files

Fix language loading with WP_LANG_DIR

  • Loading branch information...
1 parent 972b375 commit 6155ded5db141142cd0e9fc49a7158bd54c9feec @GeertDD GeertDD committed Mar 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 woocommerce.php
View
@@ -307,7 +307,7 @@ function api_requests() {
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');
}

0 comments on commit 6155ded

Please sign in to comment.