mercury-rails 0.3.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. data/POST_INSTALL +15 -0
  2. data/{vendor → app}/assets/images/mercury/button.png +0 -0
  3. data/{vendor → app}/assets/images/mercury/close.png +0 -0
  4. data/app/assets/images/mercury/default-snippet.png +0 -0
  5. data/{vendor → app}/assets/images/mercury/loading-dark.gif +0 -0
  6. data/{vendor → app}/assets/images/mercury/loading-light.gif +0 -0
  7. data/{vendor → app}/assets/images/mercury/missing-image.png +0 -0
  8. data/{vendor → app}/assets/images/mercury/search-icon.png +0 -0
  9. data/{vendor → app}/assets/images/mercury/temp-logo.png +0 -0
  10. data/app/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  11. data/app/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  12. data/app/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  13. data/app/assets/images/mercury/toolbar/primary/action.png +0 -0
  14. data/app/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  15. data/app/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  16. data/app/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  17. data/app/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  18. data/app/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  19. data/app/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  20. data/app/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  21. data/app/assets/images/mercury/toolbar/primary/preview.png +0 -0
  22. data/app/assets/images/mercury/toolbar/primary/redo.png +0 -0
  23. data/app/assets/images/mercury/toolbar/primary/save.png +0 -0
  24. data/app/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  25. data/app/assets/images/mercury/toolbar/primary/undo.png +0 -0
  26. data/app/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
  27. data/{vendor → app}/assets/javascripts/mercury.js +4 -0
  28. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery-1.7.js +0 -0
  29. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery-ui-1.8.13.custom.js +0 -0
  30. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.additions.js +0 -0
  31. data/{vendor → app}/assets/javascripts/mercury/dependencies/jquery.htmlClean.js +0 -0
  32. data/{vendor → app}/assets/javascripts/mercury/dependencies/liquidmetal.js +0 -0
  33. data/{vendor → app}/assets/javascripts/mercury/dependencies/showdown.js +0 -0
  34. data/{vendor → app}/assets/javascripts/mercury/dialog.js.coffee +0 -0
  35. data/{vendor → app}/assets/javascripts/mercury/dialogs/backcolor.js.coffee +0 -0
  36. data/{vendor → app}/assets/javascripts/mercury/dialogs/forecolor.js.coffee +0 -0
  37. data/{vendor → app}/assets/javascripts/mercury/dialogs/formatblock.js.coffee +0 -0
  38. data/{vendor → app}/assets/javascripts/mercury/dialogs/snippetpanel.js.coffee +0 -0
  39. data/{vendor → app}/assets/javascripts/mercury/dialogs/style.js.coffee +0 -0
  40. data/{vendor → app}/assets/javascripts/mercury/finalize.js.coffee +0 -0
  41. data/{vendor → app}/assets/javascripts/mercury/history_buffer.js.coffee +0 -0
  42. data/{vendor → app}/assets/javascripts/mercury/lightview.js.coffee +0 -0
  43. data/app/assets/javascripts/mercury/locales/ar.locale.js.coffee +207 -0
  44. data/{vendor → app}/assets/javascripts/mercury/locales/da.locale.js.coffee +7 -7
  45. data/{vendor → app}/assets/javascripts/mercury/locales/de.locale.js.coffee +0 -0
  46. data/{vendor → app}/assets/javascripts/mercury/locales/es.locale.js.coffee +0 -0
  47. data/{vendor → app}/assets/javascripts/mercury/locales/example.local.js.coffee +0 -0
  48. data/{vendor → app}/assets/javascripts/mercury/locales/fr.locale.js.coffee +0 -0
  49. data/{vendor → app}/assets/javascripts/mercury/locales/it.locale.js.coffee +0 -0
  50. data/{vendor → app}/assets/javascripts/mercury/locales/ko.local.js.coffee +0 -0
  51. data/{vendor → app}/assets/javascripts/mercury/locales/nl.locale.js.coffee +0 -0
  52. data/{vendor → app}/assets/javascripts/mercury/locales/pt.locale.js.coffee +0 -0
  53. data/{vendor → app}/assets/javascripts/mercury/locales/sv.local.js.coffee +0 -0
  54. data/{vendor → app}/assets/javascripts/mercury/locales/swedish_chef.locale.js.coffee +0 -0
  55. data/app/assets/javascripts/mercury/locales/zh.local.js.coffee +209 -0
  56. data/{vendor → app}/assets/javascripts/mercury/mercury.js.coffee +9 -1
  57. data/{vendor → app}/assets/javascripts/mercury/modal.js.coffee +0 -0
  58. data/{vendor → app}/assets/javascripts/mercury/modals/htmleditor.js.coffee +0 -0
  59. data/{vendor → app}/assets/javascripts/mercury/modals/insertcharacter.js.coffee +0 -0
  60. data/{vendor → app}/assets/javascripts/mercury/modals/insertlink.js.coffee +0 -0
  61. data/{vendor → app}/assets/javascripts/mercury/modals/insertmedia.js.coffee +0 -0
  62. data/{vendor → app}/assets/javascripts/mercury/modals/insertsnippet.js.coffee +1 -0
  63. data/{vendor → app}/assets/javascripts/mercury/modals/inserttable.js.coffee +0 -0
  64. data/{vendor → app}/assets/javascripts/mercury/native_extensions.js.coffee +0 -0
  65. data/{vendor → app}/assets/javascripts/mercury/page_editor.js.coffee +46 -19
  66. data/{vendor → app}/assets/javascripts/mercury/palette.js.coffee +0 -0
  67. data/{vendor → app}/assets/javascripts/mercury/panel.js.coffee +2 -2
  68. data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/mercury/page_editor.js.coffee +2 -2
  69. data/{vendor → app}/assets/javascripts/mercury/plugins/save_as_xml/plugin.js +0 -0
  70. data/{vendor → app}/assets/javascripts/mercury/region.js.coffee +0 -0
  71. data/{vendor → app}/assets/javascripts/mercury/regions/editable.js.coffee +5 -5
  72. data/app/assets/javascripts/mercury/regions/image.js.coffee +114 -0
  73. data/{vendor → app}/assets/javascripts/mercury/regions/markupable.js.coffee +0 -0
  74. data/app/assets/javascripts/mercury/regions/simple.js.coffee +325 -0
  75. data/{vendor → app}/assets/javascripts/mercury/regions/snippetable.js.coffee +0 -0
  76. data/{vendor → app}/assets/javascripts/mercury/select.js.coffee +0 -0
  77. data/{vendor → app}/assets/javascripts/mercury/snippet.js.coffee +23 -7
  78. data/{vendor → app}/assets/javascripts/mercury/snippet_toolbar.js.coffee +16 -4
  79. data/{vendor → app}/assets/javascripts/mercury/statusbar.js.coffee +0 -0
  80. data/{vendor → app}/assets/javascripts/mercury/support/history.js +0 -0
  81. data/{vendor → app}/assets/javascripts/mercury/table_editor.js.coffee +0 -0
  82. data/{vendor → app}/assets/javascripts/mercury/toolbar.button.js.coffee +8 -8
  83. data/{vendor → app}/assets/javascripts/mercury/toolbar.button_group.js.coffee +0 -0
  84. data/{vendor → app}/assets/javascripts/mercury/toolbar.expander.js.coffee +0 -0
  85. data/{vendor → app}/assets/javascripts/mercury/toolbar.js.coffee +0 -0
  86. data/{vendor → app}/assets/javascripts/mercury/tooltip.js.coffee +0 -0
  87. data/{vendor → app}/assets/javascripts/mercury/uploader.js.coffee +35 -17
  88. data/{vendor → app}/assets/javascripts/mercury_loader.js +0 -0
  89. data/{vendor → app}/assets/javascripts/mercury_overrides.js +0 -0
  90. data/{vendor → app}/assets/stylesheets/mercury.css +0 -0
  91. data/{vendor → app}/assets/stylesheets/mercury/all_images.css.erb +0 -0
  92. data/app/assets/stylesheets/mercury/buttons.css +73 -0
  93. data/{vendor → app}/assets/stylesheets/mercury/dialog.css +13 -4
  94. data/app/assets/stylesheets/mercury/form.css +125 -0
  95. data/{vendor → app}/assets/stylesheets/mercury/lightview.css +0 -0
  96. data/app/assets/stylesheets/mercury/mercury.css +45 -0
  97. data/{vendor → app}/assets/stylesheets/mercury/modal.css +1 -1
  98. data/{vendor → app}/assets/stylesheets/mercury/statusbar.css +0 -0
  99. data/{vendor → app}/assets/stylesheets/mercury/toolbar.css +0 -0
  100. data/{vendor → app}/assets/stylesheets/mercury/tooltip.css +0 -0
  101. data/{vendor → app}/assets/stylesheets/mercury/uploader.css +0 -0
  102. data/{vendor → app}/assets/stylesheets/mercury_overrides.css +0 -0
  103. data/app/views/mercury/modals/character.html +1 -1
  104. data/app/views/mercury/modals/htmleditor.html +1 -1
  105. data/app/views/mercury/modals/link.html +1 -1
  106. data/app/views/mercury/modals/media.html +1 -1
  107. data/app/views/mercury/modals/table.html +1 -1
  108. data/app/views/mercury/snippets/example/options.html.erb +1 -1
  109. data/features/generators/authentication.feature +10 -0
  110. data/features/generators/images.feature +41 -0
  111. data/features/generators/install.feature +21 -0
  112. data/features/loading/loading.feature +4 -1
  113. data/features/loading/user_interface.feature +9 -7
  114. data/features/regions/editable/basic_editing.feature +27 -26
  115. data/features/regions/editable/inserting_links.feature +8 -7
  116. data/features/regions/editable/inserting_snippets.feature +7 -7
  117. data/features/regions/image/uploading_images.feature +0 -0
  118. data/features/regions/simple/basic_editing.feature +5 -0
  119. data/features/step_definitions/generator_steps.rb +27 -0
  120. data/features/step_definitions/mercury_steps.rb +1 -0
  121. data/features/support/aruba.rb +28 -0
  122. data/features/support/env.rb +12 -2
  123. data/features/support/mercury_contents.rb +2 -2
  124. data/lib/generators/mercury/install/authentication/authentication_generator.rb +15 -0
  125. data/lib/generators/mercury/install/images/images_generator.rb +44 -0
  126. data/{app/models/mercury/image.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image.rb} +3 -1
  127. data/{db/migrate/20110526035601_create_mercury_images.rb → lib/generators/mercury/install/images/templates/ar_paperclip_image_migration.rb} +0 -0
  128. data/{app/controllers/mercury → lib/generators/mercury/install/images/templates}/images_controller.rb +0 -0
  129. data/lib/generators/mercury/install/{templates → images/templates}/mongoid_paperclip_image.rb +0 -0
  130. data/lib/generators/mercury/install/install_generator.rb +3 -20
  131. data/lib/mercury-rails.rb +1 -2
  132. data/lib/mercury/authentication.rb +1 -0
  133. data/lib/mercury/engine.rb +17 -0
  134. data/lib/mercury/rails.rb +4 -0
  135. data/lib/mercury/version.rb +3 -0
  136. data/spec/dummy/Rakefile +7 -0
  137. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  138. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  139. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  140. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  141. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  142. data/spec/dummy/config.ru +4 -0
  143. data/spec/dummy/config/application.rb +57 -0
  144. data/spec/dummy/config/boot.rb +10 -0
  145. data/spec/dummy/config/database.example.yml +25 -0
  146. data/spec/dummy/config/database.travisci.yml +4 -0
  147. data/spec/dummy/config/environment.rb +5 -0
  148. data/spec/dummy/config/environments/development.rb +37 -0
  149. data/spec/dummy/config/environments/production.rb +67 -0
  150. data/spec/dummy/config/environments/test.rb +37 -0
  151. data/spec/dummy/config/evergreen.rb +47 -0
  152. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  153. data/spec/dummy/config/initializers/inflections.rb +15 -0
  154. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  155. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  156. data/spec/dummy/config/initializers/session_store.rb +8 -0
  157. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  158. data/spec/dummy/config/locales/en.yml +5 -0
  159. data/spec/dummy/config/routes.rb +5 -0
  160. data/spec/dummy/public/404.html +26 -0
  161. data/spec/dummy/public/422.html +26 -0
  162. data/spec/dummy/public/500.html +25 -0
  163. data/spec/dummy/public/blank.html +1 -0
  164. data/spec/dummy/public/canvastest.html +103 -0
  165. data/spec/dummy/public/distro.html +349 -0
  166. data/spec/dummy/public/favicon.ico +0 -0
  167. data/spec/dummy/public/frame.html +15 -0
  168. data/spec/dummy/public/images/bunny.gif +0 -0
  169. data/spec/dummy/public/images/bunny2.jpg +0 -0
  170. data/spec/dummy/public/index.html +392 -0
  171. data/spec/dummy/public/prototype.js +6082 -0
  172. data/spec/dummy/script/rails +6 -0
  173. data/spec/javascripts/mercury/page_editor_spec.js.coffee +55 -16
  174. data/spec/javascripts/mercury/panel_spec.js.coffee +2 -4
  175. data/spec/javascripts/mercury/regions/image_spec.js.coffee +34 -0
  176. data/spec/javascripts/mercury/regions/simple_spec.js.coffee +33 -0
  177. data/spec/javascripts/mercury/regions/snippetable_spec.js.coffee +1 -1
  178. data/spec/javascripts/mercury/snippet_spec.js.coffee +27 -2
  179. data/spec/javascripts/mercury/snippet_toolbar_spec.js.coffee +20 -4
  180. data/spec/javascripts/mercury/toolbar.button_spec.js.coffee +30 -0
  181. data/spec/javascripts/mercury/uploader_spec.js.coffee +16 -0
  182. data/spec/javascripts/templates/mercury/regions/image.html +1 -0
  183. data/spec/javascripts/templates/mercury/regions/simple.html +3 -0
  184. metadata +310 -158
  185. data/config/engine.rb +0 -41
  186. data/vendor/assets/images/mercury/default-snippet.png +0 -0
  187. data/vendor/assets/images/mercury/toolbar/editable/buttons.png +0 -0
  188. data/vendor/assets/images/mercury/toolbar/primary/_expander.png +0 -0
  189. data/vendor/assets/images/mercury/toolbar/primary/_pressed.png +0 -0
  190. data/vendor/assets/images/mercury/toolbar/primary/historypanel.png +0 -0
  191. data/vendor/assets/images/mercury/toolbar/primary/insertcharacter.png +0 -0
  192. data/vendor/assets/images/mercury/toolbar/primary/insertlink.png +0 -0
  193. data/vendor/assets/images/mercury/toolbar/primary/insertmedia.png +0 -0
  194. data/vendor/assets/images/mercury/toolbar/primary/inserttable.png +0 -0
  195. data/vendor/assets/images/mercury/toolbar/primary/inspectorpanel.png +0 -0
  196. data/vendor/assets/images/mercury/toolbar/primary/notespanel.png +0 -0
  197. data/vendor/assets/images/mercury/toolbar/primary/preview.png +0 -0
  198. data/vendor/assets/images/mercury/toolbar/primary/redo.png +0 -0
  199. data/vendor/assets/images/mercury/toolbar/primary/save.png +0 -0
  200. data/vendor/assets/images/mercury/toolbar/primary/snippetpanel.png +0 -0
  201. data/vendor/assets/images/mercury/toolbar/primary/undo.png +0 -0
  202. data/vendor/assets/images/mercury/toolbar/snippetable/buttons.png +0 -0
  203. data/vendor/assets/stylesheets/mercury/mercury.css +0 -151
data/POST_INSTALL ADDED
@@ -0,0 +1,15 @@
1
+ +============================================================================+
2
+ Congratulations, Mercury was successfully installed in your app. Documentation
3
+ and other useful info can be found at: https://github.com/jejacks0n/mercury
4
+
5
+ Here's a post install checklist:
6
+
7
+ * Setup the database for image processing (ActiveRecord only) by running:
8
+
9
+ rake mercury_engine:install:migrations
10
+ rake db:migrate
11
+
12
+ * Learn about, and make configuration adjustments in the mercury.js file.
13
+
14
+ * If installed, check out mercury.html.erb and mercury_overrides.css for more
15
+ customization info.
File without changes
File without changes
File without changes
@@ -230,6 +230,9 @@ window.Mercury = {
230
230
  // By default this is the id attribute but can be changed to a data attribute should you want to use something
231
231
  // custom instead.
232
232
  //
233
+ // determineType: This function is called after checking the data-type attribute for the correct field type. Use
234
+ // it if you want to programatically set the type based on inspection of the region.
235
+ //
233
236
  // dataAttributes: The dataAttributes is an array of data attributes that will be serialized and returned to the
234
237
  // server upon saving. These attributes, when applied to a Mercury region element, will be automatically serialized
235
238
  // and submitted with the AJAX request sent when a page is saved. These are expected to be HTML5 data attributes,
@@ -237,6 +240,7 @@ window.Mercury = {
237
240
  regions: {
238
241
  className: 'mercury-region',
239
242
  identifier: 'id',
243
+ // determineType: function(region){},
240
244
  dataAttributes: []
241
245
  },
242
246
 
@@ -0,0 +1,207 @@
1
+ Mercury.I18n['ar'] =
2
+ # ## Javascript Strings
3
+
4
+ # ### Default Configuration
5
+ "Save": "حفظ"
6
+ "Save this page": "حفظ الصفحة"
7
+ "Preview": "معاينة"
8
+ "Preview this page": "معاينة هذه الضفحة"
9
+ "Undo": "تراجع"
10
+ "Undo your last action": "تراجع عن أخر فعل"
11
+ "Redo": "إعادة"
12
+ "Redo your last action": "إعادة أخر فعل"
13
+ "Link": "رابط"
14
+ "Insert Link": "إدراج رابط"
15
+ "Media": "ملف ميديا"
16
+ "Insert Media (images and videos)": "إدراج ملف ميديا (صور أو فيديو)"
17
+ "Table": "جدول"
18
+ "Insert Table": "إدراج جدول"
19
+ "Character": "حرف"
20
+ "Special Characters": "حرف مميز "
21
+ "Snippet": "قصاصة"
22
+ "Snippet Panel": "لوحة قصاصات"
23
+ "History": "سجل"
24
+ "Page Version History": "نسج مسجلة من الصفحة"
25
+ "Notes": "ملاحظات"
26
+ "Page Notes": "ملاحظات الصفحة"
27
+ "Style": "نمط"
28
+ "Block Format": "تنسيق كتلة"
29
+ "Background Color": "لون الخلفية"
30
+ "Text Color": "لون النص"
31
+ "Bold": "واضح"
32
+ "Italicize": "مائلة"
33
+ "Overline": "خط فوق"
34
+ "Strikethrough": " خط فى الوسط "
35
+ "Underline": "خط تحت"
36
+ "Subscript": " نص سفلى"
37
+ "Superscript": " نص علوى"
38
+ "Align Left": "محاذاة إلى اليسار"
39
+ "Center": "محاذاة إلى الوسط"
40
+ "Align Right": "محاذاة إلى اليمين"
41
+ "Justify Full": "ضبط كامل"
42
+ "Unordered List": "قائمة غير مرتبة"
43
+ "Numbered List": "قائمة مرقمة"
44
+ "Decrease Indentation": "إنقاص المسافة البادئة"
45
+ "Increase Indentation": "زيادة المسافة البادئة"
46
+ "Insert Table Row": "إدراج صف "
47
+ "Insert a table row before the cursor": "إدراج صف قبل المؤشر"
48
+ "Insert a table row after the cursor": "إدراج صف بعد المؤشر"
49
+ "Delete Table Row": "حذف صف"
50
+ "Delete this table row": "حذف هذا الصف"
51
+ "Insert Table Column": "إضافة عمود للجدول"
52
+ "Insert a table column before the cursor": "إدراج عمود قبل المؤشر"
53
+ "Insert a table column after the cursor": "إدراج عمود بعد المؤشر"
54
+ "Delete Table Column": "حذف عمود جدول"
55
+ "Delete this table column": "حذف هذا العمود"
56
+ "Increase Cell Columns": "زيادة أعمدة الخلية"
57
+ "Decrease Cell Columns": "إنقاص أعمدة الخلية"
58
+ "Increase Cell Rows": "زيادة صفوف الخلية"
59
+ "Decrease Cell Rows": "إنقاص صفوف الخلية"
60
+ "Horizontal Rule": "مسطرة أفقية"
61
+ "Insert a horizontal rule": "إدراج مسطرة أفقية"
62
+ "Remove Formatting": "إزالة التنسيق"
63
+ "Remove formatting for the selection": "إزالة التنسيق لاختيار"
64
+ "Edit HTML": "تعديل ال HTML"
65
+ "Edit the HTML content": "تعديل ال HTML"
66
+ "Edit Snippet Settings": "تعديل ضبط قصاصة"
67
+ "Remove Snippet": "إزالة القصاصات"
68
+
69
+ # ### General
70
+ # Error Messages
71
+ "Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "Mercury.Regions.%s غير غير مدعوم فى هذا المتصفح. المتصفحات المدعومة هى %s"
72
+ "Mercury.PageEditor can only be instantiated once.": "Mercury.PageEditor لا يمكن إلا أن يمثل مرة واحدة.."
73
+ "Opera isn't a fully supported browser, your results may not be optimal.": "أوبرا ليست متصفح متوافق بالكامل، قد لا تكون نتائجك الأمثل."
74
+ "Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor غير قاد على تحميل: %s\n\nمن فضلك حدث الصفحة ."
75
+ "Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "نوع المساحة تالف, لا يوجد نوع , أو \"%s\" غير معروف للمساحة \"%s\""
76
+ "Mercury was unable to save to the url: %s": "غير قادر على حفظ الرابط: %s"
77
+ # Confirmations
78
+ "You have unsaved changes.Are you sure you want to leave without saving them first?": "لديك تغييرات غير محفوظة. هل أنت متأكد أنك تريد أن تترك دون حفظها أولا؟"
79
+
80
+ # ### Toolbar / Buttons
81
+ # Error Messages
82
+ "Unknown button type \"%s\" used for the \"%s\" button.": "نوع زر غير معروف \"%s\" مستخدمة ل \"%s\""
83
+ "Unknown button structure -- please provide an array, object, or string for \"%s\".": "بنية زر غير معروفة - يرجى تقديم مجموعة واسعة، كائنات، أو كلمة \"%s\"."
84
+
85
+ # ### Modals / Dialogs / Etc.
86
+ # Error Messages
87
+ "Mercury was unable to load %s for the \"%s\" dialog.": "غير قادر على تحميل %s للنافذة \"%s\"."
88
+ "Mercury was unable to load %s for the lightview.": "غير قادر على تحميل %s للضوء."
89
+ "Mercury was unable to load %s for the modal.": "غير قادر على تحميل %s للنافذة."
90
+
91
+ # ### Snippets
92
+ # Error Messages
93
+ "Error loading the preview for the \"%s\" snippet.": "خطأ فى تحميل معاينة القصاصة \"%s\"."
94
+ # Misc
95
+ "Snippet Options": "خيارات القصاصة"
96
+
97
+ # ### Uploader
98
+ # Error Messages
99
+ "Unable to process response: %s": "غير قادر على معالجة الرد: %s"
100
+ "Error: Unable to upload the file": "خطأ: غير قادر على رفع الملف"
101
+ "Malformed response from server": "استجابة من الخادم متلوفة"
102
+ "Too large": "كبير جدا"
103
+ "Unsupported format": "تنسيق غير مدعوم"
104
+ # Statuses
105
+ "Processing...": "معالجة..."
106
+ "Uploading...": "رفع..."
107
+ "Aborted": "ملغى"
108
+ "Successfully uploaded...": "تم الرفع بنجاح..."
109
+ "Name: %s": "اسم: %s"
110
+ "Size: %s": "حجم: %s"
111
+ "Type: %s": "نوع: %s"
112
+
113
+ # Inserting Media
114
+ "Error: The provided youtube share url was invalid.": "خطأ: عنوان اليوتيوب غير صحيح"
115
+ "Error: The provided vimeo url was invalid.": "خطأ: عنوان فيميو غير صحيح"
116
+
117
+ # Statusbar
118
+ "Path:": "مسار:"
119
+
120
+
121
+ # ## HTML / Template Strings
122
+
123
+ # ### Modals
124
+ # Insert Link Modal (link.html)
125
+ "Link Content": "محتوى الرابط"
126
+ "Standard Links": "رابط قياسى"
127
+ "URL": "عنوان"
128
+ "Index / Bookmark Links": "روابط فهرس / الإشارة المرجعية"
129
+ "Existing Links": "الروابط الموجودة"
130
+ "Bookmark": "الإشارة المرجعية"
131
+ "Options": "خيارات"
132
+ "Link Target": "هدف الرابط"
133
+ "Self (the same window or tab)": "الذاتية (نفس النافذة أو التبويب)"
134
+ "Blank (a new window or tab)": "فارغة (نافذة جديدة أو علامة التبويب)"
135
+ "Top (removes any frames)": "أعلى (يزيل أي إطارات)"
136
+ "Popup Window (javascript new window popup)": "نافذة منبثقة (جافا سكريبت نافذة منبثقة جديد)"
137
+ "Popup Width": "عرض النافذة المنبثقة"
138
+ "Popup Height": "طول النافذة المنبثقة"
139
+ "Insert Link": "إدراج رابط"
140
+
141
+ # Insert Media Modal (media.html)
142
+ "Images": "صور"
143
+ "Videos": "فيديو"
144
+ "YouTube Share URL": "رابط يوتيوب"
145
+ "Vimeo URL": "رابط فيميو"
146
+ "Alignment": "المحاذاة"
147
+ "None": "لا شيء"
148
+ "Left": "يسار"
149
+ "Right": "يمين"
150
+ "Top": "أعلى"
151
+ "Middle": "وسط"
152
+ "Bottom": "أسفل"
153
+ "Absolute Middle": "أوسط مطلق"
154
+ "Absolute Bottom": "أسفل مطلق"
155
+ "Width": "عرض"
156
+ "Height": "ارتفاع"
157
+ "Insert Media": "إدراج ملف ميديا"
158
+
159
+ # Insert Table Modal (table.html)
160
+ "Rows": "صفوف"
161
+ "Add Before": "إضافة قبل"
162
+ "Add After": "إضافة بعد"
163
+ "Remove": "حذف"
164
+ "Columns": "أعمدة"
165
+ "Row Span": "إمتداد الصف"
166
+ "Column Span": "إمتداد العمود"
167
+ "Options": "الخيارات"
168
+ "Alignment": "المحاذاة"
169
+ "Border": "الحدود"
170
+ "Spacing": "تباعد"
171
+ "Insert Table": "إدراج جدول"
172
+
173
+ # HTML Editor Modal (htmleditor.html)
174
+ "HTML Editor": "HTML محرر"
175
+ "Save and Replace": "حفظ واستبدال"
176
+
177
+ # ### Dialogs / Etc.
178
+ # Color Palettes (forecolor.html, backcolor.html)
179
+ "Last Color Picked": "التقطت آخر لون"
180
+
181
+ # Block Format Select (formatblock.html)
182
+ "Heading 1": "العنوان 1"
183
+ "Heading 2": "العنوان 2"
184
+ "Heading 3": "العنوان 3"
185
+ "Heading 4": "العنوان 4"
186
+ "Heading 5": "العنوان 5"
187
+ "Heading 6": "العنوان 6"
188
+ "Paragraph": "فقرة"
189
+ "Blockquote": "قتباس فقرة"
190
+ "Formatted": "منسقة"
191
+
192
+ # About Mercury Panel (about.html)
193
+ "Project Home": "صفحة المشروع"
194
+ "Project Source": "مصدر المشروع"
195
+
196
+ # ### Demo / Placeholder / Defaults
197
+ "The history panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "لوحة التواريخ متوقع أن تكن مبرمجة. بما أن هد نسخة تجربية فهى غير محتواه."
198
+
199
+ "The notes panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "لوحة الملاحظات متوقع أن تكن مبرمجة. بما أن هد نسخة تجربية فهى غير محتواه"
200
+
201
+ "Snippet Name": "اسم قصاصة"
202
+ "A one or two line long description of what this snippet does.": "وصف سطر واحد أو اثنين عما تفعل هذه القصاصة."
203
+
204
+ "First Name": "اﻷسم اﻷول"
205
+ "Favorite Beer": "المفضلة"
206
+ "Insert Snippet": "إدراج قصاصة"
207
+
@@ -68,10 +68,10 @@ Mercury.I18n['da'] =
68
68
 
69
69
  # ### General
70
70
  # Error Messages
71
- "Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "Mercury.Regions.%s er ustøttet i denne klient. Støttede browsere er %s."
71
+ "Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "Mercury.Regions.%s er ikke understøttet i denne browser. Understøttede browsere er %s."
72
72
  "Mercury.PageEditor can only be instantiated once.": "Mercury.PageEditor kan kun blive instantieret én gang."
73
- "Opera isn't a fully supported browser, your results may not be optimal.": "Opera er ikke en fuldt ud støttet browser. Dine resultater kan derfor være uoptimale."
74
- "Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor fejlede med at indlæse: %s\n\n Prøv venligst at opdatere siden."
73
+ "Opera isn't a fully supported browser, your results may not be optimal.": "Opera er ikke en fuldt ud understøttet. Dine resultater kan derfor være uoptimale."
74
+ "Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor kunne ikke starte: %s\n\n Prøv venligst at opdatere siden."
75
75
  "Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "Regionstype er forkert formateret. Enten blev ingen datatype angivet, ellers er \"%s\" ukendt for \"%s\"regionen."
76
76
  "Mercury was unable to save to the url: %s": "Mercury var ikke i stand til at gemme til addressen: %s"
77
77
  # Confirmations
@@ -100,12 +100,12 @@ Mercury.I18n['da'] =
100
100
  "Error: Unable to upload the file": "Fejl: Kunne ikke uploade filen"
101
101
  "Malformed response from server": "Deform svar fra server"
102
102
  "Too large": "For stor"
103
- "Unsupported format": "Formatet er ikke støttet"
103
+ "Unsupported format": "Formatet er ikke understøttet"
104
104
  # Statuses
105
105
  "Processing...": "Forarbejder..."
106
106
  "Uploading...": "Uploader..."
107
107
  "Aborted": "Afbrudt"
108
- "Successfully uploaded...": "Uploadningen lykkedes..."
108
+ "Successfully uploaded...": "Upload færdig..."
109
109
  "Name: %s": "Navn: %s"
110
110
  "Size: %s": "Størrelse: %s"
111
111
  "Type: %s": "Type: %s"
@@ -129,7 +129,7 @@ Mercury.I18n['da'] =
129
129
  "Existing Links": "Eksisterende links"
130
130
  "Bookmark": "Bogmærke"
131
131
  "Options": "Indstillinger"
132
- "Link Target": "Link mål"
132
+ "Link Target": "Link Target"
133
133
  "Self (the same window or tab)": "Self (det samme vindue eller fane)"
134
134
  "Blank (a new window or tab)": "Blank (et nyt vindue eller fane)"
135
135
  "Top (removes any frames)": "Top (fjerner eventuelle rammer)"
@@ -141,7 +141,7 @@ Mercury.I18n['da'] =
141
141
  # Insert Media Modal (media.html)
142
142
  "Images": "Billeder"
143
143
  "Videos": "Videoer"
144
- "YouTube Share URL": "YouTube delnings-URL"
144
+ "YouTube Share URL": "YouTube del-URL"
145
145
  "Vimeo URL": "Vimeo-URL"
146
146
  "Alignment": "Justering"
147
147
  "None": "Ingen"
@@ -0,0 +1,209 @@
1
+ Mercury.I18n['zh'] =
2
+
3
+ _CN_:
4
+ # ## Javascript Strings
5
+
6
+ # ### Default Configuration
7
+ "Save": "保存"
8
+ "Save this page": "保存本页"
9
+ "Preview": "预览"
10
+ "Preview this page": "预览本页"
11
+ "Undo": "撤销"
12
+ "Undo your last action": "撤销上一个操作"
13
+ "Redo": "重做"
14
+ "Redo your last action": "重做上一个操作"
15
+ "Link": "链接"
16
+ "Insert Link": "插入链接"
17
+ "Media": "多媒体"
18
+ "Insert Media (images and videos)": "插入多媒体(图片、视频)"
19
+ "Table": "表格"
20
+ "Insert Table": "插入表格"
21
+ "Character": "符号"
22
+ "Special Characters": "特殊符号"
23
+ "Snippet": "小片段"
24
+ "Snippet Panel": "小片段面板"
25
+ "History": "历史"
26
+ "Page Version History": "本页历史版本"
27
+ "Notes": "备忘"
28
+ "Page Notes": "本页备忘"
29
+ "Style": "样式"
30
+ "Block Format": "段落格式"
31
+ "Background Color": "背景颜色"
32
+ "Text Color": "文本颜色"
33
+ "Bold": "加粗"
34
+ "Italicize": "斜体"
35
+ "Overline": "上划线"
36
+ "Strikethrough": "删除线"
37
+ "Underline": "下划线"
38
+ "Subscript": "下标"
39
+ "Superscript": "上标"
40
+ "Align Left": "左对齐"
41
+ "Center": "居中"
42
+ "Align Right": "右对齐"
43
+ "Justify Full": "两端对齐"
44
+ "Unordered List": "无序列表"
45
+ "Numbered List": "有序列表"
46
+ "Decrease Indentation": "减小缩进"
47
+ "Increase Indentation": "增大缩进"
48
+ "Insert Table Row": "插入行"
49
+ "Insert a table row before the cursor": "在光标上方插入行"
50
+ "Insert a table row after the cursor": "在光标下方插入行"
51
+ "Delete Table Row": "删除行"
52
+ "Delete this table row": "删除本行"
53
+ "Insert Table Column": "插入列"
54
+ "Insert a table column before the cursor": "在光标左边插入列"
55
+ "Insert a table column after the cursor": "在光标右边插入列"
56
+ "Delete Table Column": "删除列"
57
+ "Delete this table column": "删除本列"
58
+ "Increase Cell Columns": "增加列数"
59
+ "Decrease Cell Columns": "减少列数"
60
+ "Increase Cell Rows": "增加行数"
61
+ "Decrease Cell Rows": "减少行数"
62
+ "Horizontal Rule": "分割线"
63
+ "Insert a horizontal rule": "插入分割线"
64
+ "Remove Formatting": "清除格式"
65
+ "Remove formatting for the selection": "清楚选中部分格式"
66
+ "Edit HTML": "编辑源代码(HTML)"
67
+ "Edit the HTML content": "编辑源代码 HTML 内容"
68
+ "Edit Snippet Settings": "编辑小片段设置"
69
+ "Remove Snippet": "删除小片段"
70
+
71
+ # ### General
72
+ # Error Messages
73
+ "Mercury.Regions.%s is unsupported in this client. Supported browsers are %s.": "您的浏览器不支持 Mercury.Regions.%s,支持的浏览器包括:%s。"
74
+ "Mercury.PageEditor can only be instantiated once.": "Mercury.PageEditor 只能被实例化一次。"
75
+ "Opera isn't a fully supported browser, your results may not be optimal.": "Mercury 编辑器不完全支持 Opera 浏览器,您显示的内容可能并不完美。"
76
+ "Mercury.PageEditor failed to load: %s\n\nPlease try refreshing.": "Mercury.PageEditor 载入失败:%s\n\n请尝试刷新一下本页。"
77
+ "Region type is malformed, no data-type provided, or \"%s\" is unknown for the \"%s\" region.": "地区不正确,没有提供数据类型,或“%s”不在“%s”区域中。"
78
+ "Mercury was unable to save to the url: %s": "Mercury 无法保存至这一 URL:%s"
79
+ # Confirmations
80
+ "You have unsaved changes. Are you sure you want to leave without saving them first?": "您还有未保存的修改,确定要放弃修改并离开吗?"
81
+
82
+ # ### Toolbar / Buttons
83
+ # Error Messages
84
+ "Unknown button type \"%s\" used for the \"%s\" button.": "未知的按钮类型“%s”被用于“%s”按钮。"
85
+ "Unknown button structure -- please provide an array, object, or string for \"%s\".": "未知的按钮结构——请给“%s”提供一个序列、对象或字符串。"
86
+
87
+ # ### Modals / Dialogs / Etc.
88
+ # Error Messages
89
+ "Mercury was unable to load %s for the \"%s\" dialog.": "Mercury 编辑器无法载入 %s 至“%s”对话框。"
90
+ "Mercury was unable to load %s for the lightview.": "Mercury 编辑器无法载入 %s 至弹出区域。"
91
+ "Mercury was unable to load %s for the modal.": "Mercury 编辑器无法载入 %s 至弹出框。"
92
+
93
+ # ### Snippets
94
+ # Error Messages
95
+ "Error loading the preview for the \"%s\" snippet.": "载入“%s”小片段预览时出错。"
96
+ # Misc
97
+ "Snippet Options": "小片段选项"
98
+
99
+ # ### Uploader
100
+ # Error Messages
101
+ "Unable to process response: %s": "无法处理相应:%s"
102
+ "Error: Unable to upload the file": "错误:无法上传文件"
103
+ "Malformed response from server": "服务器响应格式有误"
104
+ "Too large": "上传文件过大"
105
+ "Unsupported format": "格式不受支持"
106
+ # Statuses
107
+ "Processing...": "处理中……"
108
+ "Uploading...": "上传中……"
109
+ "Aborted": "已中止"
110
+ "Successfully uploaded...": "上传成功……"
111
+ "Name: %s": "文件名:%s"
112
+ "Size: %s": "文件大小:%s"
113
+ "Type: %s": "文件类型:%s"
114
+
115
+ # Inserting Media
116
+ "Error: The provided youtube share url was invalid.": "错误:您输入的 YouTube 分享链接无效。"
117
+ "Error: The provided vimeo url was invalid.": "错误:您输入的 Vimeo 分享链接无效。"
118
+
119
+ # Statusbar
120
+ "Path:": "路径:"
121
+
122
+
123
+ # ## HTML / Template Strings
124
+
125
+ # ### Modals
126
+ # Insert Link Modal (link.html)
127
+ "Link Content": "链接显示内容"
128
+ "Standard Links": "普通链接"
129
+ "URL": "网址"
130
+ "Index / Bookmark Links": "索引、书签链接"
131
+ "Existing Links": "已有链接"
132
+ "Bookmark": "书签"
133
+ "Options": "选项"
134
+ "Link Target": "链接目标窗口"
135
+ "Self (the same window or tab)": "本窗口中打开"
136
+ "Blank (a new window or tab)": "新窗口(或标签)中打开"
137
+ "Top (removes any frames)": "外层窗口中打开(去除帧框)"
138
+ "Popup Window (javascript new window popup)": "弹出窗口"
139
+ "Popup Width": "弹出窗口宽度"
140
+ "Popup Height": "弹出窗口高度"
141
+ "Insert Link": "插入链接"
142
+
143
+ # Insert Media Modal (media.html)
144
+ "Images": "图片"
145
+ "Videos": "视频"
146
+ "YouTube Share URL": "YouTube 分享链接"
147
+ "Vimeo URL": "Vimeo 分享链接"
148
+ "Alignment": "对齐方式"
149
+ "None": "默认"
150
+ "Left": "左对齐"
151
+ "Right": "右对齐"
152
+ "Top": "顶对齐"
153
+ "Middle": "中对齐"
154
+ "Bottom": "底对齐"
155
+ "Absolute Middle": "绝对中对齐"
156
+ "Absolute Bottom": "绝对底对齐"
157
+ "Width": "宽度"
158
+ "Height": "高度"
159
+ "Insert Media": "插入多媒体"
160
+
161
+ # Insert Table Modal (table.html)
162
+ "Rows": "行"
163
+ "Add Before": "前方插入"
164
+ "Add After": "后方插入"
165
+ "Remove": "删除"
166
+ "Columns": "列"
167
+ "Row Span": "行跨度"
168
+ "Column Span": "列跨度"
169
+ "Options": "选项"
170
+ "Alignment": "对齐方式"
171
+ "Border": "边框线宽度"
172
+ "Spacing": "单元格间距"
173
+ "Insert Table": "插入表格"
174
+
175
+ # HTML Editor Modal (htmleditor.html)
176
+ "HTML Editor": "HTML 编辑器"
177
+ "Save and Replace": "保存并替换"
178
+
179
+ # ### Dialogs / Etc.
180
+ # Color Palettes (forecolor.html, backcolor.html)
181
+ "Last Color Picked": "上次选中的颜色"
182
+
183
+ # Block Format Select (formatblock.html)
184
+ "Heading 1": "标题 1"
185
+ "Heading 2": "标题 2"
186
+ "Heading 3": "标题 3"
187
+ "Heading 4": "标题 4"
188
+ "Heading 5": "标题 5"
189
+ "Heading 6": "标题 6"
190
+ "Paragraph": "段落"
191
+ "Blockquote": "大段引用"
192
+ "Formatted": "预格式化"
193
+
194
+ # About Mercury Panel (about.html)
195
+ "Project Home": "项目主页"
196
+ "Project Source": "项目源代码"
197
+
198
+ # ### Demo / Placeholder / Defaults
199
+ "The history panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "本历史面板需要与服务器后端共同实现。因为这是一个演示,所以我们没有加入这一功能。"
200
+
201
+ "The notes panel is expected to be implemented with a server back end. Since this is a demo, we didn't include it.": "本备忘面板需要与服务器后端共同实现。因为这是一个演示,所以我们没有加入这一功能。"
202
+
203
+ "Snippet Name": "小片段名称"
204
+ "A one or two line long description of what this snippet does.": "用一两行描述一下这个小片段的功能"
205
+
206
+ "First Name": "名字"
207
+ "Favorite Beer": "最喜欢的啤酒"
208
+ "Insert Snippet": "插入小片段"
209
+