Creating a multi language site

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
User avatar
sanju
Forum Commoner
Posts: 65
Joined: Sat Jun 21, 2008 2:15 am
Location: Kochi, India

Creating a multi language site

Post by sanju »

Hi all,

I want to do a dynamic site which have the option to choose various languages.

A multi language content management site in php. What is the proper way for it.

PLease advise
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: Creating a multi language site

Post by papa »

You can create a languange class which translates your words.

If it's a small site you can use constants for example.
User avatar
sanju
Forum Commoner
Posts: 65
Joined: Sat Jun 21, 2008 2:15 am
Location: Kochi, India

Re: Creating a multi language site

Post by sanju »

Hi,

Thanks for the reply..

How should be this class.. My site have 2 languages when click on english site should be in english and on clicking spanish it should be in it.
Its a big content management site and cant use constants. How should I create that class For spanish translation from english

Thanks..
User avatar
dyrathror
Forum Newbie
Posts: 6
Joined: Thu Oct 02, 2008 5:30 am

Re: Creating a multi language site

Post by dyrathror »

May I suggest to use a php framework with builtin multi-language support?

For example I am using:
Prado: http://www.pradosoft.com/
Yii: http://www.yiiframework.com/

D.
Post Reply