Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.335.147 Times

I18N::AcceptLanguage 1.04

  Date Added: June 16, 2010  |  Visits: 941

I18N::AcceptLanguage

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



I18N::AcceptLanguage is a Perl module that matches language preference to available languages. SYNOPSIS use I18N::AcceptLanguage; my $supportedLanguages = [( en-us, fr )]; my $acceptor = I18N::AcceptLanguage->new(); my $language = $acceptor->accepts($ENV{HTTP_ACCEPT_LANGUAGE}, $supportedLanguages); I18N::AcceptLanguage matches language preference to available languages per rules defined in RFC 2616, section 14.4: HTTP/1.1 - Header Field Definitions - Accept-Language. PUBLIC METHODS accepts( CLIENT_PREFERENCES, SUPPORTED_LANGUAGES ) Returns the highest priority common language between client and server. If no common language is found, the defaultLanguage is returned. If defaultLanuage is also not set, an empty string is returned. The method expects two arguments: CLIENT_PREFERENCES A string in the same format defined in RFC 2616, quoted here: 1#( ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" ) [ "" "q" "=" qvalue ] ) Examples: da, en-gb;q=0.8, en;q=0.7 en-us, ja, * SUPPORTED_LANGUAGES A reference to a list of language ranges supported by the server. new( [ OPTIONS ] ) Returns a new I18N::AcceptLanguage object. The method accepts the following key/value pair options: debug A boolean set to either 0 or 1. When set to 1, debug messages will be printed to STDOUT. The value of debug defaults to 0. defaultLanguage A string representing the servers default language choice. The value of defaultLanguage defaults to an empty string. strict A boolean set to either 0 or 1. When set to 1, the software strictly conforms to the protocol specification. When set to 0, the software will perform a secondary, aggressive language match regardless of country (ie, a client asking for only en-gb will get back en-us if the server does not accept en-gb or en but does accept en-us). The last matching language in the supported languages list will be chosen. The value of strict defaults to 1..

Requirements: No special requirements
Platforms: Linux
Keyword: Acceptlanguage Available Language Language Preference Languages Libraries Matches Perl Module Preference Programming
Users rating: 0/10

License: Freeware Size: 9.22 KB
USER REVIEWS
More Reviews or Write Review


I18N::ACCEPTLANGUAGE RELATED
Libraries  -  Language::Zcode::Parser 0.8
Language::Zcode::Parser is a Perl module that reads and parses a Z-code file into a big Perl hash. SYNOPSIS # Create a Pure Perl Parser my $pParser = new Language::Zcode::Parser "Perl"; # If they didnt put ".z5" at the end, find it anyway...
296.96 KB  
Libraries  -  Language::Basic::Variable 1.44
Language::Basic::Variable is a Perl module to handle parsing and implementing BASIC variables. SYNOPSIS See Language::Basic for the overview of how the Language::Basic module works. This pod page is more technical. There are two sorts of...
52.22 KB  
Libraries  -  Hub::Perl::Language 04.00.012
Hub::Perl::Language is a Perl module that contains a lot of methods. PUBLIC METHODS sizeof Integer size of hashes, arrays, and scalars Usage: sizeof %hash Usage: sizeof @array Usage: sizeof $scalar_ref Usage: sizeof $scalar Usage:...
143.36 KB  
Libraries  -  Locale::Object::Language 0.75
Locale::Object::Language Perl module contains language information objects. Locale::Object::Language allows you to create objects containing information about languages such as their ISO codes, the countries theyre used in and so on. SYNOPSIS...
47.1 KB  
Libraries  -  Language::Logo 1.000
Language::Logo Perl module is an implementation of the Logo programming language. SYNOPSIS use Language::Logo; my $lo = new Logo(update => 20); $lo->command("setxy 250 256"); $lo->command("color yellow"); $lo->command("pendown"); #...
16.38 KB  
Libraries  -  Apache::AxKit::Language::SAXMachines 1.6.2
Apache::AxKit::Language::SAXMachines is a Perl module that can transform Content With SAX Filters. SYNOPSIS # add the style processor mapping AxAddStyleMap application/x-saxmachines Apache::AxKit::Language::SAXMachines # add the processor...
307.2 KB  
Libraries  -  Apache::AxKit::Language::XSP 1.6.2
Apache::AxKit::Language::XSP is a Perl module with eXtensible Server Pages. SYNOPSIS Time::Object < title...
307.2 KB  
Libraries  -  SQL::Routine::Language 0.70.3
SQL::Routine::Language is a Perl module for what language or grammar SQL::Routine speaks. SQL::Routine contains SQL schemas and queries, represented as a tree of atomic tokens; it is structurally like an abstract syntax tree or an XML DOM, but...
174.08 KB  
Libraries  -  PerlPoint::Generator::LANGUAGE::Formatter 0.45
PerlPoint::Generator::LANGUAGE::Formatter is a Perl module that generates Formatter formatted LANGUAGE files. METHODS new() Parameters: class The class name. Returns: the new object..
419.84 KB  
Libraries  -  Language::Zcode::Runtime::State 0.8
Language::Zcode::Runtime::State is a Perl module to handle saving, restoring, etc. the game state. restoring Getter/setter: currently in the process of restoring or not? start_machine Start executing the Z-machine. In the normal case...
296.96 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB