Changeset 503832
- Timestamp:
- 02/12/2012 05:55:35 AM (14 years ago)
- Location:
- e-commerce-multi-currency-support
- Files:
-
- 8 added
- 2 deleted
- 3 edited
- 9 copied
-
tags/0.4.2 (copied) (copied from e-commerce-multi-currency-support/trunk)
-
tags/0.4.2/js-css (copied) (copied from e-commerce-multi-currency-support/trunk/js-css)
-
tags/0.4.2/js-css/currency.js (copied) (copied from e-commerce-multi-currency-support/trunk/js-css/currency.js)
-
tags/0.4.2/license.txt (copied) (copied from e-commerce-multi-currency-support/trunk/license.txt)
-
tags/0.4.2/localization (copied) (copied from e-commerce-multi-currency-support/trunk/localization)
-
tags/0.4.2/localization/currency-changer-ru_RU.po (added)
-
tags/0.4.2/localization/currency-changer-xx_XX.pot (added)
-
tags/0.4.2/localization/wpsc-ru_RU.mo (deleted)
-
tags/0.4.2/localization/wpscmcs-ru_RU.mo (added)
-
tags/0.4.2/localization/wpscmcs-ru_RU.po (added)
-
tags/0.4.2/readme.txt (copied) (copied from e-commerce-multi-currency-support/trunk/readme.txt) (2 diffs)
-
tags/0.4.2/widgets (copied) (copied from e-commerce-multi-currency-support/trunk/widgets)
-
tags/0.4.2/widgets/currency_chooser_widget.php (copied) (copied from e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php) (4 diffs)
-
tags/0.4.2/wpsc-currency-changer.php (copied) (copied from e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php) (3 diffs)
-
trunk/localization/currency-changer-ru_RU.po (added)
-
trunk/localization/currency-changer-xx_XX.pot (added)
-
trunk/localization/wpsc-ru_RU.mo (deleted)
-
trunk/localization/wpscmcs-ru_RU.mo (added)
-
trunk/localization/wpscmcs-ru_RU.po (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widgets/currency_chooser_widget.php (modified) (4 diffs)
-
trunk/wpsc-currency-changer.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
e-commerce-multi-currency-support/tags/0.4.2/readme.txt
r502180 r503832 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.1 6 Stable tag: 0.4. 16 Stable tag: 0.4.2 7 7 8 8 … … 17 17 18 18 == Changelog == 19 = 0.4.2 = 20 - improved localization 21 - small fix with selector of current currency 19 22 = 0.4 = 20 23 - added multilanguage support -
e-commerce-multi-currency-support/tags/0.4.2/widgets/currency_chooser_widget.php
r498347 r503832 9 9 function WPSC_Widget_Currency_Converter() { 10 10 11 $widget_ops = array('classname' => 'widget_wpsc_currency_chooser', 'description' => __('Product Currency Chooser Widget', 'wpsc '));12 $this->WP_Widget('wpsc_currency', __('Currency Chooser','wpsc '), $widget_ops);11 $widget_ops = array('classname' => 'widget_wpsc_currency_chooser', 'description' => __('Product Currency Chooser Widget', 'wpscmcs')); 12 $this->WP_Widget('wpsc_currency', __('Currency Chooser','wpscmcs'), $widget_ops); 13 13 } 14 14 … … 34 34 $local_currency_code=$_SESSION['wpsc_base_currency_code']; 35 35 } 36 foreach($countries as $country){36 foreach($countries as $country){ 37 37 $country_code = ''; 38 38 if ($instance['show_code'] == 1) $country_code =" (".$country['code'].")"; … … 40 40 if($_SESSION['wpsc_currency_code'] == $country['id']){ 41 41 $selected_code = "selected='selected'"; 42 42 43 }else { 43 if ( $local_currency_code == $country['code'])44 if ( !isset($_SESSION['wpsc_currency_code']) && $local_currency_code == $country['code']) 44 45 $selected_code = "selected='selected'"; 45 46 } … … 51 52 52 53 if($instance['show_reset'] == 1){ 53 $output .='<input type="submit" value="'.__('Reset Price to ','wpsc ').$_SESSION['wpsc_base_currency_code'].'" name="reset" />';54 $output .='<input type="submit" value="'.__('Reset Price to ','wpscmcs').$_SESSION['wpsc_base_currency_code'].'" name="reset" />'; 54 55 } 55 56 if($instance['show_submit'] == 1){ 56 $output .='<input type="submit" value="'.__('Convert','wpsc ').'" class="button-primary" name="submit" />';57 $output .='<input type="submit" value="'.__('Convert','wpscmcs').'" class="button-primary" name="submit" />'; 57 58 } 58 59 $output .='</form>'; 59 60 if($instance['show_conversion'] == 1){ 60 61 if($wpsc_cart->currency_conversion != 0 && $wpsc_cart->use_currency_converter){ 61 $output .='<p><strong> Base Currency:</strong> '.$_SESSION['wpsc_base_currency_code'].'</p>';62 $output .='<p><strong>'.__("Base Currency",'wpscmcs').':</strong> '.$_SESSION['wpsc_base_currency_code'].'</p>'; 62 63 if($wpsc_cart->selected_currency_code != ''){ 63 $output .='<p><strong> Current Currency:</strong> '.$wpsc_cart->selected_currency_code.'</p>';64 $output .='<p><strong>'.__("Current Currency",'wpscmcs').':</strong> '.$wpsc_cart->selected_currency_code.'</p>'; 64 65 } 65 66 $output .='<p>1 '.$_SESSION['wpsc_base_currency_code'].' = '.$wpsc_cart->currency_conversion.' '.$wpsc_cart->selected_currency_code.'</p><br />'; -
e-commerce-multi-currency-support/tags/0.4.2/wpsc-currency-changer.php
r502180 r503832 4 4 Plugin URI: http://misha.beshkin.lv 5 5 Description: A plugin that provides a currency converter tool integrated into the WordPress Shopping Cart. This is trunk from wp-e-commerce-multi-currency-magic plugin. 6 Version: 0.4. 16 Version: 0.4.2 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv … … 178 178 if($wpsc_cart->selected_currency_code != $_SESSION['wpsc_base_currency_code']){ 179 179 $output .="<div id='wpsc_currency_notification'>"; 180 $output .= "<p>".__('By clicking Make Purchase you will be redirected to the gateway, and the cart prices will be converted to the shops local currency','wpsc ')." ".$_SESSION['wpsc_base_currency_code'].'</p>';180 $output .= "<p>".__('By clicking Make Purchase you will be redirected to the gateway, and the cart prices will be converted to the shops local currency','wpscmcs')." ".$_SESSION['wpsc_base_currency_code'].'</p>'; 181 181 $output .="</div>"; 182 182 echo $output; … … 186 186 wp_enqueue_script('wpsc-multi-currency-support-js',WPSC_CURRENCY_URL.'/js-css/currency.js', array('jquery'), 'Wp-Currency-Support'); 187 187 wp_enqueue_style( 'wpsc-multi-currency-support-css', WPSC_CURRENCY_URL.'/js-css/currency.css', false, '0.0', 'all'); 188 load_plugin_textdomain( ' currency-changer', false, dirname( plugin_basename( __FILE__ ) ) . '/localization/' );188 load_plugin_textdomain( 'wpscmcs', false, dirname( plugin_basename( __FILE__ ) ) . '/localization/' ); 189 189 } 190 190 add_action('init','wpsc_add_currency_js_css', 11); -
e-commerce-multi-currency-support/trunk/readme.txt
r502180 r503832 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.1 6 Stable tag: 0.4. 16 Stable tag: 0.4.2 7 7 8 8 … … 17 17 18 18 == Changelog == 19 = 0.4.2 = 20 - improved localization 21 - small fix with selector of current currency 19 22 = 0.4 = 20 23 - added multilanguage support -
e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php
r498347 r503832 9 9 function WPSC_Widget_Currency_Converter() { 10 10 11 $widget_ops = array('classname' => 'widget_wpsc_currency_chooser', 'description' => __('Product Currency Chooser Widget', 'wpsc '));12 $this->WP_Widget('wpsc_currency', __('Currency Chooser','wpsc '), $widget_ops);11 $widget_ops = array('classname' => 'widget_wpsc_currency_chooser', 'description' => __('Product Currency Chooser Widget', 'wpscmcs')); 12 $this->WP_Widget('wpsc_currency', __('Currency Chooser','wpscmcs'), $widget_ops); 13 13 } 14 14 … … 34 34 $local_currency_code=$_SESSION['wpsc_base_currency_code']; 35 35 } 36 foreach($countries as $country){36 foreach($countries as $country){ 37 37 $country_code = ''; 38 38 if ($instance['show_code'] == 1) $country_code =" (".$country['code'].")"; … … 40 40 if($_SESSION['wpsc_currency_code'] == $country['id']){ 41 41 $selected_code = "selected='selected'"; 42 42 43 }else { 43 if ( $local_currency_code == $country['code'])44 if ( !isset($_SESSION['wpsc_currency_code']) && $local_currency_code == $country['code']) 44 45 $selected_code = "selected='selected'"; 45 46 } … … 51 52 52 53 if($instance['show_reset'] == 1){ 53 $output .='<input type="submit" value="'.__('Reset Price to ','wpsc ').$_SESSION['wpsc_base_currency_code'].'" name="reset" />';54 $output .='<input type="submit" value="'.__('Reset Price to ','wpscmcs').$_SESSION['wpsc_base_currency_code'].'" name="reset" />'; 54 55 } 55 56 if($instance['show_submit'] == 1){ 56 $output .='<input type="submit" value="'.__('Convert','wpsc ').'" class="button-primary" name="submit" />';57 $output .='<input type="submit" value="'.__('Convert','wpscmcs').'" class="button-primary" name="submit" />'; 57 58 } 58 59 $output .='</form>'; 59 60 if($instance['show_conversion'] == 1){ 60 61 if($wpsc_cart->currency_conversion != 0 && $wpsc_cart->use_currency_converter){ 61 $output .='<p><strong> Base Currency:</strong> '.$_SESSION['wpsc_base_currency_code'].'</p>';62 $output .='<p><strong>'.__("Base Currency",'wpscmcs').':</strong> '.$_SESSION['wpsc_base_currency_code'].'</p>'; 62 63 if($wpsc_cart->selected_currency_code != ''){ 63 $output .='<p><strong> Current Currency:</strong> '.$wpsc_cart->selected_currency_code.'</p>';64 $output .='<p><strong>'.__("Current Currency",'wpscmcs').':</strong> '.$wpsc_cart->selected_currency_code.'</p>'; 64 65 } 65 66 $output .='<p>1 '.$_SESSION['wpsc_base_currency_code'].' = '.$wpsc_cart->currency_conversion.' '.$wpsc_cart->selected_currency_code.'</p><br />'; -
e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php
r502180 r503832 4 4 Plugin URI: http://misha.beshkin.lv 5 5 Description: A plugin that provides a currency converter tool integrated into the WordPress Shopping Cart. This is trunk from wp-e-commerce-multi-currency-magic plugin. 6 Version: 0.4. 16 Version: 0.4.2 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv … … 178 178 if($wpsc_cart->selected_currency_code != $_SESSION['wpsc_base_currency_code']){ 179 179 $output .="<div id='wpsc_currency_notification'>"; 180 $output .= "<p>".__('By clicking Make Purchase you will be redirected to the gateway, and the cart prices will be converted to the shops local currency','wpsc ')." ".$_SESSION['wpsc_base_currency_code'].'</p>';180 $output .= "<p>".__('By clicking Make Purchase you will be redirected to the gateway, and the cart prices will be converted to the shops local currency','wpscmcs')." ".$_SESSION['wpsc_base_currency_code'].'</p>'; 181 181 $output .="</div>"; 182 182 echo $output; … … 186 186 wp_enqueue_script('wpsc-multi-currency-support-js',WPSC_CURRENCY_URL.'/js-css/currency.js', array('jquery'), 'Wp-Currency-Support'); 187 187 wp_enqueue_style( 'wpsc-multi-currency-support-css', WPSC_CURRENCY_URL.'/js-css/currency.css', false, '0.0', 'all'); 188 load_plugin_textdomain( ' currency-changer', false, dirname( plugin_basename( __FILE__ ) ) . '/localization/' );188 load_plugin_textdomain( 'wpscmcs', false, dirname( plugin_basename( __FILE__ ) ) . '/localization/' ); 189 189 } 190 190 add_action('init','wpsc_add_currency_js_css', 11);
Note: See TracChangeset
for help on using the changeset viewer.