Login   Register  
PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Garry Lachman  >  GrWebLang  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: ex
Class: GrWebLang
Retrieve text translations for multiple idioms
Author: By
Last change:
Date: 2004-10-21 10:16
Size: 516 bytes
 

Contents

Class file image Download
<?
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");
?>