This class allows to implement multiple languages to a Web site developed in PHP Language.
Language class detects language browser automatically and display the Web site content in the correct language, or in a default language, also allows to implement a system to change the language.
It checks the HTTP request User-Agent and Accept-Language headers to determine the user preferred language.
The class can also load PHP scripts with locale text definitions for the user preferred language. These locale definitions are returned as an associative array. |