Contenu connexe
Similaire à Internationalisation with PHP and Intl (20)
Plus de Daniel_Rhodes (7)
Internationalisation with PHP and Intl
- 1. Internationalisation with PHP This presentation is about the “Intl” extension for PHP. By Daniel Rhodes of Warp Asylum http://www.warpasylum.co.uk
- 6. See PHP docs at http://www.php.net/manual/en/book.intl.php
- 46. Basically the current emperor's reign is named “Heisei” and 2011 is Heisei 23 as it's the 23 rd year of the current emperor's reign
- 48. Used for more official paperwork and formal situations (Gregorian year used day-to-day)
- 49. Let's see how Intl can present this format for a Japanese locale...
- 60. One, ten, hundred, thousand, man (ten thousand), eok (100 million ie. Ten thousand man), jo (one trillion ie. Ten thousand eok)
- 64. We have to create, and then set, our own spellout rules
- 65. Luckily we can base our rules on the already present Japanese spellout rules!
- 76. More flexible and fine-grained than system locales (ie. setlocale() and money_format() etc)