File tree 1 file changed +3
-24
lines changed 1 file changed +3
-24
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace emhome \plupload ;
4
4
5
- use Yii ;
6
5
use yii \web \AssetBundle ;
7
6
8
7
/**
16
15
* @license http://www.plupload.com/license
17
16
* @see http://www.plupload.com/contributing
18
17
* ```
19
- *
18
+ *
20
19
* @author emhome <emhome@163.com>
21
20
* @since 2.0.1
22
21
*/
23
- class PluploadPluginAsset extends AssetBundle {
22
+ class PluploadPluginAsset extends AssetBundle
23
+ {
24
24
25
25
/**
26
26
* @inheritdoc
@@ -41,25 +41,4 @@ class PluploadPluginAsset extends AssetBundle {
41
41
'yii\web\JqueryAsset ' ,
42
42
];
43
43
44
- /**
45
- * @var string 使用语言包
46
- */
47
- public $ language ;
48
-
49
- /**
50
- * @inheritdoc
51
- */
52
- public function init () {
53
- if (!$ this ->language ) {
54
- $ this ->language = Yii::$ app ->language ;
55
- }
56
- $ language = str_replace ('- ' , '_ ' , $ this ->language );
57
- $ fallbackLanguage = substr ($ this ->language , 0 , 2 );
58
- if ($ fallbackLanguage !== $ this ->language && !file_exists (Yii::getAlias ($ this ->sourcePath . "/js/i18n/ {$ language }.js " ))) {
59
- $ language = $ fallbackLanguage ;
60
- }
61
- $ this ->js [] = "js/i18n/ $ language.js " ;
62
- parent ::init ();
63
- }
64
-
65
44
}
You can’t perform that action at this time.
0 commit comments