We help IT Professionals succeed at work.

easiest way to create multilingual site in php

codeoxygen
codeoxygen asked
on
without any framework is it possible to easily create a multilingual site in php ?
pls guide.
Comment
Watch Question

Freelancer
CERTIFIED EXPERT
Top Expert 2010
Commented:
Absolutely yes! I wrote an article here at EE and I think it describes the easiest way to do that. You find it here: http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3674-How-To-Implement-a-multi-language-site-application.html

Cheers
Most Valuable Expert 2011
Top Expert 2016

Commented:
I haven't read marqusG's article, but it is probably pretty good.  You might consider the the design that PHP itself implements for a multilingual site.  Examples:
http://php.net/manual/en/function.var-dump.php
http://php.net/manual/fr/function.var-dump.php
http://php.net/manual/de/function.var-dump.php
http://php.net/manual/kr/function.var-dump.php

Commented:
Hi,

Just as a side note (as I haven't read margusG's article so I'm not sure if it has already been covered) but it may be worth the time identifying the visitors preferred language from their browser and then using that language by default.

The following page has an example on with a nice and clear description of how the HTTP_ACCEPT_LANGUAGE header works:

http://www.dyeager.org/post/2008/10/getting-browser-default-language-php

Cheers

Matt
Loganathan NatarajanLAMP Developer
CERTIFIED EXPERT

Commented:
One more idea is you can use Google Language converter for any other language
Use gettext functions

Explore More ContentExplore courses, solutions, and other research materials related to this topic.