Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    Apache::Language 0.14

    Download button

    No screenshots available
    Downloads: 449  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Philippe M. Chiasson | More programs
    Perl Artistic License / FREE
    October 12th, 2006, 11:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Apache::Language description

    A Perl transparent language support for Apache modules and mod_perl scripts.

    Apache::Language is a Perl transparent language support for Apache modules and mod_perl scripts.

    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

    print $lang->{'Error01'} if exists $lang->{'Error01'};

    foreach ( keys %$lang ){
    print "$_ is " . $lang->{$_};
    }

    [...]
    }

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

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    transparent language | Apache modules | Perl module | Apache | Perl | transparent

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM