'jp' => 'ja',
'ko' => 'ko',
'kr' => 'ko',
+ 'nl' => 'nl',
'ru' => 'ru'
);
my $ua = new LWP::UserAgent;
$ua->proxy('http', $::param{'httpProxy'}) if (&::IsParam("httpProxy"));
# Let's pretend
- $ua->agent("Mozilla/4.5 " . $ua->agent);
+ $ua->agent("Mozilla/5.0 " . $ua->agent);
$ua->timeout(5);
my $req =
# Accept-Charset: iso-8859-1
# $req->header('Accept-Charset' => 'iso-8859-1');
# print $req->header('Accept-Charset');
+ $req->header('Accept-Language' => 'en');
$req->content_type('application/x-www-form-urlencoded');
return translate($phrase, "${from}_${to}", $req, $ua);
&main::DEBUG("$translated\n===remove to first ':', optional Help\n");
$translated =~ s/\n/ /g;
- # FIXME should we do unicode->iso
+ # FIXME: should we do unicode->iso (no. use utf8!)
} else {
$translated = ":("; # failure
}