[!--quoteo(post=365266:date=Apr 16 2006, 12:26 PM:name=asgsoft)--][div class=\'quotetop\']QUOTE(asgsoft @ Apr 16 2006, 12:26 PM)
I have a script and I want to add languages to it. The way I am going to do it is to use the GET method from the url. Defult language is english so if the url is page.php then it will be english, if the page is page.php?lang=fr then it will be french.
I started to do it like this but for some reason $lang is set to 1 rather than the language initials.
If you call [a href=\"http://page.php?lang=fr\" target=\"_blank\"]http://page.php?lang=fr[/a]
and page.php has the following code:
What is then the result shown in your browser?
[!--quoteo(post=365268:date=Apr 16 2006, 12:43 PM:name=asgsoft)--][div class=\'quotetop\']QUOTE(asgsoft @ Apr 16 2006, 12:43 PM)
in the english tpl files I have a variable called en_tnos and in french tpl file i have fr_tnos
As only one file will be included (fr.tpl or en.tpl) you could probably name your variable $tnos in both files and use
echo $lang."_"."$tnos $numrows";