Opened 18 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
@
18 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_i18n
afterdate_i18n
.There are two patches - the first is the function implementation. The second one just substitutes
number_format
withnumber_format_i18n
wherever I found occurrences. I have skipped Akismet. It could fallback tonumber_format
if the new function does not exists, but may be some other time :)