kalessil / yii2inspections

MIT License
31 stars 3 forks source link

[bug] False positives of missing translations #10

Closed samdark closed 7 years ago

samdark commented 7 years ago

There are false positives of "The message doesn't have any translations or doesn't belong to the category".

Translations are in messages/ru-RU. Config is the following:

return [
    'translations' => [
        '*' => [
            'class' => 'yii\i18n\PhpMessageSource',
            'fileMap' => [
                'user' => 'user.php',
                'stash' => 'stash.php',
                'site' => 'site.php',
            ],
        ],
    ],
];
kalessil commented 7 years ago

This was a bug from me, now should work (binary pushed)