How to translate and do the translations the easy way

Comparing #13 with #14

Revision #14 was created by Roman Solomatin Roman Solomatin on Feb 25, 2016, 11:37:29 AM.

Updated to Yii version 1.1.17.

Content

[...]
_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.1
67](https://github.com/yiisoft/yii/blob/1.1.167/framework/i18n/CMessageSource.php#L104 "Source | CMessageSource.php")):



```php
if(isset($this->_messages[$key][$message]) /*&& $this->_messages[$key][$message]!==''*/)
[...]