From 86691d3f28a5026587480c4707eaaf77a008b971 Mon Sep 17 00:00:00 2001 From: Andor Chen Date: Mon, 5 Mar 2012 23:11:49 +0800 Subject: [PATCH 1/2] Add Chinese Yuan currency --- admin/woocommerce-admin-settings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/woocommerce-admin-settings.php b/admin/woocommerce-admin-settings.php index cf2847383aa..a072ad9e31f 100644 --- a/admin/woocommerce-admin-settings.php +++ b/admin/woocommerce-admin-settings.php @@ -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' ), From 18f770a979369aa8ccae6e855fe4a4424d3b49ca Mon Sep 17 00:00:00 2001 From: Andor Chen Date: Mon, 5 Mar 2012 23:15:47 +0800 Subject: [PATCH 2/2] Added Chinese Yuan symbol --- woocommerce-core-functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/woocommerce-core-functions.php b/woocommerce-core-functions.php index 9be91661a3b..fcec0495933 100644 --- a/woocommerce-core-functions.php +++ b/woocommerce-core-functions.php @@ -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;