PHP Classes

String Loader: Get application translation from XML or INI files

Recommend this page to a friend!
     
  Info   Example   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: 197 All time: 8,512 This week: 560Up
Version License PHP version Categories
string-loader 1.1MIT/X Consortium ...5.0Localization, PHP 5
Description 

Author

This class can get application translation from XML or INI files.

It can parse a XML or a INI file with definition of application text strings for a given language.

The class can return the translation of a given application text string to the selected language.

Picture of Ettore Moretti
  Performance   Level  
Name: Ettore Moretti is available for providing paid consulting. Contact Ettore Moretti .
Classes: 12 packages by
Country: Italy Italy
Age: ???
All time rank: 107541 in Italy Italy
Week rank: 21 Up1 in Italy Italy Up
Innovation award
Innovation award
Nominee: 3x

Example

<?php
require_once 'Res/S.php';
$S=new S('it');

print_r($S->string('test'));


  Files folder image Files (7)  
File Role Description
Files folder imageRes (1 file, 1 directory)
Accessible without login Plain text file exampleUse.php Example example use
Accessible without login Plain text file LICENSE Lic. Auxiliary data

  Files folder image Files (7)  /  Res  
File Role Description
Files folder imagestring (2 directories)
  Plain text file S.php Class Class source

  Files folder image Files (7)  /  Res  /  string  
File Role Description
Files folder imageen (2 files)
Files folder imageit (2 files)

  Files folder image Files (7)  /  Res  /  string  /  en  
File Role Description
  Accessible without login Plain text file en_EN.ini Data Auxiliary data
  Accessible without login Plain text file en_EN.xml Data Auxiliary data

  Files folder image Files (7)  /  Res  /  string  /  it  
File Role Description
  Accessible without login Plain text file it_IT.ini Data Auxiliary data
  Accessible without login Plain text file it_IT.xml Data Auxiliary data

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  
 100%
Total:197
This week:0
All time:8,512
This week:560Up