Format text </li></ul></ul><ul><li>... as appropriate for a given locale!
See PHP docs at http://www.php.net/manual/en/book.intl.php </li></ul>
Example locale differences <ul>Here are some example locale differences that we might like to tackle: <li>Japan's official calendar counts years by using emperor's era name followed by year number of that emperor's reign. 2011 is “Heisei 23” for example.
Korean language system of counting in tens of thousands. 10,000 is “one man” for example.
German alphabet with its umlauted vowels (ä, ö and ü) and eszett (ß) </li></ul>
How to get the extension <ul><li>A wrapper for ICU so you'll need that first!
Bundled extension as of PHP 5.3.0 (compile freaks will want --enable-intl)
PHP 5.2.0 onwards can get the extension from PECL
ICU locales support UCA keywords (eg. numbers=roman) </li></ul>
Challenge for you! <ul>We've seen that Collator can quite easily give us the phonebook and dictionary sort orders for German. But can you use Collator to get the Austrian phonebook sort order? Try experimenting with: <li>The collation string passed to Collator::__construct()
Give IntlDateFormatter::__construct() [email_address] =uca_calendar_type and IntlDateFormatter::TRADITIONAL to get non-Gregorian calendars </li></ul>
Challenge for you! <ul>Ignoring the fact that they refer to months of the Chinese lunar calendar, can you get IntlDateFormatter to output dates for ja_JP using the traditional month names (see http://en.wikipedia.org/wiki/Japanese_calendar)? Try experimenting with: <li>IntlDateFormatter::getPattern()