By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,713 Members | 1,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,713 IT Pros & Developers. It's quick & easy.

Sanity Check: L10N, PHP, and MySQL

P: n/a
Greetings,

I am currently working on a multi-lingual site that allows users to switch
back and forth between languages per page. Static elements, such as links
and headings, are handled nicely by 'gettext' and 'setlocale()'; dynamic
content, including form elements (country/city/category names), comes from
DB tables indexed by id/lang key pairs.

So far, so good. However, what's a good way to store and display a bit
more 'generic' content (ie., date; time; zip; phone #s) depending on
locale setting? Ideally, such values should be stored generically as INT,
TIME, DATE, TIMESTAMP, etc; and, after retrieval from the DBMS, formatted
according to locale.

Any pointers greatly appreciated.

Mike
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.