Show both currency symbol and code

This commit is contained in:
Laurent Destailleur 2016-04-30 14:09:00 +02:00
parent 6ffb45f5d8
commit 97bf91cc5d
2 changed files with 5 additions and 2 deletions

View File

@ -731,7 +731,9 @@ else
$var=!$var;
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("CompanyCurrency").'</td><td>';
print currency_name($conf->currency,1);
print ' ('.$langs->getCurrencySymbol($conf->currency).')';
print ' ('.$conf->currency;
print ($conf->currency != $langs->getCurrencySymbol($conf->currency) ? ' - '.$langs->getCurrencySymbol($conf->currency) : '');
print ')';
print '</td></tr>';
$var=!$var;

View File

@ -908,7 +908,8 @@ class Translate
}
/**
* Return a currency code into its symbol
* Return a currency code into its symbol.
* If mb_convert_encoding is not available, return currency code.
*
* @param string $currency_code Currency code
* @param integer $forceloadall 1=Force to load all currencies into cache. We know we need to use all of them. By default read and cache only required currency.