This is why even us die hard php coders sometimes yearn for RoR. .to_spanish !
$gt = new Gtranslate; echo "Translating [Ciao mondo] Italian to English => ".$gt->it_to_en("Ciao mondo");
edit: and, BTW, the to_spanish method is not defined in the https://github.com/jimmycuadra/to_lang/blob/master/lib/to_la... module.
italian_to_spanish("Ciao mondo");