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: 191 All time: 8,472 This week: 315Up
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: 45
All time rank: 22869 in Japan Japan
Week rank: 588 Up3 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:191
This week:0
All time:8,472
This week:315Up
For more information send a message to info at phpclasses dot org.