| PEAR Announce 2005-01-30, 3:56 pm |
| The new PEAR package Translation2-2.0.0beta6 (beta) has been released at http://pear.php.net/.
Release notes
-------------
- added Translation2::getRaw()
- fixed bug #3068: Translation2_Admin::update() on multiple tables didn't insert
new records for missing langs, only updated the existing ones.
- fixed bug #3149: XML container didn't properly handle redundant strings
- added TRANSLATION2_DTD constant to the xml container (thanks to Olivier Guilyardi)
- added t2xmlchk.php script to check if a XML file is Translation2 compliant
(thanks to Olivier Guilyardi)
- added ErrorText decorator
Package Info
-------------
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)
Related Links
-------------
Package home: http://pear.php.net/package/Translation2
Changelog: http://pear.php.net/package/Transla...load/2.0.0beta6
Download: http://pear.php.net/get/Translation2-2.0.0beta6.tgz
Authors
-------------
Lorenzo Alberton <l.alberton@quipo.it> (lead)
Ian Eure (developer)
Michael Wallner <mike@php.net> (developer)
|