Top Level :: Internationalization

Package Information: Translation2 2.0.0beta3

Show All Changelogs
» Version » Information
2.0.0 2008-05-06     stable
2.0.0RC4 2008-02-23     beta
2.0.0RC3 2007-12-05     beta
2.0.0RC2 2007-11-25     beta
2.0.0RC1 2007-07-29     beta
2.0.0beta12 2006-12-15     beta
2.0.0beta11 2006-09-07     beta
2.0.0beta10 2006-07-12     beta
2.0.0beta9 2006-02-22     beta
2.0.0beta8 2005-10-04     beta
2.0.0beta7 2005-06-28     beta
2.0.0beta6 2005-01-30     beta
2.0.0beta5 2004-12-24     beta
2.0.0beta4 2004-11-20     beta
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.0beta2 2004-10-04     beta
2.0.0beta1 2004-05-05     beta
2.0.0alpha2 2004-02-22     alpha
0.0.1 2004-01-20     alpha