-
-
15 Mar 2019 15:51:07 UTC
- Distribution: Locale-TextDomain-OO
- Module version: 1.035
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (0)
- Testers (346 / 0 / 1)
- Kwalitee
Bus factor: 1- 80.51% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity
24 month- Tools
- Download (100.82KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Steffen Winkler <steffenw at cpan.org>
- Dependencies
- Carp
- Class::Load
- Clone
- Encode
- English
- Hash::Util
- JSON
- JSON::PP
- Locale::MO::File
- Locale::PO
- Locale::TextDomain::OO::Util
- Locale::TextDomain::OO::Util::ExtractHeader
- Locale::TextDomain::OO::Util::JoinSplitLexiconKeys
- Locale::Utils::PlaceholderBabelFish
- Locale::Utils::PlaceholderMaketext
- Locale::Utils::PlaceholderNamed
- Moo
- Moo::Role
- MooX::Singleton
- MooX::StrictConstructor
- MooX::Types::MooseLike::Base
- Path::Tiny
- Tie::Sub
- Try::Tiny
- namespace::autoclean
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- NAME
- VERSION
- DESCRIPTION
- SYNOPSIS
- SUBROUTINES/METHODS
- EXAMPLE
- DIAGNOSTICS
- CONFIGURATION AND ENVIRONMENT
- DEPENDENCIES
- INCOMPATIBILITIES
- BUGS AND LIMITATIONS
- AUTHOR
- LICENSE AND COPYRIGHT
NAME
Locale::TextDomain::OO::Translator - Translator class
$Id: Translator.pm 724 2018-12-24 11:50:32Z steffenw $
$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Translator.pm $
VERSION
1.035
DESCRIPTION
This is the translator class. Extend that class with plugins (Roles).
SYNOPSIS
require Locale::TextDomain::OO::Translator; Locale::TextDomain::OO::Translator->new( Locale::TextDomain::OO::Translator->load_plugins, );
SUBROUTINES/METHODS
method new
see SYNOPSIS
class method load_plugins
Called before new to load the plugins.
$hash_ref = Locale::TextDomain::OO::Translator->load_plugins;
method translate
Called from Plugins only.
$translation = $self->translate(... lots of parameters ...);
method run_filter
Called from plugins only.
$self->run_filter(\$translation);
EXAMPLE
Inside of this distribution is a directory named example. Read the file README there. Then run the *.pl files.
DIAGNOSTICS
confess
CONFIGURATION AND ENVIRONMENT
none
DEPENDENCIES
Locale::TextDomain::OO::Singleton::Lexicon
Locale::TextDomain::OO::Util::JoinSplitLexiconKeys
Locale::TextDomain::OO::Role::Logger
INCOMPATIBILITIES
not known
BUGS AND LIMITATIONS
not known
AUTHOR
Steffen Winkler
LICENSE AND COPYRIGHT
Copyright (c) 2013 - 2018, 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::TextDomain::OO, copy and paste the appropriate command in to your terminal.
cpanm Locale::TextDomain::OO
perl -MCPAN -e shell install Locale::TextDomain::OO
For more information on module installation, please visit the detailed CPAN module installation guide.