Formatting numbers and dates according to locale


Are there in Omeka readily available functions to format numbers and dates according to locale? For instance, numbers might use “.” instead of “,” for thousands, or “,” instead of “.” for decimal part, etc.


There’s some options through the Zend Framework Locale functionality. We mostly use this for dates, and not numbers.

In Omeka S, we rely on the PHP “intl” extension for this kind of thing, which provides a NumberFormatter class.

Thank you, John.
I think I’ve found it: Zend_Locale_Format::toNumber()


This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.