Merge pull request #761 from AndorChen/patch-1

Add Chinese currency
This commit is contained in:
Mike Jolley 2012-03-05 07:34:56 -08:00
commit 3c01f3aa56
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ $woocommerce_settings['general'] = apply_filters('woocommerce_general_settings',
'HKD' => __( 'Hong Kong Dollar ($)', 'woocommerce' ),
'HUF' => __( 'Hungarian Forint', 'woocommerce' ),
'ILS' => __( 'Israeli Shekel', 'woocommerce' ),
'RMB' => __( 'Chinese Yuan (¥)', 'woocommerce' ),
'JPY' => __( 'Japanese Yen (¥)', 'woocommerce' ),
'MYR' => __( 'Malaysian Ringgits', 'woocommerce' ),
'MXN' => __( 'Mexican Peso ($)', 'woocommerce' ),

View File

@ -191,6 +191,7 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
case 'SGD' :
case 'USD' : $currency_symbol = '$'; break;
case 'EUR' : $currency_symbol = '€'; break;
case 'RMB' :
case 'JPY' : $currency_symbol = '¥'; break;
case 'TRY' : $currency_symbol = 'TL'; break;
case 'NOK' : $currency_symbol = 'kr'; break;