Author Topic: Multiple Languages  (Read 640 times)

0 Members and 1 Guest are viewing this topic.

Offline CardaleTopic starter

  • Enthusiast
  • Posts: 274
  • Gender: Male
    • View Profile
    • King Goddard
Multiple Languages
« on: September 01, 2007, 03:20:37 AM »
I've been trying to figure out a good way to handle multiple languages with my template system and I started, but after starting I'm noticing a lot of wasted time coding this way.  I am making a generic array then using the array in my function then creating a variable to put into my template files.  This really just feels stupid.  My template isn't buffered at all just broken into multiple sections through out my function and pieces for the page.  I need some advice on a better way to handle these problems and possibly some good articles on the matter.   I'm determined to create everything myself so no PEAR.  Any help would be appreciated.

Offline Daniel0

  • Administrator
  • 'Insane!'
  • *
  • Posts: 11,815
  • Gender: Male
  • ^bb|[^b]{2}$
    • View Profile
Re: Multiple Languages
« Reply #1 on: September 01, 2007, 04:21:40 AM »
You could use the gettext functions. I haven't used them myself before, but these functions are made for internationalization.