For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > July 2007 > [ANNOUNCEMENT] Translation2-2.0.0RC1 (beta) Released.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [ANNOUNCEMENT] Translation2-2.0.0RC1 (beta) Released.
PEAR Announce

2007-07-29, 7:02 pm

The new PEAR package Translation2-2.0.0RC1 (beta) has been released at http://pear.php.net/.

Release notes
-------------
- fixed bug #9855: missing call to _prepare() in setLang()
- propagate errors in the decorators
- fixed testsuite: added missing db_test_base.php file and
fixed problem with class redeclaration
- fixed constraint creation in addLang() in the MDB2 Admin driver
- fixed setCharset() proxy in the Decorator
- fixed bug #11482: missing return in Translation2_Admin_Container_mdb2::addLa
ng()
when the table already exists

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...wnload/2.0.0RC1
Download: http://download.pear.php.net/packag...n2-2.0.0RC1.tgz

Authors
-------
Lorenzo Alberton <l.alberton@quipo.it> (lead)
Ian Eure (developer)
Michael Wallner <mike@php.net> (developer)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com