Silverstripe Framework, the MVC framework that powers Silverstripe CMS
BSD 3-Clause "New" or "Revised" License
721
stars
821
forks
source link
[2009-05-25] Add l10n support to Float, Decimal and Int #1375
Closed
silverstripe-issues closed 8 years ago
created by: @chillu (ischommer) assigned to: trix created at: 2009-05-25 original ticket: http://open.silverstripe.org/ticket/4127
See silverstripe/sapphire#1373 and silverstripe/sapphire#1374 for similiar tickets.
Essentially, numbers in their "nice" display have to be formatted according to the locale (decimal and thousands separators).
== Features ==
setLocale()
andgetLocale()
setValue()
to parse times according to localesetOptions()
which is passed through to Zend_LocaleZend_Locale_Format::getNumber()
for any formatting inNice()
,Round()
,NiceRound()
. Replace all calls to number_format()Zend_Locale_Format::isNumber()
insetValue()
and any other occurrence ofis_numeric()
requireField()
== Out of scope ==
== Notes ==