Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request pandao#556 from Astak/plugins-localization
Browse files Browse the repository at this point in the history
Plugins localization
  • Loading branch information
pandao authored May 4, 2019
2 parents 9e19807 + fa93764 commit 00573b3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,17 @@
},
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",
selectLabel : "Languages: ",
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"
Expand Down
8 changes: 5 additions & 3 deletions languages/zh-tw.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,17 @@
},
preformattedText : {
title : "添加預格式文本或代碼塊",
emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。"
emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。",
placeholder : "coding now...."
},
codeBlock : {
title : "添加代碼塊",
selectLabel : "代碼語言:",
selectDefaultText : "請語言代碼語言",
otherLanguage : "其他語言",
unselectedLanguageAlert : "錯誤:請選擇代碼所屬的語言類型。",
codeEmptyAlert : "錯誤:請填寫代碼內容。"
codeEmptyAlert : "錯誤:請填寫代碼內容。",
placeholder: : "coding now...."
},
htmlEntities : {
title : "HTML實體字符"
Expand Down Expand Up @@ -124,4 +126,4 @@
factory(window.editormd);
}

})();
})();
2 changes: 1 addition & 1 deletion plugins/code-block-dialog/code-block-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 00573b3

Please sign in to comment.