Merge pull request #3656 from dimitrov-adrian/patch-2
Adding BGN currency and currency symbol.
This commit is contained in:
commit
4c06169c8d
|
@ -61,6 +61,7 @@ function get_woocommerce_currencies() {
|
||||||
array(
|
array(
|
||||||
'AUD' => __( 'Australian Dollars', 'woocommerce' ),
|
'AUD' => __( 'Australian Dollars', 'woocommerce' ),
|
||||||
'BRL' => __( 'Brazilian Real', 'woocommerce' ),
|
'BRL' => __( 'Brazilian Real', 'woocommerce' ),
|
||||||
|
'BGN' => __( 'Bulgarian Lev', 'woocommerce' ),
|
||||||
'CAD' => __( 'Canadian Dollars', 'woocommerce' ),
|
'CAD' => __( 'Canadian Dollars', 'woocommerce' ),
|
||||||
'CNY' => __( 'Chinese Yuan', 'woocommerce' ),
|
'CNY' => __( 'Chinese Yuan', 'woocommerce' ),
|
||||||
'CZK' => __( 'Czech Koruna', 'woocommerce' ),
|
'CZK' => __( 'Czech Koruna', 'woocommerce' ),
|
||||||
|
@ -109,6 +110,9 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
|
||||||
case 'BRL' :
|
case 'BRL' :
|
||||||
$currency_symbol = 'R$';
|
$currency_symbol = 'R$';
|
||||||
break;
|
break;
|
||||||
|
case 'BGN' :
|
||||||
|
$currency_symbol = 'лв.';
|
||||||
|
break;
|
||||||
case 'AUD' :
|
case 'AUD' :
|
||||||
case 'CAD' :
|
case 'CAD' :
|
||||||
case 'MXN' :
|
case 'MXN' :
|
||||||
|
@ -170,4 +174,4 @@ function woocommerce_mail( $to, $subject, $message, $headers = "Content-Type: te
|
||||||
$mailer = $woocommerce->mailer();
|
$mailer = $woocommerce->mailer();
|
||||||
|
|
||||||
$mailer->send( $to, $subject, $message, $headers, $attachments );
|
$mailer->send( $to, $subject, $message, $headers, $attachments );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue