Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update simplified Chinese translations #1475

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion plugins/base64/trumbowyg.base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@
},
zh_cn: {
base64: '图片(Base64编码)',
file: '文件'
file: '文件',
errFileReaderNotSupported: '浏览器不支持FileReader',
errInvalidImage: '无效的图片格式'
},
zh_tw: {
base64: '圖片(base64編碼)',
Expand Down
4 changes: 3 additions & 1 deletion plugins/colors/trumbowyg.colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@
},
zh_cn: {
foreColor: '文字颜色',
backColor: '背景颜色'
backColor: '背景颜色',
foreColorRemove: '清除文字颜色',
backColorRemove: '清除背景颜色'
},
zh_tw: {
foreColor: '文字顏色',
Expand Down
3 changes: 3 additions & 0 deletions plugins/fontfamily/trumbowyg.fontfamily.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
tr: {
fontFamily: 'Yazı tipi'
},
zh_cn: {
fontFamily: '字体',
},
zh_tw: {
fontFamily: '字體',
},
Expand Down
16 changes: 16 additions & 0 deletions plugins/fontsize/trumbowyg.fontsize.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,22 @@
value: '48px'
}
},
zh_cn: {
fontsize: '字号',
fontsizes: {
'x-small': '超小',
'small': '小',
'medium': '正常',
'large': '大',
'x-large': '特大',
'custom': '自定义'
},
fontCustomSize: {
title: '自定义字号',
label: '字号',
value: '48px'
}
},
zh_tw: {
fontsize: '字體大小',
fontsizes: {
Expand Down
5 changes: 4 additions & 1 deletion plugins/giphy/trumbowyg.giphy.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
},
tr: {
giphy: 'GIF ekle'
}
},
zh_cn: {
giphy: '插入GIF'
},
// jshint camelcase:true
}
});
Expand Down
4 changes: 4 additions & 0 deletions plugins/highlight/trumbowyg.highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@
highlight: 'Kod sözdizimini vurgula',
highlightLine: 'Vurgu çizgileri, örneğin: 1,3-5'
},
zh_cn: {
highlight: '代码语法高亮',
highlightLine: '高亮行,例如:1,3-5'
},
// jshint camelcase:true
},
// Add our plugin to Trumbowyg registered plugins
Expand Down
4 changes: 4 additions & 0 deletions plugins/indent/trumbowyg.indent.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
indent: 'Girinti',
outdent: 'Çıkıntı'
},
zh_cn: {
indent: '增加缩进',
outdent: '减少缩进'
}
// jshint camelcase:true
}
});
Expand Down
3 changes: 3 additions & 0 deletions plugins/insertaudio/trumbowyg.insertaudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
tr: {
insertAudio: 'Ses Ekle'
},
zh_cn: {
insertAudio: '插入音频'
}
// jshint camelcase:true
},
plugins: {
Expand Down
9 changes: 9 additions & 0 deletions plugins/lineheight/trumbowyg.lineheight.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@
'2.0': 'Çok Büyük'
}
},
zh_cn: {
lineheight: '行间距',
lineheights: {
'0.9': '小',
'normal': '正常',
'1.5': '大',
'2.0': '特大'
}
},
zh_tw: {
lineheight: '文字間距',
lineheights: {
Expand Down
5 changes: 5 additions & 0 deletions plugins/mathml/trumbowyg.mathml.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
formulas: 'Formüller',
inline: 'Satır içi'
},
zh_cn: {
mathml: '插入公式',
formulas: '公式',
inline: '行内'
},
zh_tw: {
mathml: '插入方程式',
formulas: '方程式',
Expand Down
3 changes: 3 additions & 0 deletions plugins/mention/trumbowyg.mention.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
tr: {
mention: 'Bahset'
},
zh_cn: {
mention: '提及'
},
zh_tw: {
mention: '標記'
},
Expand Down
4 changes: 4 additions & 0 deletions plugins/noembed/trumbowyg.noembed.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
tr: {
noembedError: 'Hata'
},
zh_cn: {
noembed: '嵌入内容',
noembedError: '错误'
},
zh_tw: {
noembed: '插入影片',
noembedError: '錯誤'
Expand Down
5 changes: 5 additions & 0 deletions plugins/ruby/trumbowyg.ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
rubyModal: 'Ruby modal',
rubyText: 'Ruby metni'
},
zh_cn: {
ruby: 'Ruby 文字标记',
rubyModal: 'Ruby 标记',
rubyText: 'Ruby 文字'
},
zh_tw: {
ruby: '加入 ruby 文字',
rubyModal: 'Ruby 彈跳視窗',
Expand Down
5 changes: 5 additions & 0 deletions plugins/specialchars/trumbowyg.specialchars.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

$.extend(true, $.trumbowyg, {
langs: {
// jshint camelcase:false
en: {
specialChars: 'Special characters'
},
Expand Down Expand Up @@ -58,6 +59,10 @@
tr: {
specialChars: 'Özel karakterler'
},
zh_cn: {
specialChars: '特殊字符'
},
// jshint camelcase:true
},
plugins: {
specialchars: {
Expand Down
22 changes: 22 additions & 0 deletions plugins/table/trumbowyg.table.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,28 @@
tableDeleteColumn: 'Sütunu sil',
tableDestroy: 'Tabloyu sil',
},
zh_cn: {
table: '插入表格',
tableRows: '行',
tableColumns: '列',
tableVerticalAlign: '垂直对齐',
tableOthers: '其它',
tableAddHeaderRow: '插入表头行',
tableAddRowAbove: '在上方插入行',
tableAddRow: '在下方插入行',
tableAddColumnLeft: '在左侧插入列',
tableAddColumn: '在右侧插入列',
tableDeleteRow: '刪除行',
tableDeleteColumn: '刪除列',
tableDestroy: '刪除表格',
tableMergeCells: '合并单元格',
tableUnmergeCells: '拆分单元格',
tableVerticalAlignTop: '顶端对齐',
tableVerticalAlignMiddle: '垂直居中',
tableVerticalAlignBottom: '底端对齐',
tableCellBackgroundColor: '表格单元格背景色',
tableBorderColor: '表格边框颜色',
},
zh_tw: {
table: '插入表格',
tableAddRow: '加入行',
Expand Down
3 changes: 3 additions & 0 deletions plugins/template/trumbowyg.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
tr: {
template: 'Şablon'
},
zh_cn: {
template: '模板'
},
zh_tw: {
template: '模板',
},
Expand Down
12 changes: 12 additions & 0 deletions src/langs/zh_cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
jQuery.trumbowyg.langs.zh_cn = {
viewHTML: '源代码',

undo: '撤销',
redo: '恢复',

formatting: '格式',
p: '段落',
blockquote: '引用',
Expand All @@ -27,6 +30,9 @@ jQuery.trumbowyg.langs.zh_cn = {
em: '斜体',
del: '删除线',

superscript: '上标',
subscript: '下标',

unorderedList: '无序列表',
orderedList: '有序列表',

Expand All @@ -36,12 +42,18 @@ jQuery.trumbowyg.langs.zh_cn = {
createLink: '插入链接',
unlink: '取消链接',

_self: '当前页面加载(默认)',
_blank: '在新标签页打开',
_parent: '在父级标签页打开',
_top: '在顶级标签页打开',

justifyLeft: '居左对齐',
justifyCenter: '居中对齐',
justifyRight: '居右对齐',
justifyFull: '两端对齐',

horizontalRule: '插入分隔线',
removeformat: '清除格式',

fullscreen: '全屏',

Expand Down