damagecontrol 0.5.0 → 0.5.0.1391

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. data/README +67 -11
  2. data/Rakefile +15 -6
  3. data/app/controllers/admin_controller.rb +0 -3
  4. data/app/controllers/application.rb +42 -163
  5. data/app/controllers/build_controller.rb +33 -0
  6. data/app/controllers/files_controller.rb +1 -1
  7. data/app/controllers/project_controller.rb +23 -65
  8. data/app/controllers/rails_ext.rb +247 -0
  9. data/app/controllers/rscm_ext.rb +52 -0
  10. data/app/helpers/build_helper.rb +2 -0
  11. data/app/views/build/email.rhtml +18 -0
  12. data/app/views/build/status.rhtml +20 -0
  13. data/app/views/build/tests.rhtml +2 -0
  14. data/app/views/layouts/{rscm.rhtml → default.rhtml} +10 -4
  15. data/app/views/project/_changesets_list.rhtml +2 -2
  16. data/app/views/project/_cvs.rhtml +4 -5
  17. data/app/views/project/_project.rhtml +9 -9
  18. data/app/views/project/_select_pane.rhtml +26 -0
  19. data/app/views/project/_tab_pane.rhtml +23 -0
  20. data/app/views/project/changeset.rhtml +35 -0
  21. data/app/views/project/view.rhtml +18 -32
  22. data/app/views/setup/welcome.rhtml +118 -0
  23. data/config/database.yml +20 -20
  24. data/config/environment.rb +66 -60
  25. data/config/environments/development.rb +3 -2
  26. data/config/environments/production.rb +3 -2
  27. data/config/environments/test.rb +3 -2
  28. data/config/routes.rb +15 -0
  29. data/lib/damagecontrol/app.rb +11 -40
  30. data/lib/damagecontrol/build.rb +50 -8
  31. data/lib/damagecontrol/directories.rb +7 -6
  32. data/lib/damagecontrol/poller.rb +11 -20
  33. data/lib/damagecontrol/project.rb +83 -16
  34. data/lib/damagecontrol/publisher/ambient_orb.rb +16 -0
  35. data/lib/damagecontrol/publisher/archive.rb +16 -0
  36. data/lib/damagecontrol/publisher/base.rb +25 -0
  37. data/lib/damagecontrol/publisher/build_duration.rb +16 -0
  38. data/lib/damagecontrol/publisher/email.rb +59 -0
  39. data/lib/damagecontrol/publisher/execute.rb +49 -0
  40. data/lib/damagecontrol/publisher/ftp.rb +16 -0
  41. data/lib/damagecontrol/publisher/growl.rb +44 -0
  42. data/lib/damagecontrol/publisher/irc.rb +31 -0
  43. data/lib/damagecontrol/publisher/jabber.rb +68 -0
  44. data/lib/damagecontrol/publisher/scp.rb +16 -0
  45. data/lib/damagecontrol/publisher/x10cm11a.rb +17 -0
  46. data/lib/damagecontrol/publisher/x10cm17a.rb +17 -0
  47. data/lib/damagecontrol/publisher/yahoo.rb +16 -0
  48. data/lib/damagecontrol/standard_persister.rb +2 -2
  49. data/lib/damagecontrol/tracker.rb +48 -6
  50. data/lib/damagecontrol/visitor/rss_writer.rb +1 -1
  51. data/lib/damagecontrol/visitor/yaml_persister.rb +10 -1
  52. data/public/404.html +5 -5
  53. data/public/500.html +5 -5
  54. data/public/dispatch.cgi +2 -2
  55. data/public/dispatch.fcgi +1 -1
  56. data/public/dispatch.rb +2 -2
  57. data/public/images/growlicon.png +0 -0
  58. data/public/images/megaphone.png +0 -0
  59. data/public/images/monotone-logo.png +0 -0
  60. data/public/images/publisher/ambient_orb.png +0 -0
  61. data/public/images/publisher/build_duration.png +0 -0
  62. data/public/images/publisher/email.png +0 -0
  63. data/public/images/publisher/execute.png +0 -0
  64. data/public/images/publisher/growl.png +0 -0
  65. data/public/images/publisher/irc.png +0 -0
  66. data/public/images/publisher/jabber.png +0 -0
  67. data/public/images/publisher/x10cm11a.png +0 -0
  68. data/public/images/publisher/x10cm17a.png +0 -0
  69. data/public/images/publisher/yahoo.png +0 -0
  70. data/public/index.html +70 -1
  71. data/public/javascripts/dateFormat.js +283 -0
  72. data/public/javascripts/jscalendar/ChangeLog +500 -0
  73. data/public/javascripts/jscalendar/README +33 -0
  74. data/public/javascripts/jscalendar/bugtest-hidden-selects.html +108 -0
  75. data/public/javascripts/jscalendar/calendar-blue.css +231 -0
  76. data/public/javascripts/jscalendar/calendar-blue2.css +235 -0
  77. data/public/javascripts/jscalendar/calendar-brown.css +224 -0
  78. data/public/javascripts/jscalendar/calendar-green.css +228 -0
  79. data/public/javascripts/jscalendar/calendar-setup.js +181 -0
  80. data/public/javascripts/jscalendar/calendar-setup_stripped.js +21 -0
  81. data/public/javascripts/jscalendar/calendar-system.css +250 -0
  82. data/public/javascripts/jscalendar/calendar-tas.css +238 -0
  83. data/public/javascripts/jscalendar/calendar-win2k-1.css +270 -0
  84. data/public/javascripts/jscalendar/calendar-win2k-2.css +270 -0
  85. data/public/javascripts/jscalendar/calendar-win2k-cold-1.css +264 -0
  86. data/public/javascripts/jscalendar/calendar-win2k-cold-2.css +270 -0
  87. data/public/javascripts/jscalendar/calendar.js +1715 -0
  88. data/public/javascripts/jscalendar/calendar.php +119 -0
  89. data/public/javascripts/jscalendar/calendar_stripped.js +12 -0
  90. data/public/javascripts/jscalendar/doc/html/reference-Z-S.css +0 -0
  91. data/public/javascripts/jscalendar/doc/html/reference.css +34 -0
  92. data/public/javascripts/jscalendar/doc/html/reference.html +1316 -0
  93. data/public/javascripts/jscalendar/doc/reference.pdf +0 -0
  94. data/public/javascripts/jscalendar/img.gif +0 -0
  95. data/public/javascripts/jscalendar/index.html +333 -0
  96. data/public/javascripts/jscalendar/lang/calendar-af.js +39 -0
  97. data/public/javascripts/jscalendar/lang/calendar-br.js +45 -0
  98. data/public/javascripts/jscalendar/lang/calendar-ca.js +45 -0
  99. data/public/javascripts/jscalendar/lang/calendar-cs-win.js +34 -0
  100. data/public/javascripts/jscalendar/lang/calendar-da.js +63 -0
  101. data/public/javascripts/jscalendar/lang/calendar-de.js +100 -0
  102. data/public/javascripts/jscalendar/lang/calendar-du.js +45 -0
  103. data/public/javascripts/jscalendar/lang/calendar-el.js +89 -0
  104. data/public/javascripts/jscalendar/lang/calendar-en.js +123 -0
  105. data/public/javascripts/jscalendar/lang/calendar-es.js +114 -0
  106. data/public/javascripts/jscalendar/lang/calendar-fi.js +98 -0
  107. data/public/javascripts/jscalendar/lang/calendar-fr.js +86 -0
  108. data/public/javascripts/jscalendar/lang/calendar-hr-utf8.js +49 -0
  109. data/public/javascripts/jscalendar/lang/calendar-hr.js +0 -0
  110. data/public/javascripts/jscalendar/lang/calendar-hu.js +45 -0
  111. data/public/javascripts/jscalendar/lang/calendar-it.js +79 -0
  112. data/public/javascripts/jscalendar/lang/calendar-jp.js +45 -0
  113. data/public/javascripts/jscalendar/lang/calendar-ko-utf8.js +120 -0
  114. data/public/javascripts/jscalendar/lang/calendar-ko.js +120 -0
  115. data/public/javascripts/jscalendar/lang/calendar-lt-utf8.js +114 -0
  116. data/public/javascripts/jscalendar/lang/calendar-lt.js +114 -0
  117. data/public/javascripts/jscalendar/lang/calendar-nl.js +45 -0
  118. data/public/javascripts/jscalendar/lang/calendar-no.js +45 -0
  119. data/public/javascripts/jscalendar/lang/calendar-pl-utf8.js +93 -0
  120. data/public/javascripts/jscalendar/lang/calendar-pl.js +56 -0
  121. data/public/javascripts/jscalendar/lang/calendar-pt.js +45 -0
  122. data/public/javascripts/jscalendar/lang/calendar-ro.js +66 -0
  123. data/public/javascripts/jscalendar/lang/calendar-ru.js +45 -0
  124. data/public/javascripts/jscalendar/lang/calendar-si.js +94 -0
  125. data/public/javascripts/jscalendar/lang/calendar-sk.js +99 -0
  126. data/public/javascripts/jscalendar/lang/calendar-sp.js +63 -0
  127. data/public/javascripts/jscalendar/lang/calendar-sv.js +93 -0
  128. data/public/javascripts/jscalendar/lang/calendar-tr.js +58 -0
  129. data/public/javascripts/jscalendar/lang/calendar-zh.js +45 -0
  130. data/public/javascripts/jscalendar/menuarrow.gif +0 -0
  131. data/public/javascripts/jscalendar/menuarrow2.gif +0 -0
  132. data/public/javascripts/jscalendar/release-notes.html +334 -0
  133. data/public/javascripts/jscalendar/simple-1.html +244 -0
  134. data/public/javascripts/jscalendar/simple-2.html +108 -0
  135. data/public/javascripts/jscalendar/simple-3.html +130 -0
  136. data/public/javascripts/jscalendar/test-position.html +40 -0
  137. data/public/javascripts/jscalendar/test.php +116 -0
  138. data/public/javascripts/toggle_div.js +18 -0
  139. data/public/stylesheets/niceones.txt +1 -0
  140. data/public/stylesheets/style.css +8 -1
  141. data/script/breakpointer +4 -5
  142. data/script/console +19 -27
  143. data/script/console_sandbox.rb +7 -0
  144. data/script/destroy +5 -0
  145. data/script/generate +3 -68
  146. data/script/server +6 -16
  147. data/test/damagecontrol/build_test.rb +8 -8
  148. data/test/damagecontrol/poller_test.rb +10 -18
  149. data/test/damagecontrol/project_test.rb +49 -13
  150. data/test/damagecontrol/publisher/base_test.rb +26 -0
  151. data/test/damagecontrol/publisher/build/email.rhtml +0 -0
  152. data/test/damagecontrol/publisher/email_test.rb +26 -0
  153. data/test/damagecontrol/publisher/fixture.rb +34 -0
  154. data/test/damagecontrol/publisher/growl_test.rb +15 -0
  155. data/test/damagecontrol/publisher/jabber_test.rb +15 -0
  156. data/test/damagecontrol/scm_web_test.rb +1 -1
  157. data/test/damagecontrol/visitor/changesets.rss +1 -1
  158. data/test/damagecontrol/visitor/diff_persister_test.rb +4 -4
  159. data/test/functional/build_controller_test.rb +17 -0
  160. data/test/test_helper.rb +13 -13
  161. metadata +185 -24
  162. data/app/views/project/_bugzilla.rhtml +0 -13
  163. data/app/views/project/_jira.rhtml +0 -19
  164. data/app/views/project/_mooky.rhtml +0 -23
  165. data/app/views/project/_rubyforge.rhtml +0 -19
  166. data/app/views/project/_scarab.rhtml +0 -19
  167. data/app/views/project/_scms.rhtml +0 -15
  168. data/app/views/project/_sourceforge.rhtml +0 -19
  169. data/app/views/project/_starteam.rhtml +0 -43
  170. data/app/views/project/_svn.rhtml +0 -22
  171. data/app/views/project/_trac.rhtml +0 -13
  172. data/app/views/project/_trackers.rhtml +0 -18
  173. data/app/views/project/changesets.rhtml +0 -31
@@ -0,0 +1,99 @@
1
+ // ** I18N
2
+
3
+ // Calendar SK language
4
+ // Author: Peter Valach (pvalach@gmx.net)
5
+ // Encoding: utf-8
6
+ // Last update: 2003/10/29
7
+ // Distributed under the same terms as the calendar itself.
8
+
9
+ // full day names
10
+ Calendar._DN = new Array
11
+ ("NedeÄľa",
12
+ "Pondelok",
13
+ "Utorok",
14
+ "Streda",
15
+ "Ĺ tvrtok",
16
+ "Piatok",
17
+ "Sobota",
18
+ "NedeÄľa");
19
+
20
+ // short day names
21
+ Calendar._SDN = new Array
22
+ ("Ned",
23
+ "Pon",
24
+ "Uto",
25
+ "Str",
26
+ "Ĺ tv",
27
+ "Pia",
28
+ "Sob",
29
+ "Ned");
30
+
31
+ // full month names
32
+ Calendar._MN = new Array
33
+ ("Január",
34
+ "Február",
35
+ "Marec",
36
+ "AprĂ­l",
37
+ "Máj",
38
+ "JĂşn",
39
+ "JĂşl",
40
+ "August",
41
+ "September",
42
+ "OktĂłber",
43
+ "November",
44
+ "December");
45
+
46
+ // short month names
47
+ Calendar._SMN = new Array
48
+ ("Jan",
49
+ "Feb",
50
+ "Mar",
51
+ "Apr",
52
+ "Máj",
53
+ "JĂşn",
54
+ "JĂşl",
55
+ "Aug",
56
+ "Sep",
57
+ "Okt",
58
+ "Nov",
59
+ "Dec");
60
+
61
+ // tooltips
62
+ Calendar._TT = {};
63
+ Calendar._TT["INFO"] = "O kalendári";
64
+
65
+ Calendar._TT["ABOUT"] =
66
+ "DHTML Date/Time Selector\n" +
67
+ "(c) dynarch.com 2002-2003\n" +
68
+ "Poslednú verziu nájdete na: http://dynarch.com/mishoo/calendar.epl\n" +
69
+ "Distribuované pod GNU LGPL. Viď http://gnu.org/licenses/lgpl.html pre detaily." +
70
+ "\n\n" +
71
+ "Výber dátumu:\n" +
72
+ "- Použite tlačidlá \xab, \xbb pre výber roku\n" +
73
+ "- Použite tlačidlá " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " pre výber mesiaca\n" +
74
+ "- Ak ktorékoľvek z týchto tlačidiel podržíte dlhšie, zobrazí sa rýchly výber.";
75
+ Calendar._TT["ABOUT_TIME"] = "\n\n" +
76
+ "Výber času:\n" +
77
+ "- Kliknutie na niektorú položku času ju zvýši\n" +
78
+ "- Shift-klik ju znĂ­Ĺľi\n" +
79
+ "- Ak podržíte tlačítko stlačené, posúvaním meníte hodnotu.";
80
+
81
+ Calendar._TT["PREV_YEAR"] = "Predošlý rok (podržte pre menu)";
82
+ Calendar._TT["PREV_MONTH"] = "Predošlý mesiac (podržte pre menu)";
83
+ Calendar._TT["GO_TODAY"] = "Prejsť na dnešok";
84
+ Calendar._TT["NEXT_MONTH"] = "Nasl. mesiac (podrĹľte pre menu)";
85
+ Calendar._TT["NEXT_YEAR"] = "Nasl. rok (podrĹľte pre menu)";
86
+ Calendar._TT["SEL_DATE"] = "Zvoľte dátum";
87
+ Calendar._TT["DRAG_TO_MOVE"] = "PodrĹľanĂ­m tlaÄŤĂ­tka zmenĂ­te polohu";
88
+ Calendar._TT["PART_TODAY"] = " (dnes)";
89
+ Calendar._TT["MON_FIRST"] = "ZobraziĹĄ pondelok ako prvĂ˝";
90
+ Calendar._TT["SUN_FIRST"] = "ZobraziĹĄ nedeÄľu ako prvĂş";
91
+ Calendar._TT["CLOSE"] = "ZavrieĹĄ";
92
+ Calendar._TT["TODAY"] = "Dnes";
93
+ Calendar._TT["TIME_PART"] = "(Shift-)klik/ĹĄahanie zmenĂ­ hodnotu";
94
+
95
+ // date formats
96
+ Calendar._TT["DEF_DATE_FORMAT"] = "$d. %m. %Y";
97
+ Calendar._TT["TT_DATE_FORMAT"] = "%a, %e. %b";
98
+
99
+ Calendar._TT["WK"] = "týž";
@@ -0,0 +1,63 @@
1
+ // ** I18N
2
+ Calendar._DN = new Array
3
+ ("Domingo",
4
+ "Lunes",
5
+ "Martes",
6
+ "Miercoles",
7
+ "Jueves",
8
+ "Viernes",
9
+ "Sabado",
10
+ "Domingo");
11
+ Calendar._MN = new Array
12
+ ("Enero",
13
+ "Febrero",
14
+ "Marzo",
15
+ "Abril",
16
+ "Mayo",
17
+ "Junio",
18
+ "Julio",
19
+ "Agosto",
20
+ "Septiembre",
21
+ "Octubre",
22
+ "Noviembre",
23
+ "Diciembre");
24
+
25
+ // tooltips
26
+ Calendar._TT = {};
27
+ Calendar._TT["INFO"] = "Informaci�n del Calendario";
28
+
29
+ Calendar._TT["ABOUT"] =
30
+ "DHTML Date/Time Selector\n" +
31
+ "(c) dynarch.com 2002-2003\n" + // don't translate this this ;-)
32
+ "Nuevas versiones en: http://dynarch.com/mishoo/calendar.epl\n" +
33
+ "Distribuida bajo licencia GNU LGPL. Para detalles vea http://gnu.org/licenses/lgpl.html ." +
34
+ "\n\n" +
35
+ "Selecci�n de Fechas:\n" +
36
+ "- Use \xab, \xbb para seleccionar el a�o\n" +
37
+ "- Use " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " para seleccionar el mes\n" +
38
+ "- Mantenga presionado el bot�n del rat�n en cualquiera de las opciones superiores para un acceso rapido .";
39
+ Calendar._TT["ABOUT_TIME"] = "\n\n" +
40
+ "Selecci�n del Reloj:\n" +
41
+ "- Seleccione la hora para cambiar el reloj\n" +
42
+ "- o presione Shift-click para disminuirlo\n" +
43
+ "- o presione click y arrastre del rat�n para una selecci�n rapida.";
44
+
45
+ Calendar._TT["TOGGLE"] = "Primer dia de la semana";
46
+ Calendar._TT["PREV_YEAR"] = "A�o anterior (Presione para menu)";
47
+ Calendar._TT["PREV_MONTH"] = "Mes Anterior (Presione para menu)";
48
+ Calendar._TT["GO_TODAY"] = "Ir a Hoy";
49
+ Calendar._TT["NEXT_MONTH"] = "Mes Siguiente (Presione para menu)";
50
+ Calendar._TT["NEXT_YEAR"] = "A�o Siguiente (Presione para menu)";
51
+ Calendar._TT["SEL_DATE"] = "Seleccione fecha";
52
+ Calendar._TT["DRAG_TO_MOVE"] = "Arrastre y mueva";
53
+ Calendar._TT["PART_TODAY"] = " (Hoy)";
54
+ Calendar._TT["MON_FIRST"] = "Lunes Primero";
55
+ Calendar._TT["SUN_FIRST"] = "Domingo Primero";
56
+ Calendar._TT["CLOSE"] = "Cerrar";
57
+ Calendar._TT["TODAY"] = "Hoy";
58
+
59
+ // date formats
60
+ Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-yy";
61
+ Calendar._TT["TT_DATE_FORMAT"] = "%A, %e de %B de %Y";
62
+
63
+ Calendar._TT["WK"] = "Smn";
@@ -0,0 +1,93 @@
1
+ // ** I18N
2
+
3
+ // Calendar SV language (Swedish, svenska)
4
+ // Author: Mihai Bazon, <mishoo@infoiasi.ro>
5
+ // Translation team: <sv@li.org>
6
+ // Translator: Leonard Norrg�rd <leonard.norrgard@refactor.fi>
7
+ // Last translator: Leonard Norrg�rd <leonard.norrgard@refactor.fi>
8
+ // Encoding: iso-latin-1
9
+ // Distributed under the same terms as the calendar itself.
10
+
11
+ // For translators: please use UTF-8 if possible. We strongly believe that
12
+ // Unicode is the answer to a real internationalized world. Also please
13
+ // include your contact information in the header, as can be seen above.
14
+
15
+ // full day names
16
+ Calendar._DN = new Array
17
+ ("s�ndag",
18
+ "m�ndag",
19
+ "tisdag",
20
+ "onsdag",
21
+ "torsdag",
22
+ "fredag",
23
+ "l�rdag",
24
+ "s�ndag");
25
+
26
+ // Please note that the following array of short day names (and the same goes
27
+ // for short month names, _SMN) isn't absolutely necessary. We give it here
28
+ // for exemplification on how one can customize the short day names, but if
29
+ // they are simply the first N letters of the full name you can simply say:
30
+ //
31
+ // Calendar._SDN_len = N; // short day name length
32
+ // Calendar._SMN_len = N; // short month name length
33
+ //
34
+ // If N = 3 then this is not needed either since we assume a value of 3 if not
35
+ // present, to be compatible with translation files that were written before
36
+ // this feature.
37
+ Calendar._SDN_len = 2;
38
+ Calendar._SMN_len = 3;
39
+
40
+ // full month names
41
+ Calendar._MN = new Array
42
+ ("januari",
43
+ "februari",
44
+ "mars",
45
+ "april",
46
+ "maj",
47
+ "juni",
48
+ "juli",
49
+ "augusti",
50
+ "september",
51
+ "oktober",
52
+ "november",
53
+ "december");
54
+
55
+ // tooltips
56
+ Calendar._TT = {};
57
+ Calendar._TT["INFO"] = "Om kalendern";
58
+
59
+ Calendar._TT["ABOUT"] =
60
+ "DHTML Datum/tid-v�ljare\n" +
61
+ "(c) dynarch.com 2002-2003\n" + // don't translate this this ;-)
62
+ "F�r senaste version g� till: http://dynarch.com/mishoo/calendar.epl\n" +
63
+ "Distribueras under GNU LGPL. Se http://gnu.org/licenses/lgpl.html f�r detaljer." +
64
+ "\n\n" +
65
+ "Val av datum:\n" +
66
+ "- Anv�nd knapparna \xab, \xbb f�r att v�lja �r\n" +
67
+ "- Anv�nd knapparna " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " f�r att v�lja m�nad\n" +
68
+ "- H�ll musknappen nedtryckt p� n�gon av ovanst�ende knappar f�r snabbare val.";
69
+ Calendar._TT["ABOUT_TIME"] = "\n\n" +
70
+ "Val av tid:\n" +
71
+ "- Klicka p� en del av tiden f�r att �ka den delen\n" +
72
+ "- eller skift-klicka f�r att minska den\n" +
73
+ "- eller klicka och drag f�r snabbare val.";
74
+
75
+ Calendar._TT["PREV_YEAR"] = "F�reg�ende �r (h�ll f�r menu)";
76
+ Calendar._TT["PREV_MONTH"] = "F�reg�ende m�nad (h�ll f�r menu)";
77
+ Calendar._TT["GO_TODAY"] = "G� till dagens datum";
78
+ Calendar._TT["NEXT_MONTH"] = "F�ljande m�nad (h�ll f�r menu)";
79
+ Calendar._TT["NEXT_YEAR"] = "F�ljande �r (h�ll f�r menu)";
80
+ Calendar._TT["SEL_DATE"] = "V�lj datum";
81
+ Calendar._TT["DRAG_TO_MOVE"] = "Drag f�r att flytta";
82
+ Calendar._TT["PART_TODAY"] = " (idag)";
83
+ Calendar._TT["MON_FIRST"] = "Visa m�ndag f�rst";
84
+ Calendar._TT["SUN_FIRST"] = "Visa s�ndag f�rst";
85
+ Calendar._TT["CLOSE"] = "St�ng";
86
+ Calendar._TT["TODAY"] = "Idag";
87
+ Calendar._TT["TIME_PART"] = "(Skift-)klicka eller drag f�r att �ndra tid";
88
+
89
+ // date formats
90
+ Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d";
91
+ Calendar._TT["TT_DATE_FORMAT"] = "%A %d %b %Y";
92
+
93
+ Calendar._TT["WK"] = "vecka";
@@ -0,0 +1,58 @@
1
+ //////////////////////////////////////////////////////////////////////////////////////////////
2
+ // Turkish Translation by Nuri AKMAN
3
+ // Location: Ankara/TURKEY
4
+ // e-mail : nuriakman@hotmail.com
5
+ // Date : April, 9 2003
6
+ //
7
+ // Note: if Turkish Characters does not shown on you screen
8
+ // please include falowing line your html code:
9
+ //
10
+ // <meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
11
+ //
12
+ //////////////////////////////////////////////////////////////////////////////////////////////
13
+
14
+ // ** I18N
15
+ Calendar._DN = new Array
16
+ ("Pazar",
17
+ "Pazartesi",
18
+ "Sal�",
19
+ "�ar�amba",
20
+ "Per�embe",
21
+ "Cuma",
22
+ "Cumartesi",
23
+ "Pazar");
24
+ Calendar._MN = new Array
25
+ ("Ocak",
26
+ "�ubat",
27
+ "Mart",
28
+ "Nisan",
29
+ "May�s",
30
+ "Haziran",
31
+ "Temmuz",
32
+ "A�ustos",
33
+ "Eyl�l",
34
+ "Ekim",
35
+ "Kas�m",
36
+ "Aral�k");
37
+
38
+ // tooltips
39
+ Calendar._TT = {};
40
+ Calendar._TT["TOGGLE"] = "Haftan�n ilk g�n�n� kayd�r";
41
+ Calendar._TT["PREV_YEAR"] = "�nceki Y�l (Men� i�in bas�l� tutunuz)";
42
+ Calendar._TT["PREV_MONTH"] = "�nceki Ay (Men� i�in bas�l� tutunuz)";
43
+ Calendar._TT["GO_TODAY"] = "Bug�n'e git";
44
+ Calendar._TT["NEXT_MONTH"] = "Sonraki Ay (Men� i�in bas�l� tutunuz)";
45
+ Calendar._TT["NEXT_YEAR"] = "Sonraki Y�l (Men� i�in bas�l� tutunuz)";
46
+ Calendar._TT["SEL_DATE"] = "Tarih se�iniz";
47
+ Calendar._TT["DRAG_TO_MOVE"] = "Ta��mak i�in s�r�kleyiniz";
48
+ Calendar._TT["PART_TODAY"] = " (bug�n)";
49
+ Calendar._TT["MON_FIRST"] = "Takvim Pazartesi g�n�nden ba�las�n";
50
+ Calendar._TT["SUN_FIRST"] = "Takvim Pazar g�n�nden ba�las�n";
51
+ Calendar._TT["CLOSE"] = "Kapat";
52
+ Calendar._TT["TODAY"] = "Bug�n";
53
+
54
+ // date formats
55
+ Calendar._TT["DEF_DATE_FORMAT"] = "dd-mm-y";
56
+ Calendar._TT["TT_DATE_FORMAT"] = "d MM y, DD";
57
+
58
+ Calendar._TT["WK"] = "Hafta";
@@ -0,0 +1,45 @@
1
+ // ** Translated by ATang ** I18N
2
+ Calendar._DN = new Array
3
+ ("������",
4
+ "����һ",
5
+ "���ڶ�",
6
+ "������",
7
+ "������",
8
+ "������",
9
+ "������",
10
+ "������");
11
+ Calendar._MN = new Array
12
+ ("һ��",
13
+ "����",
14
+ "����",
15
+ "����",
16
+ "����",
17
+ "����",
18
+ "����",
19
+ "����",
20
+ "����",
21
+ "ʮ��",
22
+ "ʮһ��",
23
+ "ʮ����");
24
+
25
+ // tooltips
26
+ Calendar._TT = {};
27
+ Calendar._TT["TOGGLE"] = "�л��ܿ�ʼ��һ��";
28
+ Calendar._TT["PREV_YEAR"] = "��һ�� (��ס���˵�)";
29
+ Calendar._TT["PREV_MONTH"] = "��һ�� (��ס���˵�)";
30
+ Calendar._TT["GO_TODAY"] = "������";
31
+ Calendar._TT["NEXT_MONTH"] = "��һ�� (��ס���˵�)";
32
+ Calendar._TT["NEXT_YEAR"] = "��һ�� (��ס���˵�)";
33
+ Calendar._TT["SEL_DATE"] = "ѡ������";
34
+ Calendar._TT["DRAG_TO_MOVE"] = "�϶�";
35
+ Calendar._TT["PART_TODAY"] = " (����)";
36
+ Calendar._TT["MON_FIRST"] = "������ʾ����һ";
37
+ Calendar._TT["SUN_FIRST"] = "������ʾ������";
38
+ Calendar._TT["CLOSE"] = "�ر�";
39
+ Calendar._TT["TODAY"] = "����";
40
+
41
+ // date formats
42
+ Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd";
43
+ Calendar._TT["TT_DATE_FORMAT"] = "D, M d";
44
+
45
+ Calendar._TT["WK"] = "��";
@@ -0,0 +1,334 @@
1
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN">
2
+ <html>
3
+ <head>
4
+ <title>jscalendar release notes</title>
5
+
6
+ <style type="text/css">
7
+ h1 { border-bottom: 1px solid #000; }
8
+ h2 { border-bottom: 1px solid #444; }
9
+ ul li { margin-top: 0.5em; margin-bottom: 0.5em; }
10
+ </style>
11
+ </head>
12
+
13
+ <body>
14
+ <h1>jscalendar release notes</h1>
15
+
16
+ <p>This release compiled at Friday, 6 Feb 2004 (21:40).</p>
17
+
18
+ <h2>0.9.6</h2>
19
+
20
+ <ul>
21
+
22
+ <li>
23
+ "Smart" (TM :-) positioning algorithm. The new algorithm will
24
+ try to keep the calendar in the browser view, which is helpful
25
+ in situations when the input field is near the bottom or the
26
+ right edge. This code is only tested with IE and Mozilla, but
27
+ it should work with other browsers too. Many thanks to <a
28
+ href="http://www.ex3.com">Sunny Chowdhury</a> for sponsoring
29
+ this feature!
30
+ </li>
31
+
32
+ <li>
33
+ Support for IE5/Win is back. I also want to thank Janusz
34
+ Piwowarski for keeping his eye on the CVS ;-) He reviewed my
35
+ IE5-related changes and sent me a much cleaner patch.
36
+ </li>
37
+
38
+ <li>
39
+ The calendar will now allow any day of week to be "the first
40
+ day of week". This was requested long time ago, by someone
41
+ whose name I forgot (sorry). The reason was that in certain
42
+ countries weeks start on Saturday. So I thought that instead
43
+ of having a "mondayFirst" and a "saturdayFirst" parameter,
44
+ :-), it's better to have a "firstDayOfWeek" parameter; now
45
+ it's present and its meaning is: "0 for Sunday", "1 for
46
+ Monday", "2 for Tuesday", etc. The equivalent parameter for
47
+ Calendar.setup is "firstDay". The end user can also change
48
+ it very easy: click on the day name in the calendar display.
49
+ </li>
50
+
51
+ <li>
52
+ The above feature triggered one <b>important change</b>: the
53
+ notion of "weekend" is now defined in the language file.
54
+ Added parameters:
55
+
56
+ <pre>
57
+ Calendar._TT["WEEKEND"] = "0,6";
58
+ Calendar._TT["DAY_FIRST"] = "Display %s first";</pre>
59
+
60
+ "WEEKEND" specifies a string with comma-separated numbers from
61
+ 0 to 7; they define what days are marked as "weekend". 5 and
62
+ 6 mean, of course, "Sunday" and "Saturday". Day first is the
63
+ tooltip displayed when a day name is hovered; "%s" will get
64
+ replaced with the day name. Updated languages are "en" and
65
+ "ro", which I maintain. Please note that languages wich are
66
+ not updated <b>will not work</b>. If yours is one of them,
67
+ please consider fixing it and sending me the fix so that I can
68
+ include it in the distro.
69
+ </li>
70
+
71
+ <li>
72
+ The calendar can now display days from the months adjacent to
73
+ the currently displayed one. This is optional, of course, and
74
+ the parameter name is "showsOtherMonths" (or "showOthers" in
75
+ Calendar.setup). All theme files were updated.
76
+ </li>
77
+
78
+ <li>
79
+ Displays "Time:" near the time selector, only if defined in
80
+ the language file.
81
+ </li>
82
+
83
+ <li>
84
+ Some bugs fixed in the date parsing code (which has also been
85
+ rewritten a little bit cleaner).
86
+ </li>
87
+
88
+ <li>
89
+ Calendar.setup will now configure the calendar to trigger the
90
+ input fields' "onchange" event, if specified, when a date is
91
+ selected.
92
+ </li>
93
+
94
+ <li>
95
+ New parameter in Calendar.setup: "cache" (<b>defaults to
96
+ false</b>). If set to true then the popup calendar object
97
+ will be "cached", meaning, it will be created only once, no
98
+ matter how many input fields are there in the page. Sometimes
99
+ this is not desirable, which is why I've added this
100
+ parameter. Please note that it defaults to "false" (thus the
101
+ default behavior has changed).
102
+ </li>
103
+
104
+ <li>
105
+ Added a simple PHP wrapper. It provides code which loads all
106
+ the required scripts and theme file, and one function which
107
+ creates and configures an input field for date input. It
108
+ takes care of creating and assigning unique ID-s for the
109
+ calendar fields and it also creates the "Calendar.setup" code.
110
+ Functions to create more specialized fields can be added very
111
+ easily. This feature was requested by the FreeMED.org project
112
+ (thanks for donating!).
113
+ </li>
114
+
115
+ </ul>
116
+
117
+ <p>Wow, there were quite some changes :-D Enjoy it!</p>
118
+
119
+ <h2>0.9.5</h2>
120
+
121
+ <p>
122
+ This release's primary goal is to fix a wrong license statement which
123
+ can be found in some files from 0.9.4. For instance in README or
124
+ calendar.js, the statement was that the code is distributed under the
125
+ GNU GPL; that's because I had plans to change the license, then
126
+ changed my mind but unfortunately I committed files so. I am sorry
127
+ for this inconvenience, please use the latest (0.9.5) release which is
128
+ fully covered by LGPL.
129
+ </p>
130
+
131
+ <p>Other changes:</p>
132
+
133
+ <ul>
134
+
135
+ <li>
136
+ <b>Fixed</b> an annoying bug that prevented the calendar to display
137
+ correctly when it was configured for an input field inside a
138
+ <b>scrolling area</b>. <b>Many thanks</b> to Ian Barrack (<a
139
+ href="http://www.simban.com">Simban.com</a>) who pointed it up and
140
+ donated quite some money for the Calendar project!
141
+ </li>
142
+
143
+ <li>
144
+ All examples use UTF-8 now; the translations may not be all
145
+ up-to-date, but I <strong>strongly</strong> suggest everyone to use
146
+ UTF-8; other encodings are a plain mess. So far I know for sure
147
+ that Romanian translation will work with UTF-8 and <em>not
148
+ anymore</em> with ISO-8859-2. Other translations are probably
149
+ usable under UTF-8, but if your preferred language isn't... ;-)
150
+ please make it and send it to me for inclusion.
151
+ </li>
152
+
153
+ <li>
154
+ Fixed small bug in the documentation (one footnote didn't appear
155
+ where it should have).
156
+ </li>
157
+
158
+ <li>
159
+ Updated translations: DE, ES, HU, IT, RO. Thanks to everyone who
160
+ sent translations!
161
+ </li>
162
+
163
+ </ul>
164
+
165
+ <h2>0.9.4</h2>
166
+
167
+ <h3>New stuff</h3>
168
+
169
+ <ul>
170
+
171
+ <li>Supports time selection. Yes. ;-) This work has been largely
172
+ sponsored by <strong>Himanshukumar Shah</strong> (thank you!). See
173
+ the docs and example files for details on how to setup.</li>
174
+
175
+ <li>Easy to link 2 or more fields by using the new
176
+ <code>onUpdate</code> parameter of <code>Calendar.setup</code>. This
177
+ is useful, say, to automatically set a value in a second field based
178
+ on the value selected in the first field. See the documentation and
179
+ first sample in <a href="simple-1.html">simple-1.html</a>.</li>
180
+
181
+ <li>Other <code>Calendar.setup</code> low-level parameters, for those
182
+ wanting to have the complete control: <code>onSelect</code> and
183
+ <code>onClose</code>. The handlers are called when something is
184
+ selected in the calendar or when the calendar is closed.</li>
185
+
186
+ <li>The translation files can optionally include the short day names
187
+ and the short month names. That's because in some languages, like
188
+ German, the short form is not the first 3 letters of the entire name
189
+ but only the first 2. Also in other languages short names can't be
190
+ as easily derived from the full name by just calling substr, so this
191
+ patch solves the problem.</li>
192
+
193
+ <li>Implemented a nice way to make some dates "special" (look
194
+ different). Specifically, the <code>setDisabledHandler</code> method
195
+ was replaced with the more general <code>setDateStatusHandler</code>
196
+ method (the old one is still available for backwards compatibility but
197
+ <em>will</em> be removed). More details about this in the
198
+ documentation. Also see <a href="simple-3.html">simple-3.html</a>
199
+ for a live sample.</li>
200
+
201
+ <li>Date parsing and formatting engine is now rewritten and supports a
202
+ subset of <code>strftime</code> format specifiers from ANSI C. This
203
+ makes it possible to use dates like "YYYYMMDD" (the corresponding
204
+ format for this would be "%Y%m%d"). Details in the documentation.
205
+ <b>Please note that the new engine is not compatibile with older
206
+ calendar releases!</b></li>
207
+
208
+ <li>Along with the new date parser I workarounded an unpleasant crash
209
+ that occurred in IE when certain accented characters appeared in the
210
+ texts. I think German was one of the language with such problems, and
211
+ the workaround was to use the letter without an accent. Well, now you
212
+ can translate to whatever you want.</li>
213
+
214
+ <li>"Fixes" (I mean, "horrible workarounds") for Konqueror (and
215
+ hopefully Safari). Unfortunately, this otherwise excellent browser
216
+ still has some bugs that keep the calendar from working
217
+ <em>exactly</em> as it should.. But they're going to be fixed,
218
+ right? ;-)</li>
219
+
220
+ <li>CSS themes got pretty much modified too so if you wrote your theme
221
+ you need to update it. Aside for the time selector support, the CSS
222
+ themes contain a simple hack that makes the navigation buttons show
223
+ a little arrow in the lower-right corner which indicates that if one
224
+ holds the mouse a menu will appear.</li>
225
+
226
+ </ul>
227
+
228
+ <h3>Translation files</h3>
229
+
230
+ <p>The translation files need to be updated in order for the calendar to
231
+ work properly. Currently the only updated files are calendar-en.js
232
+ (main file) and calendar-ro.js (well, yes, I am a Romanian ;-).</p>
233
+
234
+ <p>Specifically, they need the following:</p>
235
+
236
+ <ul>
237
+
238
+ <li>Correct date format, according with the new format specifiers
239
+ introduced in 0.9.4. Details about the available format specifiers
240
+ in the documentation</li>
241
+
242
+ <li>Short day or month names, <em>if required</em>. If they can be
243
+ derived by taking the first N letters of the full name then a simple
244
+ Calendar._SDN_len = N or Calendar._SMN_len = N will suffice. If N
245
+ is 3 then nothing needs to be done as we take it for granted if no
246
+ other option is offered ;-)</li>
247
+
248
+ <li>We have some new texts that shows short usage information as well
249
+ as copyright information.</li>
250
+
251
+ </ul>
252
+
253
+ <p>If your favorite language is not there yet, or it is but not updated
254
+ according to the main calendar-en.js file, then please consider
255
+ translating calendar-en.js and send the translation back to me so that
256
+ I include it in the official distribution.</p>
257
+
258
+ <h3>Bug status</h3>
259
+
260
+ <p>Check <a
261
+ href="http://sourceforge.net/tracker/?atid=544285&group_id=75569&func=browse">SourceForge</a>,
262
+ I didn't keep track. However, there were a lot of bugfixes.</p>
263
+
264
+ <h2>0.9.3</h2>
265
+
266
+ <h3>New stuff</h3>
267
+
268
+ <ul>
269
+
270
+ <li>Opera&nbsp;7 compatibility &mdash; keyboard navigation is
271
+ still not available; text selection can't be disabled, leading to an
272
+ ugly effect when walking through the month/year menus.</li>
273
+
274
+ <li>Ability to align the calendar relative to the input field (or any
275
+ other element). Vertical: top, center, bottom. Horizontal: left,
276
+ center, right. This is established as a new parameter for
277
+ <tt>showAtElement</tt>.</li>
278
+
279
+ <li>Added <tt>dateClicked</tt> property (boolean). This can be
280
+ inspected in the "onSelect" handler to determine if a date was
281
+ really clicked or the user only changed month/year using the menus.
282
+ You <em>need</em> to check this for "single-click" calendars and
283
+ only close/hide the calendar if it's <tt>true</tt>.</li>
284
+
285
+ <li>Full documentation in <a href="doc/html/reference.html">HTML</a>
286
+ and <a href="doc/reference.pdf">PDF</a> format is now available in the
287
+ distribution archive.</li>
288
+
289
+ <li>New language definition files: HU, HR, PT, ZH. Thanks those who
290
+ submitted!</li>
291
+
292
+ </ul>
293
+
294
+ <h3>Bug status</h3>
295
+
296
+ <p>This covers only those bugs that have been reported <a
297
+ href="http://sourceforge.net/projects/jscalendar" target="_blank"
298
+ title="Project page at SourceForge">at SourceForge</a>.</p>
299
+
300
+ <ol>
301
+
302
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=703238&group_id=75569&atid=544285" target="_blank"
303
+ title="Go to bug description at sourceforge"><tt>#703,238</tt></a> &mdash; fixed</li>
304
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=703814&group_id=75569&atid=544285" target="_blank"
305
+ title="Go to bug description at sourceforge"><tt>#703,814</tt></a> &mdash; fixed</li>
306
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=716777&group_id=75569&atid=544285" target="_blank"
307
+ title="Go to bug description at sourceforge"><tt>#716,777</tt></a> &mdash; closed (was fixed already in 0.9.2-1)</li>
308
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=723335&group_id=75569&atid=544285" target="_blank"
309
+ title="Go to bug description at sourceforge"><tt>#723,335</tt></a> &mdash; fixed</li>
310
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=715122&group_id=75569&atid=544285" target="_blank"
311
+ title="Go to bug description at sourceforge"><tt>#715,122</tt></a> &mdash; feature request; implemented.</li>
312
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=721206&group_id=75569&atid=544285" target="_blank"
313
+ title="Go to bug description at sourceforge"><tt>#721,206</tt></a> &mdash; fixed (added "refresh()" function)</li>
314
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=721833&group_id=75569&atid=544285" target="_blank"
315
+ title="Go to bug description at sourceforge"><tt>#721,833</tt></a> &mdash; fixed (bug concerning the "yy" format
316
+ parsing)</li>
317
+ <li><a href="http://sourceforge.net/tracker/index.php?func=detail&aid=721833&group_id=75569&atid=544285" target="_blank"
318
+ title="Go to bug description at sourceforge"><tt>#721,833</tt></a> &mdash; won't fix (we won't set the time to
319
+ midnight; time might actually be useful when we implement support
320
+ for time selection).
321
+
322
+ </ol>
323
+
324
+ <hr />
325
+ <address><a href="http://dynarch.com/mishoo/">Mihai Bazon</a></address>
326
+ <!-- Created: Tue Jul 8 17:29:37 EEST 2003 -->
327
+ <!-- hhmts start -->
328
+ Last modified on Wed Oct 29 02:37:07 2003
329
+ <!-- hhmts end -->
330
+ <!-- doc-lang: English -->
331
+ </body>
332
+ </html>
333
+
334
+