[ANNOUNCEMENT] Translation2-2.0.0beta4 (beta) Released.
| From: | PEAR Announce | Date: | Sat, 20 Nov 2004 11:17:23 +0000 |
| Subject: | [ANNOUNCEMENT] Translation2-2.0.0beta4 (beta) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-15721@lists.php.net to get a copy of this message | ||
The new PEAR package Translation2-2.0.0beta4 (beta) has been released at http://pear.php.net/.
Release notes
-------------
- added a complete TestSuite
- updated gettext docs
- fixed typo in error code (TRANSLATION_ERROR_UNKNOWN_LANG => TRANSLATION2_ERROR_UNKNOWN_LANG)
- fixed typo in the MDB Admin container [quote() => getTextValue()]
- fixed typo in db admin containers ($this->queries => $this->_queries)
- in the gettext admin container
- fixed many bugs in the gettext admin container:
* fixed old field [remove "windows", add "encoding"]
* fixed error in remove() [can't pass by reference]
* fixed typo in update() [$stingID => $stringID]
* in _add(), create the domains on demand
* handle stale cache
- many fixes/updates to the xml container:
* init() accepts an array as parameter (not a string)
* added 'save_on_shutdown' option
(you can choose to save in real time, now)
* return Translation2 errors with numeric codes
* added 'encoding' field
* added removeLang()
* other minor fixes and tweaks
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)
- 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/Translation2/download/2.0.0beta4
Download: http://pear.php.net/get/Translation2-2.0.0beta4.tgz
Authors
-------------
Lorenzo Alberton <l.alberton@quipo.it> (lead)
Ian Eure (developer)
Michael Wallner <mike@php.net> (developer)