I need to translate database fields to other languages. Yiic message can’t get data from the database, so I wrote a CActiveRecordBehavior to extend my model class that get all the data that needs translation out in the format off yii::t() into a fake view file so yiic message can pick it up. (see: link here).
However, I’m running into problems with a type of field. Text fields that holds multi-line text failed to work! It seems CPhpMessageSource cannot handle translation key with multi-lines. It can handle single-line key with multi-line translation, but not the other way around. Does anyone know how to solve this?
I know gettext po files can recognize keys with multi-lilnes, I thought CPhpMessageSource should too.