lajax / yii2-translate-manager

Translation Manager
MIT License
227 stars 90 forks source link

Added recursive check to extractMessages #22

Closed rhertogh closed 9 years ago

rhertogh commented 9 years ago

Nested translations were not detected. E.g.:

//only 'demo {test_link} demo' would be added
Yii::t('app', 'demo {test_link} demo', [
    'test_link' => Html::a(Yii::t('app', 'Link text'), $url),
]);

This patch checks if there is a third param passed to the translate function (Line 171), and if so it will check the buffer recursively (Line 174).

lajax commented 9 years ago

Thanks :)