i18n_locale_editor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/CHANGELOG +7 -0
  2. data/README.rdoc +4 -3
  3. data/VERSION +1 -1
  4. data/app/helpers/translations_helper.rb +2 -1
  5. data/lib/i18n_locale_editor.rb +1 -20
  6. data/public/{i18n-locale-editor.js → i18n_locale_editor/i18n-locale-editor.js} +15 -4
  7. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-blockquote.png +0 -0
  8. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h1.png +0 -0
  9. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h2.png +0 -0
  10. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h3.png +0 -0
  11. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h4.png +0 -0
  12. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h5.png +0 -0
  13. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-h6.png +0 -0
  14. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-p.png +0 -0
  15. data/public/i18n_locale_editor/wymeditor/iframe/default/lbl-pre.png +0 -0
  16. data/public/i18n_locale_editor/wymeditor/iframe/default/wymiframe.css +90 -0
  17. data/public/i18n_locale_editor/wymeditor/iframe/default/wymiframe.html +26 -0
  18. data/public/i18n_locale_editor/wymeditor/jquery.wymeditor.js +4688 -0
  19. data/public/i18n_locale_editor/wymeditor/jquery.wymeditor.min.js +1 -0
  20. data/public/i18n_locale_editor/wymeditor/jquery.wymeditor.pack.js +1 -0
  21. data/public/i18n_locale_editor/wymeditor/lang/bg.js +45 -0
  22. data/public/i18n_locale_editor/wymeditor/lang/ca.js +45 -0
  23. data/public/i18n_locale_editor/wymeditor/lang/cs.js +45 -0
  24. data/public/i18n_locale_editor/wymeditor/lang/cy.js +45 -0
  25. data/public/i18n_locale_editor/wymeditor/lang/de.js +45 -0
  26. data/public/i18n_locale_editor/wymeditor/lang/en.js +45 -0
  27. data/public/i18n_locale_editor/wymeditor/lang/es.js +45 -0
  28. data/public/i18n_locale_editor/wymeditor/lang/fa.js +46 -0
  29. data/public/i18n_locale_editor/wymeditor/lang/fi.js +44 -0
  30. data/public/i18n_locale_editor/wymeditor/lang/fr.js +45 -0
  31. data/public/i18n_locale_editor/wymeditor/lang/gl.js +45 -0
  32. data/public/i18n_locale_editor/wymeditor/lang/he.js +45 -0
  33. data/public/i18n_locale_editor/wymeditor/lang/hr.js +45 -0
  34. data/public/i18n_locale_editor/wymeditor/lang/hu.js +45 -0
  35. data/public/i18n_locale_editor/wymeditor/lang/it.js +45 -0
  36. data/public/i18n_locale_editor/wymeditor/lang/nb.js +45 -0
  37. data/public/i18n_locale_editor/wymeditor/lang/nl.js +45 -0
  38. data/public/i18n_locale_editor/wymeditor/lang/nn.js +45 -0
  39. data/public/i18n_locale_editor/wymeditor/lang/pl.js +45 -0
  40. data/public/i18n_locale_editor/wymeditor/lang/pt-br.js +45 -0
  41. data/public/i18n_locale_editor/wymeditor/lang/pt.js +45 -0
  42. data/public/i18n_locale_editor/wymeditor/lang/ru.js +45 -0
  43. data/public/i18n_locale_editor/wymeditor/lang/sv.js +45 -0
  44. data/public/i18n_locale_editor/wymeditor/lang/tr.js +45 -0
  45. data/public/i18n_locale_editor/wymeditor/lang/zh_cn.js +47 -0
  46. data/public/i18n_locale_editor/wymeditor/plugins/embed/jquery.wymeditor.embed.js +52 -0
  47. data/public/i18n_locale_editor/wymeditor/plugins/fullscreen/icon_fullscreen.gif +0 -0
  48. data/public/i18n_locale_editor/wymeditor/plugins/fullscreen/jquery.wymeditor.fullscreen.js +127 -0
  49. data/public/i18n_locale_editor/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js +57 -0
  50. data/public/i18n_locale_editor/wymeditor/plugins/resizable/jquery.wymeditor.resizable.js +91 -0
  51. data/public/i18n_locale_editor/wymeditor/plugins/resizable/readme.txt +124 -0
  52. data/public/i18n_locale_editor/wymeditor/plugins/tidy/README +19 -0
  53. data/public/i18n_locale_editor/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js +82 -0
  54. data/public/i18n_locale_editor/wymeditor/plugins/tidy/tidy.php +36 -0
  55. data/public/i18n_locale_editor/wymeditor/plugins/tidy/wand.png +0 -0
  56. data/public/i18n_locale_editor/wymeditor/skins/compact/icons.png +0 -0
  57. data/public/i18n_locale_editor/wymeditor/skins/compact/skin.css +134 -0
  58. data/public/i18n_locale_editor/wymeditor/skins/compact/skin.js +35 -0
  59. data/public/i18n_locale_editor/wymeditor/skins/default/icons.png +0 -0
  60. data/public/i18n_locale_editor/wymeditor/skins/default/skin.css +133 -0
  61. data/public/i18n_locale_editor/wymeditor/skins/default/skin.js +40 -0
  62. data/public/i18n_locale_editor/wymeditor/skins/minimal/images/bg.header.gif +0 -0
  63. data/public/i18n_locale_editor/wymeditor/skins/minimal/images/bg.selector.silver.gif +0 -0
  64. data/public/i18n_locale_editor/wymeditor/skins/minimal/images/bg.wymeditor.png +0 -0
  65. data/public/i18n_locale_editor/wymeditor/skins/minimal/images/icons.silver.gif +0 -0
  66. data/public/i18n_locale_editor/wymeditor/skins/minimal/skin.css +131 -0
  67. data/public/i18n_locale_editor/wymeditor/skins/minimal/skin.js +30 -0
  68. data/public/i18n_locale_editor/wymeditor/skins/silver/COPYING +674 -0
  69. data/public/i18n_locale_editor/wymeditor/skins/silver/README +27 -0
  70. data/public/i18n_locale_editor/wymeditor/skins/silver/images/bg.header.gif +0 -0
  71. data/public/i18n_locale_editor/wymeditor/skins/silver/images/bg.selector.silver.gif +0 -0
  72. data/public/i18n_locale_editor/wymeditor/skins/silver/images/bg.wymeditor.png +0 -0
  73. data/public/i18n_locale_editor/wymeditor/skins/silver/images/icons.silver.gif +0 -0
  74. data/public/i18n_locale_editor/wymeditor/skins/silver/skin.css +297 -0
  75. data/public/i18n_locale_editor/wymeditor/skins/silver/skin.js +61 -0
  76. data/public/i18n_locale_editor/wymeditor/skins/twopanels/icons.png +0 -0
  77. data/public/i18n_locale_editor/wymeditor/skins/twopanels/skin.css +134 -0
  78. data/public/i18n_locale_editor/wymeditor/skins/twopanels/skin.js +39 -0
  79. data/public/i18n_locale_editor/wymeditor/skins/wymeditor_icon.png +0 -0
  80. data/rails/init.rb +5 -5
  81. metadata +79 -5
@@ -0,0 +1,131 @@
1
+ /*
2
+ * WYMeditor : what you see is What You Mean web-based editor
3
+ * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/
4
+ * Dual licensed under the MIT (MIT-license.txt)
5
+ * and GPL (GPL-license.txt) licenses.
6
+ *
7
+ * For further information visit:
8
+ * http://www.wymeditor.org/
9
+ *
10
+ * File Name:
11
+ * skin.css
12
+ * main stylesheet for the minimal WYMeditor skin
13
+ * See the documentation for more info.
14
+ *
15
+ * File Authors:
16
+ * Jean-Francois Hovinne
17
+ * Scott Lewis (see Silver skin)
18
+ */
19
+
20
+ /* Set iframe */
21
+ .wym_skin_minimal div.wym_iframe iframe {
22
+ width: 90%;
23
+ height: 200px;
24
+ }
25
+
26
+ /* Hide h2 by default */
27
+ .wym_skin_minimal h2 {
28
+ display: none;
29
+ }
30
+
31
+ /* Show specific h2 */
32
+ .wym_skin_minimal div.wym_tools h2,
33
+ .wym_skin_minimal div.wym_containers h2,
34
+ .wym_skin_minimal div.wym_classes h2 {
35
+ display: block;
36
+ }
37
+
38
+ .wym_skin_minimal div.wym_section ul {
39
+ margin: 0;
40
+ }
41
+
42
+ .wym_skin_minimal div.wym_section ul li {
43
+ float: left;
44
+ list-style-type: none;
45
+ margin-right: 5px;
46
+ }
47
+
48
+ .wym_skin_minimal div.wym_area_top,
49
+ .wym_skin_minimal div.wym_area_right,
50
+ .wym_skin_minimal div.wym_containers,
51
+ .wym_skin_minimal div.wym_classes {
52
+ float: left;
53
+ }
54
+
55
+ .wym_skin_minimal div.wym_area_main {
56
+ clear: both;
57
+ }
58
+
59
+ .wym_skin_minimal div.wym_html {
60
+ width: 90%;
61
+ }
62
+
63
+ .wym_skin_minimal textarea.wym_html_val {
64
+ width: 100%;
65
+ height: 100px;
66
+ }
67
+
68
+ /* DROPDOWNS (see Silver skin) */
69
+ .wym_skin_minimal div.wym_dropdown {
70
+ cursor: pointer;
71
+ margin: 0px 4px 10px 0px;
72
+ padding: 0px;
73
+ z-index: 1001;
74
+ display: block;
75
+ }
76
+
77
+ .wym_skin_minimal div.wym_dropdown ul {
78
+ display: none;
79
+ width: 124px;
80
+ padding: 0px;
81
+ margin: 0px;
82
+ list-style-type: none;
83
+ list-style-image: none;
84
+ z-index: 1002;
85
+ position: absolute;
86
+ border-top: 1px solid #AAA;
87
+ }
88
+
89
+ .wym_skin_minimal div.wym_dropdown ul li {
90
+ width: 146px;
91
+ height: 20px;
92
+ padding: 0px;
93
+ margin: 0px;
94
+ border: 1px solid #777;
95
+ border-top: none;
96
+ background: #EEE;
97
+ list-style-image: none;
98
+ }
99
+
100
+ .wym_skin_minimal div.wym_dropdown h2 {
101
+ width: 138px;
102
+ height: 16px;
103
+ color: #000;
104
+ background-image: url(images/bg.selector.silver.gif);
105
+ background-position: 0px -18px;
106
+ background-repeat: no-repeat;
107
+ border: none;
108
+ font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
109
+ font-size: 12px;
110
+ font-weight: bold;
111
+ padding: 2px 0px 0px 10px;
112
+ margin: 0px;
113
+ }
114
+
115
+ .wym_skin_minimal div.wym_dropdown a {
116
+ text-decoration: none;
117
+ font-family: "Trebuchet MS", Verdana, Arial, Helvetica, Sanserif;
118
+ font-size: 12px;
119
+ padding: 5px 0px 0px 10px;
120
+ display: block;
121
+ width: 136px;
122
+ height: 15px;
123
+ color: #000;
124
+ text-align: left;
125
+ margin-left: 0px;
126
+ }
127
+
128
+ .wym_skin_minimal div.wym_dropdown a:hover {
129
+ background: #BBB;
130
+ border-bottom: none;
131
+ }
@@ -0,0 +1,30 @@
1
+ jQuery.fn.selectify = function() {
2
+ return this.each(function() {
3
+ jQuery(this).hover(
4
+ function() {
5
+ jQuery("h2", this).css("background-position", "0px -18px");
6
+ jQuery("ul", this).fadeIn("fast");
7
+ },
8
+ function() {
9
+ jQuery("h2", this).css("background-position", "");
10
+ jQuery("ul", this).fadeOut("fast");
11
+ }
12
+ );
13
+ });
14
+ };
15
+
16
+ WYMeditor.SKINS['minimal'] = {
17
+ //placeholder for the skin JS, if needed
18
+
19
+ //init the skin
20
+ //wym is the WYMeditor.editor instance
21
+ init: function(wym) {
22
+
23
+ //render following sections as dropdown menus
24
+ jQuery(wym._box).find(wym._options.toolsSelector + ', ' + wym._options.containersSelector + ', ' + wym._options.classesSelector)
25
+ .addClass("wym_dropdown")
26
+ .selectify();
27
+
28
+
29
+ }
30
+ };