Fix language loading with WP_LANG_DIR
This commit is contained in:
parent
972b375c09
commit
6155ded5db
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue