From e9ecff1b35de60fe72e738eaa9e6892dae829c30 Mon Sep 17 00:00:00 2001 From: linkaixiang4883 Date: Thu, 23 Jul 2020 04:23:39 +0800 Subject: [PATCH 1/5] Update zh_cn.js Add text for zh_cn.js --- src/assets/lang/zh_cn.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/assets/lang/zh_cn.js b/src/assets/lang/zh_cn.js index 663347e..99ef587 100755 --- a/src/assets/lang/zh_cn.js +++ b/src/assets/lang/zh_cn.js @@ -6,7 +6,7 @@ $.Redactor.opts.langs['zh_cn'] = { table: '表格', link: '链接', link_insert: '插入链接', - link_edit: 'Edit link', + link_edit: '编辑链接', unlink: '取消链接', formatting: '样式', paragraph: '段落', @@ -16,7 +16,7 @@ $.Redactor.opts.langs['zh_cn'] = { header2: '二级标题', header3: '三级标题', header4: '四级标题', - header5: 'Header 5', + header5: '五级标题', bold: '粗体', italic: '斜体', fontcolor: '字体颜色', @@ -65,11 +65,11 @@ $.Redactor.opts.langs['zh_cn'] = { fullscreen: '全屏', deleted: '删除', anchor: '锚点', - link_new_tab: 'Open link in new tab', - underline: 'Underline', - alignment: 'Alignment', - filename: 'Name (optional)', - edit: 'Edit', - center: 'Center' + link_new_tab: '从新窗口打开链接', + underline: '下划线', + alignment: '对齐方式', + filename: '文件名(可选)', + edit: '编辑', + center: '居中' }; })( jQuery ); From 0e454a44fffb47145b95760df3da19d7edaa40c6 Mon Sep 17 00:00:00 2001 From: linkaixiang4883 Date: Thu, 23 Jul 2020 04:29:12 +0800 Subject: [PATCH 2/5] Update zh_tw.js Add the text of zh_tw.js --- src/assets/lang/zh_tw.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/assets/lang/zh_tw.js b/src/assets/lang/zh_tw.js index 58ae9e5..1e8fe89 100755 --- a/src/assets/lang/zh_tw.js +++ b/src/assets/lang/zh_tw.js @@ -6,7 +6,7 @@ $.Redactor.opts.langs['zh_tw'] = { table: '表格', link: '連結', link_insert: '插入連結', - link_edit: 'Edit link', + link_edit: '編輯連結', unlink: '移除連結', formatting: '樣式', paragraph: '段落', @@ -65,11 +65,11 @@ $.Redactor.opts.langs['zh_tw'] = { fullscreen: '全銀幕', deleted: '刪除線', anchor: '錨點', - link_new_tab: 'Open link in new tab', - underline: 'Underline', - alignment: 'Alignment', - filename: 'Name (optional)', - edit: 'Edit', - center: 'Center' + link_new_tab: '從新標籤頁打開', + underline: '下劃線', + alignment: '對齊方式', + filename: '文件名(可選)', + edit: '編輯', + center: '居中' }; -})( jQuery ); \ No newline at end of file +})( jQuery ); From 11761faa32a8a41a4f2430e5be04825b8b25571b Mon Sep 17 00:00:00 2001 From: linkaixiang4883 Date: Thu, 23 Jul 2020 04:42:02 +0800 Subject: [PATCH 3/5] Add a message for zh-CN Add a message for zh-CN --- src/messages/zh-CN/imperavi.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/messages/zh-CN/imperavi.php diff --git a/src/messages/zh-CN/imperavi.php b/src/messages/zh-CN/imperavi.php new file mode 100644 index 0000000..2bbe450 --- /dev/null +++ b/src/messages/zh-CN/imperavi.php @@ -0,0 +1,26 @@ + '文件上传失败。', + 'ERROR_DURING_UPLOAD_PROCESS' => '上传过程中发生错误!', + 'ERROR_FILE_ALREADY_EXIST' => '文件已存在。', + 'ERROR_FILE_IDENTIFIER_MUST_BE_PROVIDED' => '必须提供文件标识符。', + 'ERROR_FILE_DOES_NOT_EXIST' => '指定的文件不存在。', + 'ERROR_CANNOT_REMOVE_FILE' => '无法删除文件。', +]; From edde7cc706c7b1be5e575af1c30dcfb1ff406afb Mon Sep 17 00:00:00 2001 From: linkaixiang4883 Date: Thu, 23 Jul 2020 04:45:08 +0800 Subject: [PATCH 4/5] Add a message for zh-TW Add a message for zh-TW --- src/messages/zh-TW/imperavi.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/messages/zh-TW/imperavi.php diff --git a/src/messages/zh-TW/imperavi.php b/src/messages/zh-TW/imperavi.php new file mode 100644 index 0000000..1aa930e --- /dev/null +++ b/src/messages/zh-TW/imperavi.php @@ -0,0 +1,26 @@ + '文件上傳失敗。', + 'ERROR_DURING_UPLOAD_PROCESS' => '上傳過程中發生錯誤!', + 'ERROR_FILE_ALREADY_EXIST' => '文件已存在。', + 'ERROR_FILE_IDENTIFIER_MUST_BE_PROVIDED' => '必須提供文件標識符。', + 'ERROR_FILE_DOES_NOT_EXIST' => '指定的文件不存在。', + 'ERROR_CANNOT_REMOVE_FILE' => '無法刪除文件。', +]; From 6a11c084b42e6baa11a4c1c7d6e911effbd13264 Mon Sep 17 00:00:00 2001 From: linkaixiang4883 Date: Thu, 23 Jul 2020 04:46:18 +0800 Subject: [PATCH 5/5] Add zh-CN and zh-TW Add zh-CN and zh-TW --- src/messages/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/config.php b/src/messages/config.php index 9bb12a7..ae04ad6 100755 --- a/src/messages/config.php +++ b/src/messages/config.php @@ -11,7 +11,7 @@ return [ 'sourcePath' => dirname(__DIR__), 'messagePath' => __DIR__, - 'languages' => ['de', 'en', 'es', 'pt-BR', 'ru', 'ro'], + 'languages' => ['de', 'en', 'es', 'pt-BR', 'ru', 'ro', 'zh-CN', 'zh-TW'], 'translator' => 'Yii::t', 'sort' => false, 'overwrite' => true,