Locale::Utils::Autotranslator::Interactive - Interface for manual translation with copy/paste
1.014
use Locale::Utils::Autotranslator::Interactive; my $obj = Locale::Utils::Autotranslator::Interactive->new( language => 'de', # all following parameters are optional developer_language => 'en', # en is the default before_translation_code => sub { my ( $self, $msgid ) = @_; ... return 1; # true: translate, false: skip translation }, after_translation_code => sub { my ( $self, $msgid, $msgstr ) = @_; ... return 1; # true: translate, false: skip translation }, ); $identical_obj = $obj->translate( 'mydir/de.pot', 'mydir/de.po', ); my $translation_count = $obj->translation_count;
Interface for translation by terminal input
Type <ctrl> D to send an EOF. That means end of current translation.
Type __END__ to stop the translation completely. Otherwise the file is stored back after all translations for that file are done. You lost all translations by canceling the program before it writes back the file.
Newlines of msgid are equal to msgid and not equal to operating system.
see SYNOPSIS
$translated = $object->translate_text($untranslated);
Inside of this distribution is a directory named example. Run the *.pl files.
none
Encode
Moo
namespace::autoclean
Locale::Utils::Autotranslator
not known
http://en.wikipedia.org/wiki/Gettext
Locale::TextDomain::OO
Steffen Winkler
Copyright (c) 2021, Steffen Winkler <steffenw at cpan.org>. All rights reserved.
<steffenw at cpan.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Locale::Utils::Autotranslator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Utils::Autotranslator
CPAN shell
perl -MCPAN -e shell install Locale::Utils::Autotranslator
For more information on module installation, please visit the detailed CPAN module installation guide.