Portal Home > Knowledgebase > Articles Database > Multilingual sites


Multilingual sites




Posted by vineld, 12-14-2007, 06:04 PM
I am in need of translating a dynamic site (heavy on information) into many different languages (which do not necessarily coincide with country borders). Are there any good guides on which techniques that are most efficient?

Posted by holmesa, 12-14-2007, 06:44 PM
It depends on your website technology. Are you using some CMS system or it is custom code? If it is custom coded what is the technology?

Posted by Barti1987, 12-14-2007, 10:30 PM
Always use UTF8. Peace,

Posted by kuldeeps, 12-15-2007, 12:58 AM
As a first step, you should separate content and layout/design. Wherever you have content, in stead of hard-coded content, you need to use a variable which will have a value corresponding to the language. For a very simple project, you can store values in arrays, but for a larger project you will need to store the values in the database. You can PM me if you need help.

Posted by vineld, 12-15-2007, 05:04 AM
It is custom code, using PHP and a mySQL database. UTF-8 is the only way to go =) I am looking for a good guide regarding content and database design with multilingual sites. There are a few options I know, using language files, XML files etc.

Posted by holmesa, 12-15-2007, 08:21 AM
You are on the right track. Do not miss an option to convert you websites to some community supported CMS. Some of them support multilingual option very well.

Posted by vineld, 12-16-2007, 06:20 AM
The website is already community based and I will NEVER use a finished product =) I know it saves time but I always want custom code that I have either coded or designed myself.

Posted by holmesa, 12-16-2007, 01:42 PM
And you are not unique. I believe there are about 10 000 000 of people like you. The only difference is that they use someones code, and they contribute their code back once it is stable enough. Or at least contribute their opinion or bugs they noticed. This way we all can save our time, get advantage of collective mind. Just like this forum. It would never work if you try to ask and answer only yourself.

Posted by arbet, 12-16-2007, 01:59 PM
Totally agree!

Posted by phporaclehosting, 12-17-2007, 09:41 AM
keep a strings file and parse it for each language like strings.en strings.fr var = "Funny language" this is the simplist solution, having some one parse and transalte your pages sounds very dodgy and opening yourself up for all sorts of problems

Posted by Renard Fin, 12-17-2007, 10:41 AM
Maybe Zend Locale could help witht that ? or the _() function ( gettext extension ).



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
SSL installation error (Views: 587)
Blocked Out Of Server (Views: 580)