Maroš Kollár > CatalystX-I18N > CatalystX::I18N::TraitFor::Response

Download:
CatalystX-I18N-1.13.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

CatalystX::I18N::TraitFor::Response - Adds the Content-Language header to the Catalyst::Response object

SYNOPSIS ^

 package MyApp::Catalyst;
 
 use CatalystX::RoleApplicator;
 use Catalyst qw/MyPlugins 
    CatalystX::I18N::Role::Base/;
 
 __PACKAGE__->apply_response_class_roles(qw/CatalystX::I18N::TraitFor::Response/);

DESCRIPTION ^

This role simply adds the 'Content-Language' header to your response.

METHODS ^

content_language

 $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.

SEE ALSO ^

Catalyst::Respone

AUTHOR ^

    Maroš Kollár
    CPAN ID: MAROS
    maros [at] k-1.com
    
    L<http://www.k-1.com>
syntax highlighting: