Plugin Directory

Changeset 503832


Ignore:
Timestamp:
02/12/2012 05:55:35 AM (14 years ago)
Author:
beshkin
Message:

tagging version 0.4.2

Location:
e-commerce-multi-currency-support
Files:
8 added
2 deleted
3 edited
9 copied

Legend:

Unmodified
Added
Removed
  • e-commerce-multi-currency-support/tags/0.4.2/readme.txt

    r502180 r503832  
    44Requires at least: 2.9
    55Tested up to: 3.1.1
    6 Stable tag: 0.4.1
     6Stable tag: 0.4.2
    77
    88
     
    1717
    1818== Changelog ==
     19= 0.4.2 =
     20- improved localization
     21- small fix with selector of current currency
    1922= 0.4 =
    2023- added multilanguage support
  • e-commerce-multi-currency-support/tags/0.4.2/widgets/currency_chooser_widget.php

    r498347 r503832  
    99    function WPSC_Widget_Currency_Converter() {
    1010
    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);
    1313    }
    1414
     
    3434            $local_currency_code=$_SESSION['wpsc_base_currency_code'];
    3535        }
    36             foreach($countries as $country){
     36            foreach($countries as $country){
    3737                $country_code = '';
    3838                if ($instance['show_code'] == 1) $country_code =" (".$country['code'].")";
     
    4040                if($_SESSION['wpsc_currency_code'] == $country['id']){
    4141                    $selected_code = "selected='selected'";
     42                   
    4243                }else {
    43                     if ( $local_currency_code == $country['code'])
     44                    if ( !isset($_SESSION['wpsc_currency_code']) && $local_currency_code == $country['code'])
    4445                        $selected_code = "selected='selected'";
    4546                }
     
    5152
    5253        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" />';
    5455        }
    5556        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" />';
    5758        }
    5859        $output .='</form>';
    5960        if($instance['show_conversion'] == 1){
    6061            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>';
    6263                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>';
    6465                }
    6566                $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  
    44Plugin URI: http://misha.beshkin.lv
    55Description: 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.1
     6Version: 0.4.2
    77Author: Misha Beshkin
    88Author URI: http://misha.beshkin.lv
     
    178178    if($wpsc_cart->selected_currency_code != $_SESSION['wpsc_base_currency_code']){
    179179        $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>';
    181181        $output .="</div>";
    182182        echo $output;
     
    186186    wp_enqueue_script('wpsc-multi-currency-support-js',WPSC_CURRENCY_URL.'/js-css/currency.js', array('jquery'), 'Wp-Currency-Support');
    187187    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/' );
    189189}
    190190add_action('init','wpsc_add_currency_js_css', 11);
  • e-commerce-multi-currency-support/trunk/readme.txt

    r502180 r503832  
    44Requires at least: 2.9
    55Tested up to: 3.1.1
    6 Stable tag: 0.4.1
     6Stable tag: 0.4.2
    77
    88
     
    1717
    1818== Changelog ==
     19= 0.4.2 =
     20- improved localization
     21- small fix with selector of current currency
    1922= 0.4 =
    2023- added multilanguage support
  • e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php

    r498347 r503832  
    99    function WPSC_Widget_Currency_Converter() {
    1010
    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);
    1313    }
    1414
     
    3434            $local_currency_code=$_SESSION['wpsc_base_currency_code'];
    3535        }
    36             foreach($countries as $country){
     36            foreach($countries as $country){
    3737                $country_code = '';
    3838                if ($instance['show_code'] == 1) $country_code =" (".$country['code'].")";
     
    4040                if($_SESSION['wpsc_currency_code'] == $country['id']){
    4141                    $selected_code = "selected='selected'";
     42                   
    4243                }else {
    43                     if ( $local_currency_code == $country['code'])
     44                    if ( !isset($_SESSION['wpsc_currency_code']) && $local_currency_code == $country['code'])
    4445                        $selected_code = "selected='selected'";
    4546                }
     
    5152
    5253        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" />';
    5455        }
    5556        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" />';
    5758        }
    5859        $output .='</form>';
    5960        if($instance['show_conversion'] == 1){
    6061            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>';
    6263                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>';
    6465                }
    6566                $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  
    44Plugin URI: http://misha.beshkin.lv
    55Description: 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.1
     6Version: 0.4.2
    77Author: Misha Beshkin
    88Author URI: http://misha.beshkin.lv
     
    178178    if($wpsc_cart->selected_currency_code != $_SESSION['wpsc_base_currency_code']){
    179179        $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>';
    181181        $output .="</div>";
    182182        echo $output;
     
    186186    wp_enqueue_script('wpsc-multi-currency-support-js',WPSC_CURRENCY_URL.'/js-css/currency.js', array('jquery'), 'Wp-Currency-Support');
    187187    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/' );
    189189}
    190190add_action('init','wpsc_add_currency_js_css', 11);
Note: See TracChangeset for help on using the changeset viewer.