Feature #17912

stdWrap.numberFormat for rendering prices

Added by Sonja Schubert almost 12 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2007-12-12
Due date:
% Done:

0%

PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

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)


Related issues

Duplicates TYPO3 Core - Feature #22279: Add .numberFormat function to stdWrap Closed 2010-03-15

History

#1 Updated by Jonas Felix almost 12 years ago

Nice idea! Great work sonja.

#2 Updated by Oliver Hader almost 12 years ago

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

#3 Updated by Chris topher over 9 years ago

This will be solved by #22279, which should become part of TYPO3 4.5.

#4 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF