NAME

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

$Id: Translator.pm 651 2017-05-31 18:10:43Z steffenw $

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

VERSION

1.027

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

Carp

Class::Load

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

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

Moo

MooX::StrictConstructor

MooX::Types::MooseLike::Base

namespace::autoclean

Locale::TextDomain::OO::Role::Logger

INCOMPATIBILITIES

not known

BUGS AND LIMITATIONS

not known

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

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