Location: PHPKode > scripts > GrWebLang > grweblang/test.php
<?
include("grweblang.class.php");
$lang = new grweblang;
$lang->Start();
$lang->AddEncode("iso-8859-8-i","he");
$lang->AddEncode("ISO-8859-1","en");

$lang->Encode("he");

$lang->AddLab("name","en","Name");
$lang->AddLab("name","he","Shem");

$lang->AddLab("city","en","City");
$lang->AddLab("city","he","Eir");

$lang->AddLab("tit","en","Title");
$lang->AddLab("tit","he","Koteret");

print $lang->Trans("name","he");
print "<br>";
print $lang->Trans("tit","en");
print "<br>";
print $lang->Trans("city","he");
?>
Return current item: GrWebLang