Catalyst-Plugin-I18N-Request
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/I18N/Request.pm view on Meta::CPAN
=head2 localize_path ( $path )
Localizes all components of the provided path.
=cut
sub localize_path {
my ($c, $path) = @_;
return undef unless defined $path;
return join '/', map { $c->localize_path_component( $_ ) } split m!/!, $path;
}
=head2 delocalize_path ( $path )
Delocalizes all components of the provided path.
=cut
sub delocalize_path {
my ($c, $path) = @_;
return undef unless defined $path;
return join '/', map { $c->delocalize_path_component( $_ ) } split m!/!, $path;
}
=head2 transform_parameters ( \%parameters, $transformer )
Transforms the given parameter names using the given transformer. The
transformer may be one of the following:
=over 4
=item * A CODE reference which accepts the context object as the first
( run in 1.171 second using v1.01-cache-2.11-cpan-71847e10f99 )