Apache-Language
    
    
  
  
  
view release on metacpan or search on metacpan
Language.pod view on Meta::CPAN
=head1 NAME
Apache::Language - Perl transparent language support for Apache modules and mod_perl scripts
=head1 SYNOPSIS
  In YourModule.pm:
  
  sub handler {
  my $r = shift;
  use Apache::Language;
  my $lang = Apache::Language->new($extra_args);
  #$lang is now a hash ref that will automacigally pick the right language
    
  
  
  Language.pod view on Meta::CPAN
The goal of this module is to provide a simple way for mod_perl module writers
to include support for multiple language requests.
This is version 0.03, and it's a complete rewrite from the ground-up of the 
previous release.  It's still backward-compatible with the other releases, but
now it's much more advanced.
An Apache::Language object acts like a language-aware hash.  It stores key/language/values
triplets. Using the Accept-Language: field sent by the web-client, it can pick the best
fit language for that specific client.  It's usage is transparent and should prove 
to be quite convenient (and hopefully, efficient).
The method used to store/fetch information is now completely modular and will allow
easy creation of new storage methods thru a simple API (see the API section).
=head2 BASIC USAGE EXAMPLE
This section will describe the easiest way to start using Apache::Language.
Apache::Language is used to create a hash that will contain key/language/value triplets.  Say you are
    
  
  
  
( run in 0.474 second using v1.01-cache-2.11-cpan-a1d94b6210f )