PHP Classes

LanguageSys: Use multi-idiom texts with pre-compilation support

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
StarStarStarStar 69%Total: 1,305 All time: 2,959 This week: 560Up
Version License Categories
languagesys 1.0GNU General Publi...Localization
Description 

Author

LanguageSys is class for use in internationalized applications.
It handles the access to language files with the definition of texts for each supported idiom. These language files are in the .ini format.
It is also possible to pre-compile the definitions of language files to reduce the processing time.
This class approach is highly object oriented, so it makes the language definitions accessible as variables of the class itself.
It comes with a system to retrieve a list of all the available languages in
a given directory where the language files are located.
Language identifiers conform to RFC 1766 recommendations.
LanguageSys is also aviable for some other programming languages, eg. for Python. For more details see the homepage.

In german:
Diese Klasse ist dazu da, ein Programm in verschiedenen Sprachen bereitzustellen.
Sie übernimmt dabei das Auslesen von Sprachdateien, welche im Stil einer INI Datei aufgebaut sind.
Es ist auch möglich, die INI Dateien vorzukompilieren (precompiling), um so die Geschwindigkeit des Abarbeitens zu erhöhen.
Dieses System setzt auf hohe Objektorientiertheit, so werden alle ausgelesenen aliase als member-Variablen der eigenen Klasse zur Verfügung gestellt.
Des weiteren beinhaltet diese Klasse ein System, um anhand des Verzeichnisses mit den Sprachdateien eine Liste zu erstellen, die wiedergibt, welche Sprachen verfügbar sind.
Die Sprachen werden nach RFC1766 unterschieden.
LanguageSys ist auch für einige andere Programmiersprachen verfügbar, zum Beispiel für Python. Mehr details hierzu auf der Homepage.

Picture of MC Breit
Name: MC Breit <contact>
Classes: 7 packages by
Country: Germany Germany
Age: 124
All time rank: 31114 in Germany Germany
Week rank: 192 Up13 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (27)  
File Role Description
Files folder imagedoc (2 directories)
Files folder imagelang (6 files)
Accessible without login Plain text file changelog.txt Doc. The changelog of LanguageSys
Accessible without login Plain text file example.php Example Example script (For use in a webenviroment)
Plain text file LanguageSys.class.php Class The main class
Accessible without login Plain text file precompile.php Aux. A simple script to precompile your language files
Plain text file rfc1766.class.php Class The rfc1766 class which is used to validate the language tags. (Required by the main class!!)

  Files folder image Files (27)  /  doc  
File Role Description
Files folder imagede (8 files)
Files folder imageen (8 files)

  Files folder image Files (27)  /  doc  /  de  
File Role Description
  Accessible without login HTML file functions.htm Doc. German function reference
  Accessible without login HTML file index.html Doc. German documentation index
  Accessible without login HTML file inline.css Doc. Stylesheet for the docs
  Accessible without login HTML file lang_files.htm Doc. German languae file reference
  Accessible without login HTML file licence.htm Lic. License therms
  Accessible without login HTML file migration.htm Doc. German informations about migration from previous versions
  Accessible without login HTML file precompile.htm Doc. German introducion for precompiling the lang files
  Accessible without login HTML file support.htm Doc. German support informations

  Files folder image Files (27)  /  doc  /  en  
File Role Description
  Accessible without login HTML file functions.htm Doc. English functions reference
  Accessible without login HTML file index.html Doc. English documentation index
  Accessible without login HTML file inline.css Doc. Stylesheet for the docs
  Accessible without login HTML file lang_files.htm Doc. English language file reference
  Accessible without login HTML file licence.htm Lic. License therms
  Accessible without login HTML file migration.htm Doc. English informations about migration from previous versions
  Accessible without login HTML file precompile.htm Doc. English introducion to precompile the lang files
  Accessible without login HTML file support.htm Doc. English support informations

  Files folder image Files (27)  /  lang  
File Role Description
  Accessible without login Plain text file de-AT.ini Example Example Language file for example.php (Redirect)
  Accessible without login Plain text file de-CH.ini Example Example Language file for example.php (Redirect)
  Accessible without login Plain text file de-DE.ini Example Example Language file for example.php
  Accessible without login Plain text file de-DE.lng Example Example of a precompiled language file for example.php
  Accessible without login Plain text file en-EN.ini Example Example Language file for example.php
  Accessible without login Plain text file en-US.ini Example Example Language file for example.php (Redirect)

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
Downloadlanguagesys-2006-09-01.zip 48KB
Downloadlanguagesys-2006-09-01.tar.gz 41KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
RFC 1766 Download .zip .tar.gz This class is used to validate the language tags used by LanguageSys Required
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,305
This week:0
All time:2,959
This week:560Up
User Ratings User Comments (1)
 All time
Utility:89%StarStarStarStarStar
Consistency:78%StarStarStarStar
Documentation:82%StarStarStarStarStar
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:69%StarStarStarStar
Rank:343
 
Excellent
15 years ago (kishore kumar)
80%StarStarStarStarStar