Feature #17912
closed
stdWrap.numberFormat for rendering prices
Added by Sonja Schubert almost 17 years ago.
Updated about 6 years ago.
Description
A lot of extensions need number formating, nearly everywhere where a price has to be rendered. The easiest way to do that would be a stdWrap option numberFormat =1 with the options of the php function.
stdWrap.numberFormat = 1
stdWrap.numberFormat {
decimals = 2
decPoint = .
thousandsStep = '
}
(issue imported from #M6936)
Nice idea! Great work sonja.
Besides defining each property, this information could be used from current locale set (e.g. 'de_DE' or 'fr_FR') by localeconv(), the result is something like this:
[decimal_point] => ,
[thousands_sep] => .
[int_curr_symbol] => EUR
[currency_symbol] => ยค
[mon_decimal_point] => ,
[mon_thousands_sep] => .
[positive_sign] =>
[negative_sign] => -
[int_frac_digits] => 2
[frac_digits] => 2
[p_cs_precedes] => 0
[p_sep_by_space] => 1
[n_cs_precedes] => 0
[n_sep_by_space] => 1
[p_sign_posn] => 1
[n_sign_posn] => 1
[grouping] => Array
(
[0] => 3
[1] => 3
)
[mon_grouping] => Array
(
[0] => 3
[1] => 3
)
@see: http://de.php.net/localeconv
This will be solved by #22279, which should become part of TYPO3 4.5.
- Status changed from Resolved to Closed
Also available in: Atom
PDF