[nycphp-talk] Reading in strings from text file
John Campbell
jcampbell1 at gmail.com
Mon Dec 10 18:29:29 EST 2007
> I have no idea what a singleton pattern is.
It is worth your time to google search for "singleton pattern php" and
do some reading. I don't mean to sound smug by sending you to google,
but others can explain it much better than I can.
> That is something that I would have considered if going ahead with my now
> shattered plan.
I am glad I have shattered you plan, because I went down the road you
were headed and hit a brick wall. I wasted dozens of hours instead of
intelligently posting to a list.
I now know:
- i18n is a hard problem.
- it has already been solved
- gettext is the free solution
- gettext works well as an afterthought to an already existing application.
The caveat is that gettext is "As simple as possible, but not
simpler". My advice is to spend a day reading he man pages for
"msgfmt", "msgmerge", and "msgfmt" and reading php.net/gettext.
Regards,
John Campbell
More information about the talk
mailing list