PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 195 This week: 1All time: 8,524 This week: 560Up
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  
Name: Zhao <contact>
Classes: 3 packages by
Country: Japan Japan
Age: 47
All time rank: 22909 in Japan Japan
Week rank: 411 Up1 in Japan Japan Up
Innovation award
Innovation award
Nominee: 1x

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

  Files folder image Files  /  rbib  
File Role Description
Files folder imageutil (1 directory)

  Files folder image Files  /  rbib  /  util  
File Role Description
Files folder imagei18n (1 file)

  Files folder image Files  /  rbib  /  util  /  i18n  
File Role Description
  Plain text file Language.php Class Language class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:195
This week:1
All time:8,524
This week:560Up