| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 1x | |||||||||||||||||||
| Classes of Mariano Iglesias | > | Internationalization and Localization | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | Related links | ||||||||
| Groups | ||
| XML | XML parsing and generation | View top rated classes | |
| Localization | Internationalization and translations | View top rated classes | |
| Databases | Database management, accessing and searching | View top rated classes |
| Innovation Award | ||
![]() July 2005 Number 5 Prize: One downloadable copy of Roadsend PHP Compiler |
To adapt an application that can be used by users of different countries it is necessary to present the application messages in the idioms spoken in those countries. Usually the solution is to load configuration files that contain the texts for each of the supported idioms. However, sometimes it is more convenient to store the translated texts in a database because it is easier to edit and make any changes immediately available to the applications. This class provides a generalized solution that provides the same interface to retrieve application localized texts independently from how the texts are stored. Manuel Lemos |
| User ratings | ||
| There are not enough user ratings to display for this class. |
| Applications that use this class | ||
| Related links | ||
| Link | Description |
|---|---|
| Codes for the representation of names of languages (Library of Congress) | ISO 639-1 is the alpha-2 code, used within the I18N package to identify languages by using a two letter code. |
| Official ISO list of countries and the corresponding ISO 3166-1 alpha-2 code elements | List of two letter country codes used within the I18N package for identifying locales within a language. |
| File | Role | Description |
|---|---|---|
| Example | An example script that uses a database connection as a string source. | |
| Class | Class that extends and implements methods in DatabaseConnectionManager and is used by the database.php example script. | |
| Class | This is an abstract class that provides the skeleton for the implementation of the class that will provide database connectivity to I18N. | |
| Class | Implementation of DataSource, that provides the database based approach to obtain elements. | |
| Class | Abstract class that all data sources should implement. | |
| Doc. | Documentation that tells how to install this script, and provides a description of how to use this package. | |
| Class | The XML parser used to parse the configuration file when using text source. It will use the DOM XML package (it is PHP5 compatible), or if it is not available, it will use PEAR's XML_Parser. | |
| Data | SQL script to insert some example data in the database. | |
| Example | This class presents an example of using the I18N package with text files as its source of data. | |
| Class | Implementation of DataSource, that provides the file based approach to obtain elements. | |
| Data | The XML configuration file used by the xml.php example script. You need to adjust paths to use it. | |
| Class | The main I18N class that handles internationalization and localization. | |
| Data | SQL script to create tables for using a database as a source for the I18N package. | |
| Data | The XML configuration file used by the file.php example script. You need to adjust paths to use it. | |
| Data | Example language file for the file.php example script. | |
| Data | Example language file for the xml.php example script | |
| Data | Example language file (localized) for the file.php example script. | |
| Data | Example language file (localized) for the xml.php example script | |
| Data | Example language file for the file.php example script. | |
| Data | Example language file for the xml.php example script | |
| Example | This script presents an example of using the I18N package with XML files as its source of data | |
| Class | Implementation of DataSource, that provides the XML file based approach to obtain elements. |
| Download all files: i18n.tar.gz i18n.zip |