Multi-language functionality

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
minds_gifts
Forum Commoner
Posts: 63
Joined: Mon Feb 10, 2003 4:23 am

Multi-language functionality

Post by minds_gifts »

Hello,
Did anybody of you has implemented multi-language functionality to your webpages??well, i did long time back using interbase as the database and stored-procedures.I store all the language phrases in a table and get them every time i change the language.
I would like to implement it now using mysql.Can anybody suggest me a nice tutorial/useful information.
Thanks in advance
SBukoski
Forum Contributor
Posts: 128
Joined: Wed May 21, 2003 10:39 pm
Location: Worcester, MA

Post by SBukoski »

The way I've usually seen it done, or at least the way I saw it for phpBB 1,(not sure if it's the same for 2) was each language had it's own include file that had in it a bunch of variables with the phrase or words in the appropriate language. In the configuration file you specified which language you were using, and the appropriate language file would be used dependent on your configuration file.

If you were going to use a MySQL DB, you could have a similar theory but instead of files, you could have a seperate table for each language. Not sure on the practicality of that, but it would work.
Post Reply