[ANNOUNCEMENT] Translation2-2.0.0beta12 (beta) Released.
| From: | PEAR Announce | Date: | Fri, 15 Dec 2006 09:07:31 +0000 |
| Subject: | [ANNOUNCEMENT] Translation2-2.0.0beta12 (beta) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26103@lists.php.net to get a copy of this message | ||
The new PEAR package Translation2-2.0.0beta12 (beta) has been released at http://pear.php.net/.
Release notes
-------------
- force MDB2_FETCHMODE_ORDERED in Translation2_Container_mdb2::getPage() to
avoid error when using an existing db connection with fetchmode set to
MDB2_FETCHMODE_ASSOC (bug #8734)
- force lowercase keys in fetchLang() for Oracle compatibility (bug #8915)
- added defaultGroup to cache_lite options
- added new $options optional parameter to addLang() to set charset/collate info
(MDB2 driver only)
- fixed bug #8546: index names are not escaped in SQL queries (DB and MDB admin
containers)
- fixed dataobjectsimple container, get[Raw]Page() was returning integers as
keys instead of strings (thanks to Michael Henry)
- added setCharset() method (currently only implemented in the MDB2 driver)
- added setLang() and setCacheOption() in CacheLiteFunction decorator (request #9301)
(thanks to Sascha Grossenbacher)
- fixed bug #5539: DefaultText decorator does not call _replaceParams()
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/Translation2/download/2.0.0beta12
Download: http://download.pear.php.net/package/Translation2-2.0.0beta12.tgz
Authors
-------
Lorenzo Alberton <l.alberton@quipo.it> (lead)
Ian Eure (developer)
Michael Wallner <mike@php.net> (developer)