Hello,
I created a small program with scriptcase with two languages. My first webpage is a Login page.
in onApplicationInit I have following code: (I am not sure if this is the correct way to set a language but it seems to work)
if([language] == ‘de’)
{
sc_set_language(‘de’);
$_SESSION[‘scriptcase’][‘str_lang’] = “de”;
$_SESSION[“scriptcase”][“str_conf_reg”] = “de_de”; //Regianla settings
}
else
{
sc_set_language(‘en_us’);
$_SESSION[‘scriptcase’][‘str_lang’] = “en_us”;
$_SESSION[“scriptcase”][“str_conf_reg”] = “en_us”; //Regianla settings
}
Now my question! I want to redirect to this page from a website. My input global variable is [language], so how can I pass this parameter from other webpage which is made with Typo3 or Wordpress or JS or HTML. The main webpage will be created by friend of my later.
BR
Stefan