Added currency support for United Arab Emirates Dirham

This commit is contained in:
Sean Cull 2014-02-14 02:17:22 -05:00
parent 87a3fdb94f
commit e2fab93c7a
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,7 @@ function get_woocommerce_currencies() {
return array_unique( return array_unique(
apply_filters( 'woocommerce_currencies', apply_filters( 'woocommerce_currencies',
array( array(
'AED' => __( 'United Arab Emirates Dirham' ),
'AUD' => __( 'Australian Dollars', 'woocommerce' ), 'AUD' => __( 'Australian Dollars', 'woocommerce' ),
'BRL' => __( 'Brazilian Real', 'woocommerce' ), 'BRL' => __( 'Brazilian Real', 'woocommerce' ),
'BGN' => __( 'Bulgarian Lev', 'woocommerce' ), 'BGN' => __( 'Bulgarian Lev', 'woocommerce' ),
@ -218,6 +219,9 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
} }
switch ( $currency ) { switch ( $currency ) {
case 'AED' :
$currency_symbol = '(د.إ';
break;
case 'BRL' : case 'BRL' :
$currency_symbol = 'R$'; $currency_symbol = 'R$';
break; break;