PHP Classes


Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Language Selector class   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Language Selector class
Get texts for the current language from globals
Author: By
Last change: update readme + fix type in language string file
Date: 5 years ago
Size: 778 bytes


Class file image Download

PHP Language Selector class

This package Can help create website support multi-language.

This package support 1. Language string/code seperate form html/php. 2. If language string/key not found in language file it return key that you supply/provide. 3. Require String class


This package can get texts for the current language from globals. It can set the current application language to a certain language by specifying the associated language identifier name. The class can load the texts for the specified language from scripts that are loaded dynamically. Those scripts contain code that set a global variable with an array of texts which defines the translation of each string to the language that is set.