Bit of a newbie..
I'm using a great little routine that translates between language pairs:
http://code.google.com/p/gtranslate-api-php/
To use it:
require("GTranslate.php");
$gt = new Gtranslate;
$gt->it_to_en("Ciao mondo");
The program I'm developing has the language pair in a string, so I want to use the program with the language pair as a parameter, eg:
$trans = translate("it_to_en","Ciao mondo");
But I don't really know how to change the class. Any pointers?
Many thanks
Russ