PHP Classes

File: example.php

Recommend this page to a friend!
  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: 15 years ago
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/>';
 }