CatalystX::I18N::TraitFor::Response - Adds the Content-Language header to the Catalyst::Response object
package MyApp::Catalyst; use CatalystX::RoleApplicator; use Catalyst qw/MyPlugins CatalystX::I18N::Role::Base/; __PACKAGE__->apply_response_class_roles(qw/CatalystX::I18N::TraitFor::Response/);
This role simply adds the 'Content-Language' header to your response.
$c->response->content_language('de_AT','en');
Accepts a list of languages. This header will be automatically set if you use it in conjunction with the CatalystX::I18N::Role::Base role.
Catalyst::Respone
Maroš Kollár CPAN ID: MAROS maros [at] k-1.com L<http://www.k-1.com>
To install CatalystX::I18N, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::I18N
CPAN shell
perl -MCPAN -e shell install CatalystX::I18N
For more information on module installation, please visit the detailed CPAN module installation guide.