Browse Source

Merge pull request #556 from Astak/plugins-localization

Plugins localization
master
pandao 6 years ago
committed by GitHub
parent
commit
00573b3737
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      languages/en.js
  2. 8
      languages/zh-tw.js
  3. 2
      plugins/code-block-dialog/code-block-dialog.js
  4. 2
      plugins/preformatted-text-dialog/preformatted-text-dialog.js

6
languages/en.js

@ -77,7 +77,8 @@
},
preformattedText : {
title : "Preformatted text / Codes",
emptyAlert : "Error: Please fill in the Preformatted text or content of the codes."
emptyAlert : "Error: Please fill in the Preformatted text or content of the codes.",
placeholder : "coding now...."
},
codeBlock : {
title : "Code block",
@ -85,7 +86,8 @@
selectDefaultText : "select a code language...",
otherLanguage : "Other languages",
unselectedLanguageAlert : "Error: Please select the code language.",
codeEmptyAlert : "Error: Please fill in the code content."
codeEmptyAlert : "Error: Please fill in the code content.",
placeholder : "coding now...."
},
htmlEntities : {
title : "HTML Entities"

8
languages/zh-tw.js

@ -77,7 +77,8 @@
},
preformattedText : {
title : "添加預格式文本或代碼塊",
emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。"
emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。",
placeholder : "coding now...."
},
codeBlock : {
title : "添加代碼塊",
@ -85,7 +86,8 @@
selectDefaultText : "請語言代碼語言",
otherLanguage : "其他語言",
unselectedLanguageAlert : "錯誤:請選擇代碼所屬的語言類型。",
codeEmptyAlert : "錯誤:請填寫代碼內容。"
codeEmptyAlert : "錯誤:請填寫代碼內容。",
placeholder: : "coding now...."
},
htmlEntities : {
title : "HTML實體字符"
@ -124,4 +126,4 @@
factory(window.editormd);
}
})();
})();

2
plugins/code-block-dialog/code-block-dialog.js

@ -85,7 +85,7 @@
var dialogHTML = "<div class=\"" + classPrefix + "code-toolbar\">" +
dialogLang.selectLabel + "<select><option selected=\"selected\" value=\"\">" + dialogLang.selectDefaultText + "</option></select>" +
"</div>" +
"<textarea placeholder=\"coding now....\" style=\"display:none;\">" + selection + "</textarea>";
"<textarea placeholder=\"" + dialogLang.placeholder + "\" style=\"display:none;\">" + selection + "</textarea>";
dialog = this.createDialog({
name : dialogName,

2
plugins/preformatted-text-dialog/preformatted-text-dialog.js

@ -41,7 +41,7 @@
}
else
{
var dialogContent = "<textarea placeholder=\"coding now....\" style=\"display:none;\">" + selection + "</textarea>";
var dialogContent = "<textarea placeholder=\"" + dialogLang.placeholder + "\" style=\"display:none;\">" + selection + "</textarea>";
dialog = this.createDialog({
name : dialogName,

Loading…
Cancel
Save