HTTP Locale: Get the idiom and country of the user browser

Recommend this page to a friend!
  Info   Screenshots   View files (3)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,016 All time: 3,571 This week: 339
Version License PHP version Categories
httplocale 1.0Artistic License4.0.6Localization, HTTP
Description Author

This is a very simple class that can determine the idiom and country of the user browser.

It analyzes the HTTP request header Accept-Language and parses it to obtain the idiom and the country used in the browser accessing the current script page.

The idiom and the country are returned in class variables.

Picture of Alexander Skakunov
Name: Alexander Skakunov is available for providing paid consulting. Contact Alexander Skakunov .
Classes: 9 packages by
Country: Ukraine Ukraine
Age: 38
All time rank: 232 in Ukraine Ukraine
Week rank: 694 9 in Ukraine Ukraine
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

  • example.png
File Role Description
HTTPLocale.class.php Class It makes all job
index.php Example Usage example
php_localizator.php Example example for gettext

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,571
This week:339

For more information send a message to info at phpclasses dot org.