Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of ntf  >  GTranslate  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example to translate 'Welcome' to other languages
Class: GTranslate
Translate text using Google Translate
Author: By
Last change:
Date: 2009-03-29 00:31
Size: 207 bytes
 

Contents

Class file image Download
<?php
 
include './GTranslate.php';
 
$translate = new GTranslate();
 foreach(
$translate->GetLanguageList() as $lang){
    echo 
$lang .': '.$translate->Text('Welcome')->From('English')->To($lang).'<br/>';
 }