Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
imaxwen committed Oct 25, 2016
1 parent 5ce3bce commit 9d6deba
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CKEditorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function initOptions()

if($this->enableElFinder && class_exists('\mihaildev\elfinder\ElFinder')) {
$this->editorConfig = yii\helpers\ArrayHelper::merge(
\mihaildev\elfinder\ElFinder::ckeditorOptions(['elfinder' , 'language' => 'zh-CN']),
\mihaildev\elfinder\ElFinder::ckeditorOptions('elfinder'),
$this->editorConfig
);
}
Expand Down
16 changes: 16 additions & 0 deletions assets/plugins/audio/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,20 @@ var en = {
fallbackTemplate : 'Your browser doesn\'t support audio.<br>Please download the file: %links%'
};

var zhCn = {
toolbar : '音频',
dialogTitle : '音频属性',
fakeObject : '音频',
properties : '编辑音频',
widthRequired : '宽度不能为空',
heightRequired : '高度不能为空',
poster: '音频预览图',
sourceVideo: '音频地址',
sourceType : '音频类型',
linkTemplate : '<a href="%src%">%type%</a> ',
fallbackTemplate : '您的浏览器不支持音频播放.<br>请下载后观看: %links%'
};

var es = {
toolbar : 'Audio',
dialogTitle : 'Propiedades de audio',
Expand All @@ -208,4 +222,6 @@ CKEDITOR.plugins.setLang( 'audio', 'en', en );

CKEDITOR.plugins.setLang( 'audio', 'es', es );

CKEDITOR.plugins.setLang( 'audio', 'zh-cn', zhCn );

})();
18 changes: 17 additions & 1 deletion assets/plugins/video/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
CKEDITOR.plugins.add( 'video',
{
// Translations, available at the end of this file, without extra requests
lang : [ 'en', 'es' ],
lang : [ 'en', 'es', 'zh-cn' ],

getPlaceholderCss : function()
{
Expand Down Expand Up @@ -182,6 +182,20 @@ var en = {
fallbackTemplate : 'Your browser doesn\'t support video.<br>Please download the file: %links%'
};

var zhCn = {
toolbar : '视频',
dialogTitle : '视频属性',
fakeObject : '视频',
properties : '编辑视频',
widthRequired : '宽度不能为空',
heightRequired : '高度不能为空',
poster: '视频预览图',
sourceVideo: '视频地址',
sourceType : '视频类型',
linkTemplate : '<a href="%src%">%type%</a> ',
fallbackTemplate : '您的浏览器不支持视频播放.<br>请下载后观看: %links%'
};

var es = {
toolbar : 'Video',
dialogTitle : 'Propiedades de video',
Expand All @@ -208,4 +222,6 @@ CKEDITOR.plugins.setLang( 'video', 'en', en );

CKEDITOR.plugins.setLang( 'video', 'es', es );

CKEDITOR.plugins.setLang( 'video', 'zh-cn', zhCn );

})();

0 comments on commit 9d6deba

Please sign in to comment.