Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate message source for category 'mtrelt'. #52

Open
moysoft opened this issue Dec 25, 2017 · 2 comments
Open

Unable to locate message source for category 'mtrelt'. #52

moysoft opened this issue Dec 25, 2017 · 2 comments

Comments

@moysoft
Copy link

moysoft commented Dec 25, 2017

Can't save updated record

@patel28
Copy link

patel28 commented Apr 14, 2018

waiting to fix this

@danchello
Copy link

danchello commented Jun 26, 2018

You just have to initialize i18n component like this:

'i18n' => [
        'translations' => [
            '*' => [
                'class' => 'yii\i18n\PhpMessageSource',
                'basePath' => '@app/messages', // if advanced application, set @frontend/messages
                'sourceLanguage' => 'en',
                'fileMap' => [
                    //'main' => 'main.php',
                ],
            ],
        ],
    ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants