Intl like gettext: Translate texts from arrays, PO files or JSON

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 69%Total: 160 All time: 8,727 This week: 248Up
Version License PHP version Categories
intl 1.5.4The PHP License5Localization, PHP 5, Templates
Description Author

This class can translate application texts from arrays, PO gettext or JSON.

It can auto detect the user preferred languages and load translation files in JSON format, PHP scripts with arrays of strings, or using gettext extension to load PO translation files.

It can also format strings with placeholders %named_value to translated string 'named_value'.

The class can also plurals from gettext in po file or array.

Picture of Lukasz Józwiak
  Performance   Level  
Name: Lukasz Józwiak <contact>
Classes: 4 packages by
Country: Poland Poland
Age: 41
All time rank: 263163 in Poland Poland
Week rank: 790 Up19 in Poland Poland Up

  Intl on php 5.2External page  

Open in a separate window

  Files folder image Files  
File Role Description
Files folder imagelanguages (4 files)
Plain text file Intl.php Class Simple strings translation class like gettext with plural
Accessible without login Plain text file test.php Example usage example

  Files folder image Files  /  languages  
File Role Description
  Accessible without login Plain text file pl.json Data json plural strings
  Accessible without login Plain text file pl.php Conf. polish strings in php
  Accessible without login Plain text file pl.po Data Polish po getext file
  Accessible without login Plain text file ru.json Data rusian strings in json

 Version Control Unique User Downloads Download Rankings  
 0%
Total:160
This week:0
All time:8,727
This week:248Up
User Ratings User Comments (1)
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:69%StarStarStarStar
Rank:462
 
nice
3 years ago (muabshir)
70%StarStarStarStar
 

For more information send a message to info at phpclasses dot org.