PHP Classes

Language System: Let the user choose the application idiom

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 578 All time: 5,333 This week: 455Up
Version License PHP version Categories
language-class 1Free for non-comm...3.0Localization, PHP 5
Description 

Author

This class can be used to let the user choose the application idiom.

It can scan a directory with files with texts to support different idioms and display a form select input to let the user choose the idiom he prefers from a list available idioms.

The chosen idiom can be stored in a cookie to let the class load the respective application idiom texts.

Picture of Stanescu Mihai
Name: Stanescu Mihai <contact>
Classes: 1 package by
Country: Romania Romania
Age: ???
All time rank: 310558 in Romania Romania
Week rank: 195 Up3 in Romania Romania Up

  Files folder image Files (12)  
File Role Description
Files folder imagelanguages (2 files, 2 directories)
Accessible without login Plain text file config.php Conf. Config file
Accessible without login Plain text file example.php Example Just an example of how to use the class
Accessible without login Plain text file language.class.php Class Class file
Accessible without login Plain text file language.php Example Select language function

  Files folder image Files (12)  /  languages  
File Role Description
Files folder imageEnglish-en (3 files)
Files folder imageFrench-fr (3 files)
  Accessible without login Plain text file index.php Aux. Redirects to the main script
  Accessible without login Plain text file readme.txt Data Documentation about language folders

  Files folder image Files (12)  /  languages  /  English-en  
File Role Description
  Accessible without login Plain text file content.php Appl. Content of english language
  Accessible without login Plain text file header.php Conf. Header of english language
  Accessible without login Plain text file index.php Aux. Redirects to the main script

  Files folder image Files (12)  /  languages  /  French-fr  
File Role Description
  Accessible without login Plain text file content.php Conf. Content of french language
  Accessible without login Plain text file header.php Conf. Header of french language
  Accessible without login Plain text file index.php Aux. Redirects to the main script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:578
This week:0
All time:5,333
This week:455Up