Lingua::Translate::Google is a translation back-end for Lingua::Translate that contacts Google translation service to do the real work. The Google translation API is currently at: http://code.google.com/apis/ajaxlanguage/documentation/#Translation http://code.google.com/apis/ajaxlanguage/documentation/#fonje
The Lingua::Translate::Google module is normally invoked by Lingua::Translate; there should be no need to call it directly. If you do call it directly, you will lose the ability to easily switch your programs over to alternate back-ends that are later produced.
SYNOPSIS
use Lingua::Translate;
Lingua::Translate::config
(
back_end => 'Google',
api_key => 'YoUrApIkEy',
referer => 'http://your.domain.tld/yourdir/',
format => 'text',
userip => '192.168.1.1',
);
my $xl8r = Lingua::Translate->new( src => 'de', dest => 'en' );
# prints 'My hovercraft is full of eels'
print $xl8r->translate('Mein Luftkissenfahrzeug ist voller Aale') . "\n";
# switch to auto detect for source language
$xl8r->config( src => 'auto' );
# prints 'My hovercraft is full of eels'
print $xl8r->translate('Mi aerodeslizador está lleno de anguilas') . "\n";
Product's homepage
Requirements:
· Perl