Changing languages on a 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
dzingai
Forum Newbie
Posts: 1
Joined: Tue Jul 31, 2007 6:34 am

Changing languages on a Site

Post by dzingai »

Hie you all

I am tryingto redevelop my website to include affiliate offices in some countries. In one country, they speak both English & Portuguese while in the others they speak English.

What I would like is this: someone clicks a particular country (or uses the form on the page) and is led to country.php where
if (country name is set) select country details and also print English links and the name of the country.
if (country) is the portuguese_and_english_country, print the English links and also a link to change the language to Portuguese.
... and if Portuguese is selected, print Portuguese links and the name of the country.

The page is divided into two top rows for the masthead (first) and links (second), then the third row has three columns, with the middle one being the one for the main website content.

Can anyone tell me how I can go about it?

Thanx
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

check this post

Post by yacahuma »

I posted an easy way to do it here. Look at the last post

http://forums.devnetwork.net/viewtopic ... ighlight= [/url]
Post Reply