Support informal and formal variations of localisations

This commit is contained in:
Mike Jolley 2011-11-09 12:26:22 +00:00
parent 24fc037f86
commit 0b414d72b6
6 changed files with 17 additions and 0 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -161,6 +161,14 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
'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( 'name' => __( 'ShareThis', 'woothemes' ), 'type' => 'title', 'desc' => '', 'id' => 'share_this' ),

View File

@ -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
* External/Affiliate product type
* Added Spanish translation by lluis masachs
* Support for informal/formal localisations
= 1.2 - 03/11/2011 =
* Added quick status change buttons (processing/complete) to orders panel

View File

@ -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/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
**/