Text::Pipe::TranslateTranslate text from one language to another | |
Download |
Text::Pipe::Translate Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Marcel Grnauer
- Publisher web site:
- http://search.cpan.org/~marcel/Module-Install-Template-0.05/lib/Module/Install/Template.pm
Text::Pipe::Translate Tags
Text::Pipe::Translate Description
Translate text from one language to another Text::Pipe::Translate is a Perl module that can be used to translate text from one language to another.SYNOPSIS use Text::Pipe 'pipe'; my $pipe = pipe 'Translate::Babelfish', from => 'en', to => 'de'; my $german = $pipe->filter('My hovercraft is full of eels.'),This pipe segment can translate text from one language to another. To do so it uses Lingua::Translate.Both source and destination language are to be given in RFC3066 form. See I18N::LangTags.METHODSclear_from $obj->clear_from; Clears the value.clear_to $obj->clear_to; Clears the value.clear_translators $obj->clear_translators; Clears the value.from my $value = $obj->from; $obj->from($value); A basic getter/setter method. If called without an argument, it returns the value. If called with a single argument, it sets the value.from_clear $obj->from_clear; Clears the value.to my $value = $obj->to; $obj->to($value); A basic getter/setter method. If called without an argument, it returns the value. If called with a single argument, it sets the value.to_clear $obj->to_clear; Clears the value.translators my $value = $obj->translators; $obj->translators($value); A basic getter/setter method. If called without an argument, it returns the value. If called with a single argument, it sets the value.translators_clear $obj->translators_clear; Clears the value.get_translator Constructs a translator object for the current settings of from() and to() and caches it using the translators() accessor.filter_single Takes a string and translates it according to the current settings of from() and to(). Requirements: · Perl
Text::Pipe::Translate Related Software