Changes
Title
unchanged
How to translate and do the translations the easy way
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
i18n language translate messages t Yii::t CApplication CMessageSource CModel gii ISO639
Content
changed
[...]
_Optionally_, if you want to make use of empty translation strings,
then you can modify **[`translateMessage()`](http://www.yiiframework.com/doc/api/1.1/CMessageSource#translateMessage "API | CMessageSource :: translateMessage( )")** method in **[`CMessageSource`](http://www.yiiframework.com/doc/api/1.1/CMessageSource "API | CMessageSource")** class to comment out empty string check.
**NB! Remember this when you upgrade your Yii distribution!**
In the file **`framework/i18n/CMessageSource.php`**, line **`104`** ([Yii version 1.1.167](https://github.com/yiisoft/yii/blob/1.1.1
67/framework/i18n/CMessageSource.php#L104 "Source | CMessageSource.php")):
```php
if(isset($this->_messages[$key][$message]) /*&& $this->_messages[$key][$message]!==''*/)[...]