Page 1 of 1

Different Language

Posted: Tue Apr 12, 2005 9:19 pm
by kishman155
I am thinking about to show my website in diverent language.
Maybe it could inplemented  in PHPLAYER.
I want to make content in two diverent language.
I am looked at the Index.php and its no problem to show one site in other language.

maybe like this

Code: Select all

//$_GET[language] could be a link in the template(flagimage or show in english)
//switch to show other language
if($_GET[language])
{
$site=$_GET[$config["query_var"]];
$lang=$_GET[language];
$pos = strpos ($site, $lang);
if ($pos == false)
{
$page=$_GET[language];
$page.=$_GET[$config["query_var"]];
}
}
else
{
$page.=$_GET[$config["query_var"]];
}
how could i make PHPLAYERS to get only sites with the language string like _EN_
maybe it could do this like params like lang="_EN_"

thanks for help

kris