lajax / yii2-translate-manager

Translation Manager
MIT License
227 stars 90 forks source link

Translate/scan error #103

Closed Irvine87 closed 7 years ago

Irvine87 commented 7 years ago

I am using the basic yii2 and when I try to run the ./yii translate/scan command, I get this error message after the Extreacting messages: Exception 'yii\base\InvalidConfigException' with message 'Unable to locate message source for category 'DbMessageSource'.' I inserted the config parts to my config into web.php and console.php, but I cannot find where is the problem.

Irvine87 commented 7 years ago

Gosh! I find it! Need to append the same config parts to web and console.php in the basic yii2. Ahh , sorry for troubles.