According to the code, plugin language is set automatically using Yii::$app->language property, but this
doesn't work. language widget property must be set explicitly to the short ISO code in order to translate
the widget.
A simple change in FileInput::initWidget() would allow automatic language selection.
$this->initLanguage('language', false);
Setting the short message format will load the correct language.
Prerequisites
master
branch of yii2-widget-fileinput.Steps to reproduce the issue
Expected behavior and actual behavior
According to the code, plugin language is set automatically using
Yii::$app->language
property, but this doesn't work.language
widget property must be set explicitly to the short ISO code in order to translate the widget.A simple change in
FileInput::initWidget()
would allow automatic language selection.Setting the short message format will load the correct language.
Environment
Browsers
Operating System
Libraries
Isolating the problem