PHP Classes

Language Class: Get application translation texts from PHP scripts

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
StarStar 35%Total: 887 All time: 3,979 This week: 455Up
Version License PHP version Categories
language-by-tag 1.0Freeware5.0Localization, PHP 5
Description 

Author

This class can get application translation texts from PHP scripts.

It can determine the current user language by either checking a GET request variable, a cookie or a default configuration value.

The class can load a language script for the current user language. The script defines an associative array with all the text strings needed for your application.

The language texts can be retrieved by accessing class variables with the text names.

Picture of Orkhan
Name: Orkhan <contact>
Classes: 2 packages by
Country: Azerbaijan Azerbaijan
Age: 33
All time rank: 15313 in Azerbaijan Azerbaijan
Week rank: 128 Up1 in Azerbaijan Azerbaijan Up

  Files folder image Files (7)  
File Role Description
Accessible without login Plain text file az.php Conf. Azerbaijani language tags
Plain text file config.php Class Config class (to read configs)
Accessible without login Plain text file en.php Conf. English language tags
Accessible without login Plain text file example.php Example Example
Plain text file language.php Class Main Class
Accessible without login Plain text file main.php Conf. Configs File
Accessible without login Plain text file ru.php Conf. Russian language tags

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:887
This week:0
All time:3,979
This week:455Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:50%StarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:35%StarStar
Rank:4122