在我的索引控制器上,我有以下新翻译:
$this->pageTitle = yii::t('sitename','what we do');
Yii::app()->clientScript->registerMetaTag(yii::t('sitename','foo bar foo foo bar'), 'description');
Yii::app()->clientScript->registerMetaTag(yii::t('sitename','foo, bar, foo, bar'), 'keywords');
然后我转到我的命令行,我运行:
./yiic message ../app/messages/config.php
我得到:
将消息保存到 /Users/user/Sites/sitename.dev/app/messages/en/sitename.php...没有新内容...跳过。
这是我的应用程序消息/config.php
文件:
/**
* This is the configuration for generating message translations
* for the Yii framework. It is used by the 'yiic message' command.
*/
return array(
'language'=>'pt',
'sourcePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'../..',
'messagePath'=>dirname(__FILE__),
'languages'=>array('en'),
'fileTypes'=>array('php'),
'overwrite'=>true,
'exclude'=>array(
'.svn',
'/app/data/i18n',
'/htdocs',
'/app/tests',
'/app/messages',
'/app/config',
),
);
谁能帮我弄清楚为什么会这样?