[Solved] $lang in user defined tag
Posted: Tue Jun 15, 2010 11:13 pm
Hi,
I have the following user defined tag:
How do I check for the current chosen language ? Normally with $lang, but that does not work in a user defined tag.
Also I cannot get the value from the url, because on the homepage it doesn't show the language in the url.
I have the following user defined tag:
Code: Select all
if ($_GET['Error'] == 'Username or password incorrect.'){
if ($lang == 'nl_NL'){
echo '<__script__ language="JavaScript">alert ("Inloggen mislukt, probeer opnieuw a.u.b.")</__script>';
}
}
Also I cannot get the value from the url, because on the homepage it doesn't show the language in the url.