Catalyst-Plugin-I18N-PathPrefix
view release on metacpan or search on metacpan
Returns a data structure that contains all the necessary data (language
code, name, URL of the same page) for displaying a language switch
widget on the page.
The data structure is a hashref with one key for each valid language
code (see the "valid_languages" config option) (in all-lowercase format)
and the value is a hashref that contains the following key-value pairs:
name
The localized (translated) name of the language. (The actual msgid
used in "$c->loc()" is the English name of the language, returned by
"name" in I18N::LangTags::List.)
url The URL of the equivalent of the current page in that language (ie.
the language prefix replaced).
You can find an example TT2 HTML template for the language switch
included in the distribution.
SEE ALSO
lib/Catalyst/Plugin/I18N/PathPrefix.pm view on Meta::CPAN
page.
The data structure is a hashref with one key for each valid language code (see
the L</valid_languages> config option) (in all-lowercase format) and the value
is a hashref that contains the following key-value pairs:
=over
=item name
The localized (translated) name of the language. (The actual msgid used in C<<
$c->loc() >> is the English name of the language, returned by
L<I18N::LangTags::List/name>.)
=item url
The URL of the equivalent of the current page in that language (ie. the
language prefix replaced).
=back
( run in 1.984 second using v1.01-cache-2.11-cpan-5735350b133 )