phemellc / yii2-settings

Yii2 Settings Module
Other
151 stars 74 forks source link

Unable to locate message source for category 'extensions/yii2-settings/settings'. #11

Closed uniqby closed 9 years ago

uniqby commented 9 years ago

my bad, del

maituanmte commented 7 years ago

Hi. I have same error. How can you fix it?

arisk commented 7 years ago

The translations should work by default if you're using the module. If you're not using the module then consider extending from BaseSetting which doens't use translations.

maituanmte commented 7 years ago

@arisk Hi arisk. I take configuration as instruction like that 'modules' => [ 'settings' => [ 'class' => 'pheme\settings\Module', 'sourceLanguage' => 'vn' ], ],

but nothing work. Is it right?

maituanmte commented 7 years ago

@arisk It is ok now. Thank you.

arisk commented 7 years ago

Can you post the solution to your problem? It might help others. Thanks!

maituanmte commented 7 years ago

/backend/web/index.php?r=settings%2Fdefault%2Findex

The link should contain the module. I think you should contain instruction about translation when they don't use default setting module.php. Module::t(...) can not be used if not.

I just config translation extensions/yii2-settings/settings again.