Different Language

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Different Language

Post 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
Post Reply

Return to “Developers Discussion”