yiisoft/yii — Issue #344: Strange bug in i18n message generation
Author: igorsantos07
Created: 2012-02-16 18:51:36+00:00
State: open

This is the problematic file: http://pastebin.com/NaN8pYaG
It's rendered twice inside another view via renderPartial, and it's working fine.

But now I run `./yiic message messages/config.php` to generate/update i18n, and it was throwing me an error.
After some bug-hunting, I noticed that it was trying to create a file for the following category:

'';
echo ' | ';

if (empty($next_month_query))
echo ''.Yii::t('timesheet

As you can see, this is the very code that comes after line 9 of the referenced file.
But, if I change from simple to double quotes (`Yii::t('timesheet', $month_name)` into `Yii::t("timesheet", $month_name)`) it works.