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 Marcello  >  Text Translator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Text Translator
Translate texts between two languages using Google
Author: By
Last change:
Date: 2012-06-08 04:22
Size: 544 bytes
 

Contents

Class file image Download
<?php
error_reporting
(E_ALL E_NOTICE);
include(
'translate.class.php');
$x = new translator_text();
$text 'Al Hotel Demo si vive in armonia con se stessi, immersi nel verde di una natura rigogliosa, con i boschi di pini, querce e tamerici in un terreno a terrazze sul mare. Il Villaggio Turistico รจ un moderno centro di vacanze, concepito e costruito per rispondere a tutte le esigenze dei suoi ospiti.';
echo
'<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
echo 
$x->translate(strip_tags(trim($text)), 'it''de');
?>