-
-
20 Aug 2021 11:58:57 UTC
- Distribution: Locale-Utils-Autotranslator
- Module version: 1.009
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (0 / 15 / 0)
- Kwalitee
Bus factor: 1- License: perl_5
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (21.08KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
++ed by:1 non-PAUSE userand 1 contributors- Steffen Winkler <steffenw at cpan.org>
- Dependencies
- Carp
- Encode
- HTML::Entities
- HTTP::Request::Common
- JSON
- LWP::UserAgent
- Locale::PO
- Locale::TextDomain::OO::Util
- Locale::TextDomain::OO::Util::ExtractHeader
- Moo
- MooX::StrictConstructor
- MooX::Types::MooseLike
- MooX::Types::MooseLike::Base
- MooX::Types::MooseLike::Numeric
- Try::Tiny
- URI
- namespace::autoclean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- SYNOPSIS
- DESCRIPTION
- SUBROUTINES/METHODS
- EXAMPLE
- DIAGNOSTICS
- CONFIGURATION AND ENVIRONMENT
- DEPENDENCIES
- INCOMPATIBILITIES
- BUGS AND LIMITATIONS
- SEE ALSO
- AUTHOR
- LICENSE AND COPYRIGHT
NAME
Locale::Utils::Autotranslator::Interactive - Interface for manual translation with copy/paste
VERSION
1.009
SYNOPSIS
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;
DESCRIPTION
Interface for translation by terminal input
Type __END__ to stop the translation. Otherwise the file is stored back after all translations for that file are done.
SUBROUTINES/METHODS
method new
see SYNOPSIS
method translate_text
$translated = $object->translate_text($untranslated);
EXAMPLE
Inside of this distribution is a directory named example. Run the *.pl files.
DIAGNOSTICS
none
CONFIGURATION AND ENVIRONMENT
none
DEPENDENCIES
INCOMPATIBILITIES
not known
BUGS AND LIMITATIONS
not known
SEE ALSO
http://en.wikipedia.org/wiki/Gettext
AUTHOR
Steffen Winkler
LICENSE AND COPYRIGHT
Copyright (c) 2021, Steffen Winkler
<steffenw at cpan.org>
. All rights reserved.This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Locale::Utils::Autotranslator, copy and paste the appropriate command in to your terminal.
cpanm Locale::Utils::Autotranslator
perl -MCPAN -e shell install Locale::Utils::Autotranslator
For more information on module installation, please visit the detailed CPAN module installation guide.