en.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. (function(){
  2. var factory = function (exports) {
  3. var lang = {
  4. name : "en",
  5. description : "Open source online Markdown editor.",
  6. tocTitle : "Table of Contents",
  7. toolbar : {
  8. undo : "Undo(Ctrl+Z)",
  9. redo : "Redo(Ctrl+Y)",
  10. bold : "Bold",
  11. del : "Strikethrough",
  12. italic : "Italic",
  13. quote : "Block quote",
  14. ucwords : "Words first letter convert to uppercase",
  15. uppercase : "Selection text convert to uppercase",
  16. lowercase : "Selection text convert to lowercase",
  17. h1 : "Heading 1",
  18. h2 : "Heading 2",
  19. h3 : "Heading 3",
  20. h4 : "Heading 4",
  21. h5 : "Heading 5",
  22. h6 : "Heading 6",
  23. "list-ul" : "Unordered list",
  24. "list-ol" : "Ordered list",
  25. hr : "Horizontal rule",
  26. link : "Link",
  27. "reference-link" : "Reference link",
  28. image : "Image",
  29. code : "Code inline",
  30. "preformatted-text" : "Preformatted text / Code block (Tab indent)",
  31. "code-block" : "Code block (Multi-languages)",
  32. table : "Tables",
  33. datetime : "Datetime",
  34. emoji : "Emoji",
  35. "html-entities" : "HTML Entities",
  36. pagebreak : "Page break",
  37. watch : "Unwatch",
  38. unwatch : "Watch",
  39. preview : "HTML Preview (Press Shift + ESC exit)",
  40. fullscreen : "Fullscreen (Press ESC exit)",
  41. clear : "Clear",
  42. search : "Search",
  43. help : "Help",
  44. info : "About " + exports.title
  45. },
  46. buttons : {
  47. enter : "Enter",
  48. cancel : "Cancel",
  49. close : "Close"
  50. },
  51. dialog : {
  52. link : {
  53. title : "Link",
  54. url : "Address",
  55. urlTitle : "Title",
  56. urlEmpty : "Error: Please fill in the link address."
  57. },
  58. referenceLink : {
  59. title : "Reference link",
  60. name : "Name",
  61. url : "Address",
  62. urlId : "ID",
  63. urlTitle : "Title",
  64. nameEmpty: "Error: Reference name can't be empty.",
  65. idEmpty : "Error: Please fill in reference link id.",
  66. urlEmpty : "Error: Please fill in reference link url address."
  67. },
  68. image : {
  69. title : "Image",
  70. url : "Address",
  71. link : "Link",
  72. alt : "Title",
  73. uploadButton : "Upload",
  74. imageURLEmpty : "Error: picture url address can't be empty.",
  75. uploadFileEmpty : "Error: upload pictures cannot be empty!",
  76. formatNotAllowed : "Error: only allows to upload pictures file, upload allowed image file format:"
  77. },
  78. preformattedText : {
  79. title : "Preformatted text / Codes",
  80. emptyAlert : "Error: Please fill in the Preformatted text or content of the codes."
  81. },
  82. codeBlock : {
  83. title : "Code block",
  84. selectLabel : "Languages: ",
  85. selectDefaultText : "select a code language...",
  86. otherLanguage : "Other languages",
  87. unselectedLanguageAlert : "Error: Please select the code language.",
  88. codeEmptyAlert : "Error: Please fill in the code content."
  89. },
  90. htmlEntities : {
  91. title : "HTML Entities"
  92. },
  93. help : {
  94. title : "Help"
  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. })();