NAME

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

$Id: Translator.pm 456 2014-01-05 16:29:05Z steffenw $

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

VERSION

1.000

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

namespace::autoclean

INCOMPATIBILITIES

not known

BUGS AND LIMITATIONS

not known

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

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