Jump to content

translating a table field pdf print out


abrahamgarcia27

Recommended Posts

Hello i am trying to translate a table field, but i am having trouble with the syntax

 

Translating Script


<?php
require("GTranslate.php");
error_reporting(E_ALL);
ini_set('display_error',1);

/**
* Example using RequestHTTP
*/

$translate_string = "¿Cómo está usted";
try{
       $gt = new Gtranslate;
echo "".$gt->spanish_to_english($translate_string)."\n";



} catch (GTranslateException $ge)
{
       echo $ge->getMessage();
}

?>

 

and here is a table field example i want to translate

 

<td><?php echo nl2br(str_replace(array('\n', '\r'), "\n", $item->tablefield));?></td>

 

i am totally new to php

Link to comment
https://forums.phpfreaks.com/topic/244302-translating-a-table-field-pdf-print-out/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.