Many people use Zend Framework for it's MVC implementation, but it has a lot of hidden gems. Internationalization (i18n) is one of them. We will look how you can create an application that will have the right languages, currencies, dates and times all based on the location of the visiting user. This session will take away a lot of headaches in international projects and will improve the quality in overall.
3. Introduction
Martin de Keijzer
Software engineer at Ibuildings
Board member of PHPBenelux
PHP 5 Zend Certified Engineer
Twitter: Martin1982
Joind.in: http://joind.in/3253
Blog: www.martindekeijzer.nl
3
Monday, 23 May 2011
4. DISCLAIMER
DISCLAIMER: ALL EXAMPLE CODE
IS WRITTEN IN THE CONTROLLER BY
EXAMPLE! USE MODELS!!!!
4
Monday, 23 May 2011
14. Zend Locale
The current locale is is: nl
The browser's locale is is: nl
The environment's locale is is: de_DE
The set locale is is: en_US
14
Monday, 23 May 2011
35. Do not get lost in time
Zend_Date
35
Monday, 23 May 2011
36. Zend Date
The date is May 2, 2011 9:13:41 PM.
The date is 2 mei 2011 21:13:41.
36
Monday, 23 May 2011
37. Zend Timesync
2 mai 2011 21:25:09
37
Monday, 23 May 2011
38. Zend_Locale revisited
You can use Zend_Locale_Format to override
date and number formatting.
I never had any use for it though.....
38
Monday, 23 May 2011
39. Show me the money!
Zend_Currency
39
Monday, 23 May 2011