Hyper::Translator - abstract base class for all translator classes


Back to Top


NAME

Hyper::Translator - abstract base class for all translator classes

Back to Top


VERSION

This document describes Hyper::Translator 0.01

Back to Top


SYNOPSIS

    package Hyper::Translator::Sample;
    use Class::Std::Storable;
    use base qw(Hyper::Translator);
    sub translate {
        my $self  = shift;
        my $value = shift;
        my $translated_value = ...;
        return $translated_$value;
            }
    1;

Back to Top


DESCRIPTION

Provides basic features for translators in the Hyper Framework.

Back to Top


SUBROUTINES/METHODS

translate

If you create a new translator you have to implement this method. If translation is required (eg. in templates) this method is called with the params $value and $arg_ref. $arg_ref is used for passing Locale::Maketext params.

init

This method is called to initialize your translator. (optional)

Back to Top


DIAGNOSTICS

Back to Top


CONFIGURATION AND ENVIRONMENT

Back to Top


DEPENDENCIES

Back to Top


INCOMPATIBILITIES

Back to Top


BUGS AND LIMITATIONS

Back to Top


RCS INFORMATIONS

Last changed by

$Author: ac0v $

Id

$Id: Translator.pm 317 2008-02-16 01:52:33Z ac0v $

Revision

$Revision: 317 $

Date

$Date: 2008-02-16 02:52:33 +0100 (Sa, 16 Feb 2008) $

HeadURL

$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Translator.pm $

Back to Top


AUTHOR

Andreas Specht <ACID@cpan.org>

Back to Top


LICENSE AND COPYRIGHT

Copyright (c) 2007, Andreas Specht <ACID@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.

Back to Top

 Hyper::Translator - abstract base class for all translator classes