Файлы конфигурации для создания файлов сообщений перевода Yii
У меня есть ошибка, используя сообщение Yiic для генерации traduction:
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',
),
);
мне, возможно, придется настроить что-то в config / main.php или console.php, но я понятия не имею, что...
конфиг / console.php
<?php
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name'=>'My Console Application',
// application components
'components'=>array(
'db'=>array(
'connectionString' => 'mysql:host=localhost;dbname=lygnes',
'emulatePrepare' => true,
'username' => 'XXX',
'password' => 'XXX',
'charset' => 'utf8',
'enableProfiling' => true,
'enableParamLogging' => true,
),
),
);
я не могу найти ничего в документе: http://www.yiiframework.com/doc/guide/1.1/fr/topics.i18n
но я не понял! Спасибо за вашу помощь!
1 ответ
Решение
Я должен написать сообщение yiic message/config.php для интеграции конфигурации, которая была очевидна... извините, я не использую для cmd
откройте консоль правой кнопкой мыши на защищенной папке
и введите:
yiic message message/config.php