NAME

HTML::Template::Compiled::Plugin::I18N::DefaultTranslator - an extremly simple translater class for the HTC plugin I18N

$Id: DefaultTranslator.pm 49 2009-07-12 20:27:59Z steffenw $

$HeadURL: https://htc-plugin-i18n.svn.sourceforge.net/svnroot/htc-plugin-i18n/trunk/lib/HTML/Template/Compiled/Plugin/I18N/DefaultTranslator.pm $

VERSION

0.01_01

SYNOPSIS

DESCRIPTION

This module is very useful to run the application before the translator module has finished.

The string output is human readable. \, ' and " are quoted to have no problems at JavaScript strings.

SUBROUTINES/METHODS

method translate

Possible hash keys are context, text, plural, maketext, quantity, gettext and formatter.

$string
    = HTML::Template::Compiled::Plugin::I18N::DefaultTranslator->translate({
        text => 'text',
        ...
    });

DIAGNOSTICS

none

CONFIGURATION AND ENVIRONMENT

none

DEPENDENCIES

none

INCOMPATIBILITIES

not readable by a parser

BUGS AND LIMITATIONS

not known

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

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