spree_summernote 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +1 -0
  4. data/Gemfile +7 -0
  5. data/LICENSE +21 -0
  6. data/README.md +32 -0
  7. data/Rakefile +46 -0
  8. data/app/assets/javascripts/spree/backend/spree_summernote.js +3 -0
  9. data/app/assets/javascripts/spree_summernote/locales/summernote-ar-AR.js +97 -0
  10. data/app/assets/javascripts/spree_summernote/locales/summernote-ca-ES.js +95 -0
  11. data/app/assets/javascripts/spree_summernote/locales/summernote-cs-CZ.js +96 -0
  12. data/app/assets/javascripts/spree_summernote/locales/summernote-da-DK.js +107 -0
  13. data/app/assets/javascripts/spree_summernote/locales/summernote-de-DE.js +97 -0
  14. data/app/assets/javascripts/spree_summernote/locales/summernote-es-ES.js +98 -0
  15. data/app/assets/javascripts/spree_summernote/locales/summernote-es-EU.js +96 -0
  16. data/app/assets/javascripts/spree_summernote/locales/summernote-fa-IR.js +98 -0
  17. data/app/assets/javascripts/spree_summernote/locales/summernote-fi-FI.js +97 -0
  18. data/app/assets/javascripts/spree_summernote/locales/summernote-fr-FR.js +100 -0
  19. data/app/assets/javascripts/spree_summernote/locales/summernote-he-IL.js +100 -0
  20. data/app/assets/javascripts/spree_summernote/locales/summernote-hu-HU.js +98 -0
  21. data/app/assets/javascripts/spree_summernote/locales/summernote-id-ID.js +96 -0
  22. data/app/assets/javascripts/spree_summernote/locales/summernote-it-IT.js +97 -0
  23. data/app/assets/javascripts/spree_summernote/locales/summernote-ja-JP.js +97 -0
  24. data/app/assets/javascripts/spree_summernote/locales/summernote-ko-KR.js +103 -0
  25. data/app/assets/javascripts/spree_summernote/locales/summernote-nb-NO.js +97 -0
  26. data/app/assets/javascripts/spree_summernote/locales/summernote-nl-NL.js +97 -0
  27. data/app/assets/javascripts/spree_summernote/locales/summernote-pl-PL.js +105 -0
  28. data/app/assets/javascripts/spree_summernote/locales/summernote-pt-BR.js +96 -0
  29. data/app/assets/javascripts/spree_summernote/locales/summernote-pt-PT.js +96 -0
  30. data/app/assets/javascripts/spree_summernote/locales/summernote-ro-RO.js +95 -0
  31. data/app/assets/javascripts/spree_summernote/locales/summernote-ru-RU.js +100 -0
  32. data/app/assets/javascripts/spree_summernote/locales/summernote-sk-SK.js +95 -0
  33. data/app/assets/javascripts/spree_summernote/locales/summernote-sl-SI.js +99 -0
  34. data/app/assets/javascripts/spree_summernote/locales/summernote-sr-RS-Latin.js +97 -0
  35. data/app/assets/javascripts/spree_summernote/locales/summernote-sr-RS.js +97 -0
  36. data/app/assets/javascripts/spree_summernote/locales/summernote-sv-SE.js +97 -0
  37. data/app/assets/javascripts/spree_summernote/locales/summernote-th-TH.js +99 -0
  38. data/app/assets/javascripts/spree_summernote/locales/summernote-tr-TR.js +104 -0
  39. data/app/assets/javascripts/spree_summernote/locales/summernote-uk-UA.js +99 -0
  40. data/app/assets/javascripts/spree_summernote/locales/summernote-vi-VN.js +97 -0
  41. data/app/assets/javascripts/spree_summernote/locales/summernote-zh-CN.js +96 -0
  42. data/app/assets/javascripts/spree_summernote/locales/summernote-zh-TW.js +95 -0
  43. data/app/assets/javascripts/spree_summernote/summernote.js +7006 -0
  44. data/app/assets/javascripts/spree_summernote/summernote_locales.js +2 -0
  45. data/app/assets/javascripts/spree_summernote/summernote_settings.js +50 -0
  46. data/app/assets/stylesheets/spree/backend/spree_summernote.css +5 -0
  47. data/app/assets/stylesheets/spree_summernote/summernote-bs3.css +5442 -0
  48. data/app/assets/stylesheets/spree_summernote/summernote.css +1 -0
  49. data/bin/rails +7 -0
  50. data/config/locales/en.yml +5 -0
  51. data/config/routes.rb +3 -0
  52. data/lib/generators/spree_summernote/install/install_generator.rb +15 -0
  53. data/lib/spree_summernote/engine.rb +20 -0
  54. data/lib/spree_summernote/factories.rb +6 -0
  55. data/lib/spree_summernote.rb +2 -0
  56. data/spec/spec_helper.rb +87 -0
  57. data/spree_summernote.gemspec +32 -0
  58. metadata +268 -0
@@ -0,0 +1,95 @@
1
+ (function ($) {
2
+ $.extend($.summernote.lang, {
3
+ 'zh-TW': {
4
+ font: {
5
+ bold: '粗體',
6
+ italic: '斜體',
7
+ underline: '底線',
8
+ clear: '清除格式',
9
+ height: '行高',
10
+ strikethrough: '刪除線',
11
+ size: '字體大小'
12
+ },
13
+ image: {
14
+ image: '圖片',
15
+ insert: '插入圖片',
16
+ resizeFull: '縮放至100%',
17
+ resizeHalf: '縮放至 50%',
18
+ resizeQuarter: '縮放至 25%',
19
+ floatLeft: '靠左浮動',
20
+ floatRight: '靠右浮動',
21
+ floatNone: '取消浮動',
22
+ dragImageHere: '將圖片拖曳至此處',
23
+ selectFromFiles: '從本機上傳',
24
+ url: '圖片網址'
25
+ },
26
+ link: {
27
+ link: '連結',
28
+ insert: '插入連結',
29
+ unlink: '取消連結',
30
+ edit: '編輯連結',
31
+ textToDisplay: '顯示文字',
32
+ url: '連結網址',
33
+ openInNewWindow: '在新視窗開啟'
34
+ },
35
+ table: {
36
+ table: '表格'
37
+ },
38
+ hr: {
39
+ insert: '水平線'
40
+ },
41
+ style: {
42
+ style: '樣式',
43
+ normal: '一般',
44
+ blockquote: '引用區塊',
45
+ pre: '程式碼區塊',
46
+ h1: '標題 1',
47
+ h2: '標題 2',
48
+ h3: '標題 3',
49
+ h4: '標題 4',
50
+ h5: '標題 5',
51
+ h6: '標題 6'
52
+ },
53
+ lists: {
54
+ unordered: '項目清單',
55
+ ordered: '編號清單'
56
+ },
57
+ options: {
58
+ help: '幫助',
59
+ fullscreen: '全螢幕',
60
+ codeview: '原始碼'
61
+ },
62
+ paragraph: {
63
+ paragraph: '段落',
64
+ outdent: '取消縮排',
65
+ indent: '增加縮排',
66
+ left: '靠右對齊',
67
+ center: '靠中對齊',
68
+ right: '靠右對齊',
69
+ justify: '左右對齊'
70
+ },
71
+ color: {
72
+ recent: '字型顏色',
73
+ more: '更多',
74
+ background: '背景',
75
+ foreground: '前景',
76
+ transparent: '透明',
77
+ setTransparent: '透明',
78
+ reset: '重設',
79
+ resetToDefault: '默認'
80
+ },
81
+ shortcut: {
82
+ shortcuts: '快捷鍵',
83
+ close: '關閉',
84
+ textFormatting: '文字格式',
85
+ action: '動作',
86
+ paragraphFormatting: '段落格式',
87
+ documentStyle: '文件格式'
88
+ },
89
+ history: {
90
+ undo: '復原',
91
+ redo: '取消復原'
92
+ }
93
+ }
94
+ });
95
+ })(jQuery);