Top Level :: Internationalization

Package Information: Translation2

Show All Changelogs
» Version » Information
2.0.0Download

Release date: 2008-05-06 09:49 UTC
Release state: stable

Changelog:

- fixed a few PHP5 NOTICEs
- request #13734: added 'string_page_id_col_length' option to set the size of the
pageID field in the translations table

Dependencies:
  • PHP Version: PHP 4.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
  • PHP Extension: gettext (optional)
2.0.0RC4Download

Release date: 2008-02-23 13:38 UTC
Release state: beta

Changelog:

- fixed bug #12703: CacheLiteFunction decorator and getLang() issue
- fixed some E_STRICT warnings
- fixed getStringID()

Dependencies:
  • PHP Version: PHP 4.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
  • PHP Extension: gettext (optional)
2.0.0RC3Download

Release date: 2007-12-05 21:10 UTC
Release state: beta

Changelog:

- fixed bug #12525: moved t2xmlchk.php script to / baseinstalldir
- fixed bug #12527: rewritten CacheMemory Decorator to properly prefetch pages

Dependencies:
  • PHP Version: PHP 4.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
  • PHP Extension: gettext (optional)
2.0.0RC2Download

Release date: 2007-11-25 13:15 UTC
Release state: beta

Changelog:

- request #11711: added setCharset() method in the DB container
- bug #11880: [XML driver] removing one language removes all strings for all languages
- request #11881: getLang(..., 'array') now returns a 'lang_id' alias to 'id'
- bug #12183: language ID '0' considered invalid
- bug #12398: fixed return value of addLangToList() and updateLang() in the MDB2
admin container
- request #12405: added removePage() method in the Admin module
- added getLang() and getLangs() to the CacheLiteFunction Decorator
- fixed the test suite
- fixed Coding Standards

Dependencies:
  • PHP Version: PHP 4.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
  • PHP Extension: gettext (optional)
2.0.0RC1Download

Release date: 2007-07-29 15:48 UTC
Release state: beta

Changelog:

- 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::addLang()
when the table already exists

Dependencies:
  • PHP Version: PHP 4.0.0 or newer
  • PEAR Package: PEAR Installer 1.4.0b1 or newer
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
  • PHP Extension: gettext (optional)
2.0.0beta12Download

Release date: 2006-12-15 09:07 UTC
Release state: beta

Changelog:

- 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()

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta11Download

Release date: 2006-09-07 07:50 UTC
Release state: beta

Changelog:

- fixed an error that would result in losing strings when getting a specific
language's string in Translation2_Admin_Decorator_Autoadd.
- fixed bug #8287: addLang() SQL not compatible with MSSQL
- fixed MDB/MDB2 test runner
- fixed bug #8546: column/table names are not escaped in SQL queries

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta10Download

Release date: 2006-07-12 13:51 UTC
Release state: beta

Changelog:

- fixed bug #7058, issue with array_merge not respecting existing array keys
- request #7736: ability to specify CacheLite group for CacheLite Decorator
(thanks to ajt at localhype dot net)
- if an empty xml file is given, don't return an error (bug #7793)
- propagate errors in getPage() and getOne() (bug #8127)
- Fix Autoadd decorator, which was not adding entries for new string IDs for all languages,
which made update() to fail on those strings.

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta9Download

Release date: 2006-02-22 16:38 UTC
Release state: beta

Changelog:

- Translation2_Decorator_Lang: append keys when fallback lang
contains more than current (request #5773)
- Removed leftover code from the MDB admin container that caused
inserting the same record twice (bug #6233)
- Better error handling and cache refreshing in the gettext driver
(bug #6410) [thanks to Alan Knowles and ivanwyc@gmail.com]
- Honor global PEAR error settings in Translation2_Container::raiseError()
(bug #6574)
- Added missing updateLang() proxy in Translation2_Admin_Decorator (bug #6753)
- Added length to INDEX on TEXT column in Translation2_Admin::addLang()
when the dbms is MySQL (thanks to AJ Tarachanowicz)
- Fixed UNIQUE INDEX in Translation2_Admin::addLang(), one of the two columns
got lost in a previous revision

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta8Download

Release date: 2005-10-04 21:49 UTC
Release state: beta

Changelog:

- changed license to BSD
- removeLang() used to drop the entire table if there weren't any languages left.
Now it does so only if the $force parameter is set (request #4218 and #5142)
- Translation2_Decorator now extends Translation2
- fixed warning with the CacheLiteFunction decorator and PHP 5.1

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta7Download

Release date: 2005-06-28 11:08 UTC
Release state: beta

Changelog:

- added some options to the DefaultText decoration, now it is more customizable
(thanks to Rolf 'Red' Ochsenbein)
- added a __clone() method to clone the internal object references
(bug #3641, patch by Olivier Guilyardi)
- Some fixes to the XML container, many thanks to Olivier Guilyardi:
* fixed bug #3408: empty data sets were not correctly handled;
* fixed bug #3420: get a shared file lock instead of an exclusive one;
* fixed bug #3498: saveData() is not registered multiple times as shutdown
function anymore; optimized saving when save_on_shutdown is set to false.
- added blank_on_missing option to the gettext container, which makes it
behave like the other containers and automatically disables native mode;
* see bug #4002
- fixed bug #4476: gettext container not working without the gettext extension
(thanks to sergey at pushok dot com)
- added setContainerOptions() method to alter some container options after
the object instantiation (bug #2508)
- some minor fixes

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta6Download

Release date: 2005-01-30 17:29 UTC
Release state: beta

Changelog:

- 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

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta5Download

Release date: 2004-12-24 11:37 UTC
Release state: beta

Changelog:

- renamed createNewLang() to addLang() [BC break!]
- renamed addLangToAvailList() to addLangToList()
- added Translation2_Admin::getPageNames()
- added Translation2_Admin::updateLang()
- fixed bug #2890: getLang() raised a NOTICE if setLang() was not called before
- fixed bug #2972: CacheLiteFunction decorator not handling
parameter subtitution as expected
- updated dataobjectsimple container (alank)
- some internal minor fixes and tweaks

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta4Download

Release date: 2004-11-20 11:17 UTC
Release state: beta

Changelog:

- 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

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta3Download

Release date: 2004-11-11 17:33 UTC
Release state: beta

Changelog:

- Welcome to the new developers, Ian Eure and Michael Wallner
- The last release contained an old gettext driver (bug #2503) (ieure)
- Many portability fixes applied to the database containers (thanks to Ian Eure and
Xavier Lembo for their suggestions and patches)
- Minor changes to the table definitions for better portability (lowercase field names,
VARCHAR instead of CHAR, bigger field size)
- setLang() now returns an error if called with an unknown $langID (bug #2498).
- Added $cleaningFrequency option to the CacheLiteFunction to implement
statistic cache cleaning
- Added Translation2_Admin::cleanCache() method to clean the cache on demand.
It is automatically triggered after a change if $options['autoCleanCache'] is TRUE.
- Big cleanup of the DB and Admin_DB containers. See CVS changelog for details.
(ieure)
- Added update() method to Translation2_Admin. This is a BC break; you used to be able
to update strings with add(). This is no longer possible, use update(). (ieure)
- Re-added a check in add() to see if an update() is needed instead of an insert
- String ID columns are created as type TEXT to support gettext-style string IDs.
(ieure)
- Reflect the changes made to the DB container into the MDB and MDB2 containers too,
plus other minor fixes/optimizations.
- strings_default_table may use %s to represent the language name. You may now have one
table per language without having to explicitly specify them all. (ieure)
- DefaultText decorator has new getStringID() method, which will return the string which
was requested if no stringID exists. This mirrors the gettext() semantics. (ieure)
- Added Admin_Decorator class, which allows you to create Decorators for
Translation2_Admin. (ieure)
- New 'Autoadd' Admin Decorator, which automatically adds requested strings. (ieure)
- Removed translate(), added getStringID(). You can mimic the old behaviour in
two steps:
$stringID = $tr->getStringID('mystring', 'mypage');
$translatedString = $tr->get($stringID, 'mypage', $otherLangID);
- Major cleanup of the gettext container and added some examples (mike)
- removeLang() was missing. Fixed.
- The gettext container no longer require the gettext extension (thanks to Sergey Korotkov);
it is used when loaded, though, since it's faster.
- Both .mo and .po files are valid data sources for the gettext container (Sergey Korotkov)
- New Iconv decorator based on the one written by Sergey Korotkov
- Added a new "encoding" column to the langsAvail table
- New xml container by Olivier Guilyardi

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
  • PEAR Package: I18Nv2 0.9.1 or newer (optional)
  • PEAR Package: XML_Serializer 0.13.0 or newer (optional)
2.0.0beta2Download

Release date: 2004-10-04 20:28 UTC
Release state: beta

Changelog:

- constructor is deprecated. Use factory instead.
- added emptyPrefix and emptyPostfix options to the DefaultText decorator
(can be used to mark empty strings)
- don't pass objects by ref in the Decorator, as it's deprecated
- better check for existing connections in the MDB and MDB2 drivers
- fixed assignment of datobjects simple to empty string using default constructor
in the dataobjectsimple driver (alan_k)
- updated the example
- fixed the db, mdb and mdb2 admin classes (bugs #2153 and #2248
and wrong check for non-existent langs_avail_table)
- added a 'strings_default_table' parameter as a fallback table
for translations

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
2.0.0beta1Download

Release date: 2004-05-05 08:29 UTC
Release state: beta

Changelog:

- BC break! Run the example to see what's new
- refactoring in progress:
added a Decorator class and some subclasses to control
the output (now you can set a stack of fallback languages,
a filter to deal with empty strings, one or more cache layers...)
- improved gettext support (thanks to Michael Wallner)
- added gettext admin class
- fixes in the db admin classes
- when adding a new string, if it matches one already in the db,
the old one is replaced by the new one.
- added a MDB2 container
- added a DB_DataObject container (by Alan Knowles)

Dependencies:
  • PEAR Package: Cache_Lite (optional)
  • PEAR Package: DB (optional)
  • PEAR Package: DB_DataObject (optional)
  • PEAR Package: MDB (optional)
  • PEAR Package: MDB2 (optional)
  • PHP Extension: gettext (optional)
  • PEAR Package: File_Gettext (optional)
2.0.0alpha2Download

Release date: 2004-02-22 20:45 UTC
Release state: alpha

Changelog:

- added an experimental GNU gettext driver
- translate() now accepts a third parameter ($pageID)
- PHP5 fix
- renamed old getPage() to getRawPage()
- new getPage() resorts to fallback lang and replaces parameters when needed
- added error checking/codes

Dependencies:
  • PEAR Package: DB (optional)
  • PEAR Package: MDB (optional)
  • PHP Extension: gettext (optional)
0.0.1Download

Release date: 2004-01-20 23:40 UTC
Release state: alpha

Changelog:

First alpha release

Dependencies:
  • PEAR Package: DB (optional)
  • PEAR Package: MDB (optional)