++ed by:
ROMANF

1 PAUSE user
2 non-PAUSE users.

Steffen Winkler
and 1 contributors

NAME

Locale::TextDomain::OO::Translator - Translator class

$Id: Translator.pm 582 2015-04-13 19:55:50Z steffenw $

$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Translator.pm $

VERSION

1.019

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

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

Moo

MooX::StrictConstructor

MooX::Types::MooseLike::Base

Carp

Locale::TextDomain::OO::Singleton::Lexicon

Locale::TextDomain::OO::Util::JoinSplitLexiconKeys

namespace::autoclean

INCOMPATIBILITIES

not known

BUGS AND LIMITATIONS

not known

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

Copyright (c) 2013 - 2015, 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.