create website with several languages (English, German, etc)

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
ansa
Forum Commoner
Posts: 31
Joined: Tue Aug 29, 2006 1:58 am
Location: Hamburg, Germany

create website with several languages (English, German, etc)

Post by ansa »

Hi,

I'm about to create a community website that has several language interfaces, such as English, German, and more whenever possible. The CMS admin (without programming lknowledge) for each language has to be able to change the content to their own language. Not only the content, but also all menus, links, buttons, warning messages, etc.

What is the common technique to do this, or better said, the easiest way? I don't think I have to copy the English version and reprogram it for each language, do I? I'm thinking to put all the words to be translated into a database.

Any suggestions will of course be appreciated.

Thanks!
User avatar
darodesign
Forum Newbie
Posts: 19
Joined: Mon Aug 28, 2006 8:58 am
Location: Berlin
Contact:

Post by darodesign »

I'm yousing an easy to handle Langunge file, with arrays e.g. $lang['SiteNotFound'] = "Seite wurde nicht gefunden!"; I think it's an Easy way, 'cause if you use Smarty like me, you can assign the array to smarty and use your array in the Template.

If you want to edit your language Files, easily maybe you should use an MySql Database, or better XML.
Post Reply