Opened 19 years ago
Closed 18 years ago
#3677 closed enhancement (fixed)
i18n for number_format()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.3 | Priority: | low |
| Severity: | normal | Version: | |
| Component: | I18N | Keywords: | has-patch i18n commit |
| Focuses: | Cc: |
Description
We're using number_format() in a few places, which converts to American style formatting for thousands grouping. We might consider making a __number_format() function that localizers can use to format numbers appropriately.
Attachments (3)
Change History (12)
#7
@
19 years ago
- Cc Sewar added
- Resolution fixed deleted
- Status changed from closed to reopened
Let's move these variables from gettext system to $locale.php. It is created for such things.
Note: See
TracTickets for help on using
tickets.
I named the function
number_format_i18nafterdate_i18n.There are two patches - the first is the function implementation. The second one just substitutes
number_formatwithnumber_format_i18nwherever I found occurrences. I have skipped Akismet. It could fallback tonumber_formatif the new function does not exists, but may be some other time :)