PHP Classes

i18n: Get translations texts from XML files

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: 1,347 All time: 2,880 This week: 455Up
Version License Categories
i18n 1.0GNU General Publi...XML, Localization, PHP 5
Description 

Author

This class can be used to get texts for use in an internationalized application using XML files.

The class can parse the respective XML file for the currently chosen idiom and retrieve texts given a path specification of the XML tags that enclose the requested texts.

The translation texts may contain special variable placeholders that may be replaced by parameter values.

Picture of Julien PACHET
Name: Julien PACHET <contact>
Classes: 15 packages by
Country: France France
Age: 47
All time rank: 301 in France France
Week rank: 178 Down9 in France France Down

  Files folder image Files (5)  
File Role Description
Plain text file class_i18n.inc.php Class class file in php5
Accessible without login Plain text file example.php Example example script
Accessible without login Plain text file fr_example.php.xml Data xml text in french
Accessible without login Plain text file outils_xml.inc.php Aux. xml functions
Accessible without login Plain text file uk_example.php.xml Data xml text in english

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:1,347
This week:0
All time:2,880
This week:455Up