PHP Classes

I18N class: Get translation texts from different containers

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
StarStarStar 49%Total: 1,517 All time: 2,584 This week: 560Up
Version License Categories
i18nclass 1.0.0GNU General Publi...Localization
Description 

Author

This package can be used to retrieve texts for internationalized applications.

The translation texts for each of the supported languages can be retrieved from different types of containers. Currently the supported container types that are: text files, SQL databases and DBM flat file databases.

It supports using variables in the localized texts, which may be processed during the translation.

The requests to retrieve translation texts are validated before attempting to fetch them.

Picture of Alan H. Lake
Name: Alan H. Lake <contact>
Classes: 3 packages by
Country: Finland Finland
Age: 83
All time rank: 11603 in Finland Finland
Week rank: 227 Up1 in Finland Finland Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (28)  
File Role Description
Files folder imageonefile (3 files)
Files folder imageseveralfiles (8 files)
Files folder imagetools (5 files)
Accessible without login Plain text file author.txt Data Note regarding the author
Accessible without login Plain text file changelog.txt Data Notes changes from project from which this is derived.
Accessible without login Plain text file cnx_i18n.inc.php Conf. Container for database connection variables
Accessible without login Plain text file example_1.php Example Test script for single translation file
Accessible without login Plain text file example_several.php Example Example of usage with several files
Accessible without login Plain text file example_SQL.php Example Example with usage of SQL data
Plain text file i18n.class.php Class Core class - extracts I18N string given Identifier & Locale
Accessible without login HTML file i18n_php-manual.html Doc. Project Manual
Plain text file langTable.class.php Class Code to maintain language data in SQL
Accessible without login Plain text file license.txt Lic. GNU GPL, version 2
Plain text file rfc1766.class.php Class Class to validate Locale codes and retrieve associated names
Accessible without login Plain text file thanks.txt Data Acknowledgement to authors of work from which this is derived

  Files folder image Files (28)  /  onefile  
File Role Description
  Accessible without login Plain text file en.php Data Sample single file translation data for example_1
  Accessible without login Plain text file en_US.php Data Sample single file translation data for example_1
  Accessible without login Plain text file sv.php Data Data in Swedish

  Files folder image Files (28)  /  severalfiles  
File Role Description
  Accessible without login Plain text file en_US.a.php Data Sample single file translation data
  Accessible without login Plain text file en_US.e.php Data Test script for several file translation example
  Accessible without login Plain text file en_US.s.php Data Sample multiple files translation data
  Accessible without login Plain text file en_US.y.php Data Sample multiple files translation data
  Accessible without login Plain text file sv.a.php Data Test script for several file translation example
  Accessible without login Plain text file sv.e.php Data Test script for several file translation example
  Accessible without login Plain text file sv.s.php Data Test script for several file translation example
  Accessible without login Plain text file sv.y.php Data Test script for several file translation example

  Files folder image Files (28)  /  tools  
File Role Description
  Accessible without login Plain text file check_i18n_defs.php Appl. Program to validate I18N code in programs and in Locale files/table
  Accessible without login Plain text file i18n_conversion.php Appl. Program to convert Locale data from one format to another
  Accessible without login Plain text file i18n_dbm_editor.php Appl. Program to edit DBM data
  Accessible without login Plain text file i18n_tools.inc.php Aux. Functions specific to I18N used by other code
  Accessible without login Plain text file useful.php Aux. Functions used by other code

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,517
This week:0
All time:2,584
This week:560Up
 User Ratings  
 
 All time
Utility:60%StarStarStarStar
Consistency:60%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:60%StarStarStarStar
Tests:-
Videos:-
Overall:49%StarStarStar
Rank:2896