为什么yiic消息会忽略yii::t()新字符串?

为什么yiic消息会忽略yii::t()新字符串?,yii,Yii,在我的索引控制器上,我有以下新的翻译: $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','fo

在我的索引控制器上,我有以下新的翻译:

$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',
    ),
);
谁能帮我弄清楚为什么会发生这种事吗?

找到了

字母大小写非常重要。 我错误地使用了
yii::t()而不是
Yii::t()