i18n-activerecord

I18n ActiveRecord
4 followers

This extension simplifies the handling of multilingual content stored in the database.

It assumes that you use two tables for your content (one for the main content and a second one for the translations) with a one-to-many relationship between them.

Resources

Documentation

Requirements

  • Yii 1.1 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

class Product extends I18nActiveRecord
{
    public function i18nLanguages()
    {
        return array('zh_cn');
    }
 
    public function i18nAttributes()
    {
        return array('name','content');
    }
}

Change Log

April 29, 2010

  • Initial release.

Total 3 comments

#5324 report it
marcovtwout at 2011/10/04 10:24am
No documentation and not working

There is no documentation in the code, there is no documentation on the website. Attempting to debug already shows this code won't work as expected. At most useful for getting ideas from the source code.

*Edit: I got it to work, but it's almost the same as http://www.yiiframework.com/extension/multilingual-active-record/, not really worth existing as a separate Yii extension at the moment.

#130 report it
coma at 2010/09/01 04:49am
no docs

Please publish a normal documentation... one simillar to MultilingualActiveRecord extension!

#270 report it
mech7 at 2010/07/23 05:08am
no docs

No documentation

Leave a comment

Please to leave your comment.

Create extension