News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Building a Multilingual PHP Website
September 01, 2011 @ 09:02:21

On PHPBuilder.com today there's a new post from Vojislav Janjic with three methods (sans-framework) that you can use to create a multilingual website - some a bit easier to maintain than others.

Fast internet growth has brought many opportunities in the global market. Businesses can reach their customers across many countries, and information sharing is not limited to a local area or country anymore. This is why there is an increasing tendency for multilingual websites. By having a website in multiple languages, you can target local markets more easily. Also, it is more convenient to use a website in your native language.

His three methods are all relatively simple, but they all have their good and bad points - making separate HTML/views for each language, creating XML files with different versions of the content or storing the translations in a MySQL database. He gives quick code snippets showing how to implement each of them, some basing the language on a cookie value, others on a GET variable passed to the page.

1 comment voice your opinion now!
multilingual website tutorial mysql xml html translate


blog comments powered by Disqus

Similar Posts

Vinu Thomas' Blog: Modifying your MySQL databases to be UTF-8 compliant

IBM developerWorks: Cloud computing with PHP, Part 1: Using Amazon S3 with the Zend Framework

DevShed: Finding Paths, Timestamps and More with the DirectoryIterator Class in PHP

Lehi Sanchez's Blog: The Ultimate Open Source Web Server Installation Part 1

HowTo Forge: Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2008.0


Community Events

Don't see your event here?
Let us know!


introduction podcast library extension series voicesoftheelephpant release unittest community development php7 laravel5 language api version security opinion interview framework laravel

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework