PEAR  
Search package by name
 

Package Management
Package Management

 

Package Search
Package Search

 

Channel Management
Channel Management

 

Configuration
Configuration

 
Warning: This package management website is not protected with a password, this is a MAJOR security risk. Please read the README.
Package Translation2
Installed - no -
Latest 2.0.4
License BSD
Summary Class for multilingual applications management.
Description This class provides an easy way to retrieve all the strings for a multilingual site from a data source (i.e. db).
The following containers are provided, more will follow:
- PEAR::DB
- PEAR::MDB
- PEAR::MDB2
- gettext
- XML
- PEAR::DB_DataObject (experimental)
It is designed to reduce the number of queries to the db, caching the results when possible.
An Admin class is provided to easily manage translations (add/remove a language, add/remove a string).
Currently, the following decorators are provided:
- CacheLiteFunction (for file-based caching)
- CacheMemory (for memory-based caching)
- DefaultText (to replace empty strings with their keys)
- ErrorText (to replace empty strings with a custom error text)
- Iconv (to switch from/to different encodings)
- Lang (resort to fallback languages for empty strings)
- SpecialChars (replace html entities with their hex codes)
- UTF-8 (to convert UTF-8 strings to ISO-8859-1)
Dependencies
PHP Version: 4.0.0 or newer
PEAR Package: pear.php.net/PEAR 1.4.0b1 or newer
PEAR Package: pear.php.net/Cache_Lite
PEAR Package: pear.php.net/DB
PEAR Package: pear.php.net/DB_DataObject
PEAR Package: pear.php.net/MDB
PEAR Package: pear.php.net/MDB2
PEAR Package: pear.php.net/File_Gettext
PEAR Package: pear.php.net/I18Nv2 0.9.1 or newer1
PEAR Package: pear.php.net/XML_Serializer 0.13.0 or newer1
PHP Extension: gettext
Options
install Install package
More extra info Extended Package Information
manual pear.php.net Developer Documentation
manual pear.php.net Package Manual