Support informal and formal variations of localisations
This commit is contained in:
parent
24fc037f86
commit
0b414d72b6
|
@ -161,6 +161,14 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
|
||||||
'std' => 'no',
|
'std' => 'no',
|
||||||
),
|
),
|
||||||
|
|
||||||
|
array(
|
||||||
|
'name' => __('Localisation', 'woothemes'),
|
||||||
|
'desc' => __('Use informal localisation file if it exists.', 'woothemes'),
|
||||||
|
'id' => 'woocommerce_informal_localisation_type',
|
||||||
|
'type' => 'checkbox',
|
||||||
|
'std' => 'no',
|
||||||
|
),
|
||||||
|
|
||||||
array( 'type' => 'sectionend', 'id' => 'general_options'),
|
array( 'type' => 'sectionend', 'id' => 'general_options'),
|
||||||
|
|
||||||
array( 'name' => __( 'ShareThis', 'woothemes' ), 'type' => 'title', 'desc' => '', 'id' => 'share_this' ),
|
array( 'name' => __( 'ShareThis', 'woothemes' ), 'type' => 'title', 'desc' => '', 'id' => 'share_this' ),
|
||||||
|
|
|
@ -104,6 +104,7 @@ Yes you can! Join in on our GitHub repository :) https://github.com/woothemes/wo
|
||||||
* Attributes can be added to nav bar via filter
|
* Attributes can be added to nav bar via filter
|
||||||
* External/Affiliate product type
|
* External/Affiliate product type
|
||||||
* Added Spanish translation by lluis masachs
|
* Added Spanish translation by lluis masachs
|
||||||
|
* Support for informal/formal localisations
|
||||||
|
|
||||||
= 1.2 - 03/11/2011 =
|
= 1.2 - 03/11/2011 =
|
||||||
* Added quick status change buttons (processing/complete) to orders panel
|
* Added quick status change buttons (processing/complete) to orders panel
|
||||||
|
|
|
@ -18,6 +18,14 @@ if (!session_id()) session_start();
|
||||||
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages');
|
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages');
|
||||||
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/../../languages/woocommerce');
|
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/../../languages/woocommerce');
|
||||||
|
|
||||||
|
if (get_option('woocommerce_informal_localisation_type')=='yes') :
|
||||||
|
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/informal');
|
||||||
|
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/../../languages/woocommerce/informal');
|
||||||
|
else :
|
||||||
|
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/formal');
|
||||||
|
load_plugin_textdomain('woothemes', false, dirname( plugin_basename( __FILE__ ) ) . '/../../languages/woocommerce/formal');
|
||||||
|
endif;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constants
|
* Constants
|
||||||
**/
|
**/
|
||||||
|
|
Loading…
Reference in New Issue