Login   Register  
PHP Classes
elePHPant
Icontem

Language Replace: Replace strings with language translations

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-03-22 (5 months ago) RSS 2.0 feedNot enough user ratingsTotal: 275 This week: 15All time: 6,712 This week: 86Up
Version License PHP version Categories  
language-replace 1.0GNU General Public Lice...5.3Localization, PHP 5, Templates
Description Author  

This class can replace strings in a document with language translations.

It can load language translations for a given idiom from a PHP script with all the translations in an array.

The class can take a given string and return the respective translation for the specified language.

The class can also take a HTML document and replace certain template marks with the respective translation strings.

Picture of Unay Santisteban
Name: Unay Santisteban <contact>
Classes: 7 packages by
Country: Spain Spain
Age: 25
All time rank: 119323 in Spain Spain
Week rank: 7 Up3 in Spain Spain Up

  Files folder image Files  
File Role Description
Files folder imagelanguages (2 files)
Accessible without login Plain text file example-template.html Data example
Accessible without login Plain text file example-translate-en.php Example example
Accessible without login Plain text file example-translate-es.php Example example
Accessible without login Plain text file example-translate-template.php Example example
Plain text file languages.class.php Class Class source
Accessible without login Plain text file LICENSE Lic. licence
Accessible without login Plain text file README.md Data readme

  Files folder image Files  /  languages  
File Role Description
  Accessible without login Plain text file en_GB.php Aux. Auxiliary script
  Accessible without login Plain text file es_ES.php Aux. Auxiliary script

 Version Control Reuses Unique User Downloads Download Rankings  
 100%1Total:275All time:6,712
 This week:15This week:86Up