You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
5.2 KiB

преди 3 години
  1. (function(){
  2. var factory = function (exports) {
  3. var lang = {
  4. name : "zh-tw",
  5. description : "開源在線Markdown編輯器<br/>Open source online Markdown editor.",
  6. tocTitle : "目錄",
  7. toolbar : {
  8. undo : "撤銷(Ctrl+Z)",
  9. redo : "重做(Ctrl+Y)",
  10. bold : "粗體",
  11. del : "刪除線",
  12. italic : "斜體",
  13. quote : "引用",
  14. ucwords : "將所選的每個單詞首字母轉成大寫",
  15. uppercase : "將所選文本轉成大寫",
  16. lowercase : "將所選文本轉成小寫",
  17. h1 : "標題1",
  18. h2 : "標題2",
  19. h3 : "標題3",
  20. h4 : "標題4",
  21. h5 : "標題5",
  22. h6 : "標題6",
  23. "list-ul" : "無序列表",
  24. "list-ol" : "有序列表",
  25. hr : "横线",
  26. link : "链接",
  27. "reference-link" : "引用鏈接",
  28. image : "圖片",
  29. code : "行內代碼",
  30. "preformatted-text" : "預格式文本 / 代碼塊(縮進風格)",
  31. "code-block" : "代碼塊(多語言風格)",
  32. table : "添加表格",
  33. datetime : "日期時間",
  34. emoji : "Emoji 表情",
  35. "html-entities" : "HTML 實體字符",
  36. pagebreak : "插入分頁符",
  37. watch : "關閉實時預覽",
  38. unwatch : "開啟實時預覽",
  39. preview : "全窗口預覽HTML(按 Shift + ESC 退出)",
  40. fullscreen : "全屏(按 ESC 退出)",
  41. clear : "清空",
  42. search : "搜尋",
  43. help : "使用幫助",
  44. info : "關於" + exports.title
  45. },
  46. buttons : {
  47. enter : "確定",
  48. cancel : "取消",
  49. close : "關閉"
  50. },
  51. dialog : {
  52. link : {
  53. title : "添加鏈接",
  54. url : "鏈接地址",
  55. urlTitle : "鏈接標題",
  56. urlEmpty : "錯誤:請填寫鏈接地址。"
  57. },
  58. referenceLink : {
  59. title : "添加引用鏈接",
  60. name : "引用名稱",
  61. url : "鏈接地址",
  62. urlId : "鏈接ID",
  63. urlTitle : "鏈接標題",
  64. nameEmpty: "錯誤:引用鏈接的名稱不能為空。",
  65. idEmpty : "錯誤:請填寫引用鏈接的ID。",
  66. urlEmpty : "錯誤:請填寫引用鏈接的URL地址。"
  67. },
  68. image : {
  69. title : "添加圖片",
  70. url : "圖片地址",
  71. link : "圖片鏈接",
  72. alt : "圖片描述",
  73. uploadButton : "本地上傳",
  74. imageURLEmpty : "錯誤:圖片地址不能為空。",
  75. uploadFileEmpty : "錯誤:上傳的圖片不能為空!",
  76. formatNotAllowed : "錯誤:只允許上傳圖片文件,允許上傳的圖片文件格式有:"
  77. },
  78. preformattedText : {
  79. title : "添加預格式文本或代碼塊",
  80. emptyAlert : "錯誤:請填寫預格式文本或代碼的內容。"
  81. },
  82. codeBlock : {
  83. title : "添加代碼塊",
  84. selectLabel : "代碼語言:",
  85. selectDefaultText : "請語言代碼語言",
  86. otherLanguage : "其他語言",
  87. unselectedLanguageAlert : "錯誤:請選擇代碼所屬的語言類型。",
  88. codeEmptyAlert : "錯誤:請填寫代碼內容。"
  89. },
  90. htmlEntities : {
  91. title : "HTML實體字符"
  92. },
  93. help : {
  94. title : "使用幫助"
  95. }
  96. }
  97. };
  98. exports.defaults.lang = lang;
  99. };
  100. // CommonJS/Node.js
  101. if (typeof require === "function" && typeof exports === "object" && typeof module === "object")
  102. {
  103. module.exports = factory;
  104. }
  105. else if (typeof define === "function") // AMD/CMD/Sea.js
  106. {
  107. if (define.amd) { // for Require.js
  108. define(["editormd"], function(editormd) {
  109. factory(editormd);
  110. });
  111. } else { // for Sea.js
  112. define(function(require) {
  113. var editormd = require("../editormd");
  114. factory(editormd);
  115. });
  116. }
  117. }
  118. else
  119. {
  120. factory(window.editormd);
  121. }
  122. })();