I22r-Translate
The Internationalizationizer: A Moose-y, featureful, flexible,
extensible framework for translating content between languages.
SYNOPSIS
Global configuration and backend configuration
I22r::Translate->config( %config )
Perform a translation
$r = I22r::Translate->translate_string(
src => 'en', dest => 'it',
text => 'Eat your vegetables.');
@r = I22r::Translate->translate_list(
src => 'en', dest => 'fr',
text => [ 'hello', 'I like milk.' ],
... other options ...)
%r = I22r::Translate->translate_hash(
src => 'en', dest => 'de',
text => { foo => 'Roses are red.',
bar => 'Violets are blue.' },
... other options ...)
where other options could include timeouts, source filters,
callbacks, and more.
See the perldoc for a longer description of these features
and how to use this distribution.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
TESTING WITH GOOGLE API KEY
This distribution comes with I22r::Translate::Google ,
a backend for use with the Google translation webservice.
If you have a Google API key you want to use with the
distribution's unit tests, edit the bottom of the file
t/Constants.pm before you run "make test". See the
documentation for I22r::Translate::Google for some
(possibly outdated) information about how to get a
Google API key.
If you do not specify a Google API key for the tests,
then tests that interact with the Google translation
web service will be skipped.
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.
perldoc I22r::Translate
You can also look for information at:
RT, CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=I22r-Translate
AnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/I22r-Translate
CPAN Ratings
http://cpanratings.perl.org/d/I22r-Translate
Search CPAN
http://search.cpan.org/dist/I22r-Translate/
LICENSE AND COPYRIGHT
Copyright (C) 2012 Marty O'Brien
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.