Skip to content

Commit fa93764

Browse files
committed
plugins localization
1 parent d577ec5 commit fa93764

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

languages/en.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,17 @@
7777
},
7878
preformattedText : {
7979
title : "Preformatted text / Codes",
80-
emptyAlert : "Error: Please fill in the Preformatted text or content of the codes."
80+
emptyAlert : "Error: Please fill in the Preformatted text or content of the codes.",
81+
placeholder : "coding now...."
8182
},
8283
codeBlock : {
8384
title : "Code block",
8485
selectLabel : "Languages: ",
8586
selectDefaultText : "select a code language...",
8687
otherLanguage : "Other languages",
8788
unselectedLanguageAlert : "Error: Please select the code language.",
88-
codeEmptyAlert : "Error: Please fill in the code content."
89+
codeEmptyAlert : "Error: Please fill in the code content.",
90+
placeholder : "coding now...."
8991
},
9092
htmlEntities : {
9193
title : "HTML Entities"

languages/zh-tw.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,17 @@
7777
},
7878
preformattedText : {
7979
title : "添加預格式文本或代碼塊",
80-
emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。"
80+
emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。",
81+
placeholder : "coding now...."
8182
},
8283
codeBlock : {
8384
title : "添加代碼塊",
8485
selectLabel : "代碼語言:",
8586
selectDefaultText : "請語言代碼語言",
8687
otherLanguage : "其他語言",
8788
unselectedLanguageAlert : "錯誤:請選擇代碼所屬的語言類型。",
88-
codeEmptyAlert : "錯誤:請填寫代碼內容。"
89+
codeEmptyAlert : "錯誤:請填寫代碼內容。",
90+
placeholder: : "coding now...."
8991
},
9092
htmlEntities : {
9193
title : "HTML實體字符"
@@ -124,4 +126,4 @@
124126
factory(window.editormd);
125127
}
126128

127-
})();
129+
})();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
var dialogHTML = "<div class=\"" + classPrefix + "code-toolbar\">" +
8686
dialogLang.selectLabel + "<select><option selected=\"selected\" value=\"\">" + dialogLang.selectDefaultText + "</option></select>" +
8787
"</div>" +
88-
"<textarea placeholder=\"coding now....\" style=\"display:none;\">" + selection + "</textarea>";
88+
"<textarea placeholder=\"" + dialogLang.placeholder + "\" style=\"display:none;\">" + selection + "</textarea>";
8989

9090
dialog = this.createDialog({
9191
name : dialogName,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242
else
4343
{
44-
var dialogContent = "<textarea placeholder=\"coding now....\" style=\"display:none;\">" + selection + "</textarea>";
44+
var dialogContent = "<textarea placeholder=\"" + dialogLang.placeholder + "\" style=\"display:none;\">" + selection + "</textarea>";
4545

4646
dialog = this.createDialog({
4747
name : dialogName,

0 commit comments

Comments
 (0)