NAME

CatalystX::I18N::TraitFor::ViewTT - Adds I18N filters and vmethods to a TT view

SYNOPSIS

# In your view
package MyApp::View::TT; 
use Moose;
extends qw(Catalyst::View::TT);
with qw(CatalystX::I18N::TraitFor::ViewTT);


# In your TT template
[% 22 | number('number') %]

[% mylist.lsort().join(', ') %]

[% 'Hello %1!' | maketext(name) %]

DESCRIPTION

Filters

number

Formats a number with the current locale settings. You need to have the CatalystX::I18N::Role::NumberFormat role loaded in Catalyst.

The following formats are available

  • price

  • number

  • bytes

  • negative

  • picture

maketext

Returns the translation for the given string.

You need to have the CatalystX::I18N::Role::Maketext role loaded in Catalyst.

VMethods

lsort

Locale aware collation. You need to have the CatalystX::I18N::Role::Collate role loaded in Catalyst.

SEE ALSO

CatalystX::I18N::Role::NumberFormat, CatalystX::I18N::Role::Collate, CatalystX::I18N::Role::Maketext and Catalyst::View::TT

AUTHOR

Maroš Kollár
CPAN ID: MAROS
maros [at] k-1.com

L<http://www.revdev.at>

1 POD Error

The following errors were encountered while parsing the POD:

Around line 170:

Non-ASCII character seen before =encoding in 'Maroš'. Assuming UTF-8