Dates, numbers and currency per language
This page is for administrators and site builders. Each siteaccess formats dates, numbers and money with its
site.ini [RegionalSettings] Locale, read from share/locale/<code>.ini
(Languages in Exponential, section 7).
Contents
What the locale decides
| Group | Decides |
|---|---|
[DateTime] | date and time formats, long and short; MondayFirst |
[ShortMonthNames], [LongMonthNames], day names | the names in the language |
[Numbers] | decimal symbol, thousands separator, decimals |
[Currency] | symbol, name, ISO 4217 code, format of amounts |
[HTTP] ContentLanguage | the lang tag of the page |
The locale files of 6.0.15 were generated from Unicode CLDR data, so they follow common usage of each country (Internationalization standards).
Seeing a locale's formats
The language's page in Setup > Languages has a section The locale that shows how dates, numbers and money are written. Check it with someone from your language service before launch.
Adjusting a format
If your body's style guide differs (for example a date format for official notices), put an override of the locale
file in a variation (<code>@<name>.ini, which holds only the keys it changes) or change your templates to use a
specific format. Keep such changes in your own repository; a changed shipped file is overwritten by updates.
Time zones
site.ini [TimeZoneSettings] TimeZone sets one time zone per installation or siteaccess, from the IANA time zone
database; there is no time zone per user (Internationalization standards).
A body serving several time zones should state the time zone next to times, such as deadlines.
Known limits
- A 12-hour clock is printed only with
am/pm; locales whose markers are other words use the 24-hour clock. eZLocaleknows no Saturday or Friday start of the week.- No plural forms in interface translations, so a few counts read awkwardly in some languages.
- Number separators must be single bytes (a plain space, not a no-break space).
Related pages
- Languages in Exponential
- Internationalization standards
- Custom locales for unlisted languages
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.