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(
|
||||
'AUD' => __( 'Australian Dollars', 'woocommerce' ),
|
||||
'BRL' => __( 'Brazilian Real', 'woocommerce' ),
|
||||
'BGN' => __( 'Bulgarian Lev', 'woocommerce' ),
|
||||
'CAD' => __( 'Canadian Dollars', 'woocommerce' ),
|
||||
'CNY' => __( 'Chinese Yuan', 'woocommerce' ),
|
||||
'CZK' => __( 'Czech Koruna', 'woocommerce' ),
|
||||
|
@ -109,6 +110,9 @@ function get_woocommerce_currency_symbol( $currency = '' ) {
|
|||
case 'BRL' :
|
||||
$currency_symbol = 'R$';
|
||||
break;
|
||||
case 'BGN' :
|
||||
$currency_symbol = 'лв.';
|
||||
break;
|
||||
case 'AUD' :
|
||||
case 'CAD' :
|
||||
case 'MXN' :
|
||||
|
@ -170,4 +174,4 @@ function woocommerce_mail( $to, $subject, $message, $headers = "Content-Type: te
|
|||
$mailer = $woocommerce->mailer();
|
||||
|
||||
$mailer->send( $to, $subject, $message, $headers, $attachments );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue