Albert Rosa It's not what you say it's how you say it

22Jan/102

Zend Dates and locale

No Gravatar

So Recently I've been working on a new site www.umbro.com this site is small to the user, but for the content managers the site is huge.  Once you enter the site you can tell hey its flash so boom credit to flash peeps Matt Wright, google him freaking awesome developer and author too.

But what you are probably thinking how in the world is the flash being handled so that all the languages are displayed.. thank you Zend. We here are Rokkan Have used Zend on multiple projects and I am no expert but I am getting better and better at it with each project. To say the lease there have been many lessons learned with this Latest Site so I will start with what I have had the hardest time with recently.

Dates and Locale, now as you all may know Umbro is based in the UK and well Rokkan is Based in USA but what you may or may not know is that Umbro also has pressence all over the world, bonus points Umbro extra hard Rokkan. Though I've done multiple languages site case in point www.mamashelter.com and www.virgin.com I have come used to the knowledge of how it should work. Yea so I thought. With this I have learned so much about the inner workings of Zend_Locale but I also know I have gone around it the wrong way in reference to how I customized the libaray.  I did a rudametary mistake of changing the base code for Zend_Locale in order to manage custom locales and modifiying date management. Inside Zend>Locale>data there is full list of xmls that contain the data management for that locale.  There I modified the date node to all mirror the UK locale dates.  But what you may have not known is that in zend>locale.php there is an array of all the locales that is available. I had to add a few entries in order to set up some custom locales.  Here's a bonus also in that array you can set the value to the locale key to false in order to BLOCK a market.

What I should have done though was extend the locale and modify it accordingly from there.  Also Forcing all the markets to use the UK data file rather than their expected one. Food for thought huh. Well On either case this is just a tid bit for today. But feel free to check out www.umbro.com to see what zend has created.

Share
   

Albert Rosa is using WP-Gravatar