配置文件以生成Yii翻译消息文件
我使用YIC消息生成交易时出错:配置文件以生成Yii翻译消息文件,yii,yiic,Yii,Yiic,我使用YIC消息生成交易时出错: Error:the configuration file is not specified 我有一个配置文件/protected/messages/config.php <?php /** * This is the configuration for generating message translations * for the Yii framework. It is used by the 'yiic message' command.
Error:the configuration file is not specified
我有一个配置文件/protected/messages/config.php
<?php
/**
* This is the configuration for generating message translations
* for the Yii framework. It is used by the 'yiic message' command.
*/
return array(
'sourcePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'../..',
'messagePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'messages',
'languages'=>array('de','it','fr'),
'fileTypes'=>array('php'),
'overwrite'=>true,
'exclude'=>array(
'.svn',
'yiilite.php',
'yiit.php',
'/i18n/data',
'/blog',
'/web/js',
'/protected/gii',
'/protected/yii',
'/protected/messages',
'/protected/extensions/giix-core',
'/images',
'/media',
'/assets',
'/protected/assets',
'/protected/vendors',
),
);
我必须编写yiic message/config.php来集成显而易见的配置。。。对不起,我不习惯cmd
通过右键单击受保护的文件夹打开控制台
和类型:
yiic message message/config.php
请确保您必须将配置文件保留为protected/config/console.php,如果未在protected/yiic.phpHow上配置配置文件,那么您是否执行了此操作?它应该是yiic message path/to/config/file?
yiic message message/config.php