I tried this one and yes its working only in "zh-hant" and zh-hans". But the default displays nothing. That is why I think parsing the url works well.
I dont know how to make the default works. Is it maybe because Im using includes instead of echo to display everything?
I understand yes, curPageURL() function doesn't do anything here. I didnt use it anywhere too. But I find more useful that the "_GET".
if(isset($_GET['lang'])) {
switch($_GET['lang']) {
case 'zh-hans':
include (TEMPLATEPATH . '/branches-cn.php'); //branches pages contains the translated images
break;
case 'zh-hant':
include (TEMPLATEPATH . '/branches-tcn.php');
break;
default:
include (TEMPLATEPATH . '/branches.php'); //This is my english page
break;
}
}
Is there something missing here? Why is the english images not displayed?