Valiant

 view release on metacpan or  search on metacpan

lib/Valiant/Translation.pm  view on Meta::CPAN

=head1 METHODS

=head2 i18n_class

The class used for translation.  Defaults to C<Valiant::I18N>.  Override this
method in your class to use a different translation backend.

=head2 i18n_scope

The top level namespace under which translation keys are looked up.  Defaults
to C<valiant>.  Override to relocate your translations.

=head2 human_attribute_name ($attribute, \%options)

Returns a human readable, localized version of an attribute name, used when
building full error messages.  Looks for translations under
C<< {i18n_scope}.attributes.{model}.{attribute} >> across the class hierarchy,
falling back to any C<default> tags passed in C<\%options> and finally to a
title cased version of the attribute name itself (with any trailing C<_id>
removed and underscores turned into spaces).



( run in 0.645 second using v1.01-cache-2.11-cpan-84de2e75c66 )