Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2009-05-25] Add l10n support to Float, Decimal and Int #1375

Closed
silverstripe-issues opened this issue Apr 3, 2013 · 1 comment
Closed

Comments

@silverstripe-issues
Copy link

created by: @chillu (ischommer)
assigned to: trix
created at: 2009-05-25
original ticket: http://open.silverstripe.org/ticket/4127


See #1373 and #1374 for similiar tickets.

Essentially, numbers in their "nice" display have to be formatted according to the locale (decimal and thousands separators).

== Features ==

  • Add setLocale() and getLocale()
  • Fix setValue() to parse times according to locale
  • Set current locale upon construction based on i18n::get_current_locale(). Allow explicit passing in of locale in constructor
  • Add setOptions() which is passed through to Zend_Locale
  • Use Zend_Locale_Format::getNumber() for any formatting in Nice(), Round(), NiceRound(). Replace all calls to number_format()
  • Use Zend_Locale_Format::isNumber() in setValue() and any other occurrence of is_numeric()
  • For any conversions on Float, use prevision value set in requireField()

== Out of scope ==

  • No support for non-western number systems (e.g. arabic)

== Notes ==

@sminnee
Copy link
Member

sminnee commented Apr 21, 2016

stale enhancement.

@sminnee sminnee closed this as completed Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants