Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix language loading with WP_LANG_DIR

  • Loading branch information...
commit 6155ded5db141142cd0e9fc49a7158bd54c9feec 1 parent 972b375
@GeertDD GeertDD authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  woocommerce.php
View
2  woocommerce.php
@@ -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');
}
Please sign in to comment.
Something went wrong with that request. Please try again.