Comments: on this page. Click to read or post your own.
The {Translatable} decorator allows your DataObjects to have versions in different languages, defining which fields are can be translated.
Common language names (e.g. 'en') are used in {Translatable} for database-entities. On the other hand, the file-based i18n-translations always have a "locale" (e.g. 'en_US').
You can enable {Translatabe} for any DataObject-subclass: <example> static $extensions = array( "Translatable('MyTranslatableVarchar', 'OtherTranslatableText')" ); </example>
Caution: Does not apply any character-set conversion, it is assumed that all content is stored and represented in UTF-8 (Unicode). Please make sure your database and HTML-templates adjust to this.
Caution: Further decorations of DataObject might conflict with this implementation, e.g. when overriding the get_one()-calls (which are already extended by {Translatable}).
| Class | Description |
|---|---|
| Translatable | The {Translatable} decorator allows your DataObjects to have versions in different languages, defining which fields are can be translated. |
Documentation generated on Sun, 19 Oct 2008 06:47:10 +1300 by phpDocumentor 1.3.2