Dancer-Plugin-SimpleLexicon

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN


  var_name
    The name of the Dancer `var' to read when determining the current
    language.

  default
    The value of the default language. If not specified, and the looking up
    in the above values fails, no translation will be done.

  encoding
    The string returned by maketext will be decoded using this encoding. By
    default is `UTF-8'.

    To disable the decoding, set it to `raw'.

EXPORT
  l($string, @args)
    Return the translation for $string. If optional arguments are provided,
    pass the string to sprintf with the arguments.

  language

lib/Dancer/Plugin/SimpleLexicon.pm  view on Meta::CPAN


The name of the Dancer C<var> to read when determining the current language.

=head2 default

The value of the default language. If not specified, and the looking up
in the above values fails, no translation will be done.

=head2 encoding

The string returned by maketext will be decoded using
this encoding. By default is C<UTF-8>.

To disable the decoding, set it to C<raw>.

=head1 EXPORT

=head2 l($string, @args)

Return the translation for $string. If optional arguments are
provided, pass the string to sprintf with the arguments.



( run in 1.350 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )