NYCPHP Meetup

NYPHP.org

[nycphp-talk] automatic translation

Adam Maccabee Trachtenberg adam at trachtenberg.com
Sun Apr 4 11:12:12 EDT 2004


On Sat, 3 Apr 2004, Daniel Convissor wrote:

> Or to be more clear and simple, use the language codes.
> ru.inc, en.inc, de.inc...

Better yet, locales:

en_US.inc, en_CA.inc, en_UK.inc.

If you're going the array route, I actually prefer storing message
catalogs as object properties because you get inheritance for
free.

Then your en_UK catalog can inherit from en_US and just redefine the
works the British misspell, like colour and lift, instead of
containing an almost complete duplicate of the American catalog.

Jim Winstead (of MySQL, AB and also formerly a big PHP guy) is talking
about this topic at OSCon this year:

http://trainedmonkey.com/entry/1655

-adam

-- 
adam at trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!



More information about the talk mailing list