PHP Classes

Parse the User Language: Determine the language supported by the browser

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 195 All time: 8,536 This week: 206Up
Version License PHP version Categories
util 1.0GNU Lesser Genera...5Localization, HTTP, PHP 5
Description 

Author

This class can determine the language supported by the browser.

It can check the value of the HTTP GET request value or cookie value named hl.

If none of those values are set, the class may check the HTTP Accept-language header to determine the languages supported by the user browser.

The class can also return the language name if it its either English, Chinese or Japanese.

Picture of Zhao
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

 

  Files folder image Files (1)  
File Role Description
Files folder imagerbib (1 directory)

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:195
This week:0
All time:8,536
This week:206Up