I18N for database entries

Hi everyone

I have the following problem:

I have a list of products with titles in descriptions that needs to be translated into several languages.

The guide explaines how to translate messages and files. But what approach do I take for translating database entries?

I suppose that this is something that has to be done manually but I didn’t want to reinvent the wheel.



By default Yii uses CPhpMessageSource to find out translated strings. You may also choose CDbMessageSource for your product pages.

I’m quite sure you can even extend this component so you don’t have to accept its restrictions regarding column names or whatever.


I’ll check that out tomorrow and see if I can wrap my head around it