click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r910209 - in /click/trunk/click/extras/src/META-INF/resources/click/calendar: calendar_date_select.js da.js de.js fi.js fr.js ja.js pl.js pt.js ru.js
Date Mon, 15 Feb 2010 12:07:41 GMT
Author: sabob
Date: Mon Feb 15 12:07:40 2010
New Revision: 910209

URL: http://svn.apache.org/viewvc?rev=910209&view=rev
Log:
fixed for CLK-624

Modified:
    click/trunk/click/extras/src/META-INF/resources/click/calendar/calendar_date_select.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/da.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/de.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/fi.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/fr.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/ja.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/pl.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/pt.js
    click/trunk/click/extras/src/META-INF/resources/click/calendar/ru.js

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/calendar_date_select.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/calendar_date_select.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/calendar_date_select.js
(original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/calendar_date_select.js
Mon Feb 15 12:07:40 2010
@@ -42,9 +42,24 @@
 nil = null;
 
 Date.one_day = 24*60*60*1000;
-Date.weekdays = $w("S M T W T F S");
+
+// Full month names
+Date.months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('S','M','T','W','T','F','S');
+
 Date.first_day_of_week = 0;
-Date.months = $w("January February March April May June July August September October November
December" );
+
 Date.padded2 = function(hour) { var padded2 = parseInt(hour, 10); if (hour < 10) padded2
= "0" + padded2; return padded2; }
 Date.prototype.getPaddedMinutes = function() { return Date.padded2(this.getMinutes()); }
 Date.prototype.getAMPMHour = function() { var hour = this.getHours(); return (hour == 0)
? 12 : (hour > 12 ? hour - 12 : hour ) }
@@ -185,7 +200,7 @@
     var days_table = body_div.build("table", { cellPadding: "0px", cellSpacing: "0px", width:
"100%" })
     // make the weekdays!
     var weekdays_row = days_table.build("thead").build("tr");
-    Date.weekdays.each( function(weekday) { 
+    Date.weekdays.each( function(weekday) {
       weekdays_row.build("th", {innerHTML: weekday});
     });
     
@@ -505,14 +520,6 @@
 
 // Utility function to append a 0 to single-digit numbers
 Date.LZ = function(x) {return(x<0||x>9?"":"0")+x};
-// Full month names. Change this for local month names
-Date.monthNames = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
-// Month abbreviations. Change this for local month names
-Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
-// Full day names. Change this for local month names
-Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
-// Day abbreviations. Change this for local month names
-Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
 // Used for parsing ambiguous dates like 1/2/2000 - default to preferring 'American' format
meaning Jan 2.
 // Set to false to prefer 'European' format meaning Feb 1
 Date.preferAmericanFormat = true;
@@ -614,7 +621,7 @@
     }
     else if (token=="MMM" || token=="NNN"){
       month=0;
-      var names = (token=="MMM"?(Date.monthNames.concat(Date.monthAbbreviations)):Date.monthAbbreviations);
+      var names = (token=="MMM"?(Date.months.concat(Date.monthAbbreviations)):Date.monthAbbreviations);
       for (var i=0; i<names.length; i++) {
         var month_name=names[i];
         if (val.substring(i_val,i_val+month_name.length).toLowerCase()==month_name.toLowerCase())
{
@@ -813,7 +820,7 @@
   value["yy"]=y.substring(2,4);
   value["M"]=M;
   value["MM"]=Date.LZ(M);
-  value["MMM"]=Date.monthNames[M-1];
+  value["MMM"]=Date.months[M-1];
   value["NNN"]=Date.monthAbbreviations[M-1];
   value["d"]=d;
   value["dd"]=Date.LZ(d);
@@ -873,7 +880,7 @@
 
 // Get the full name of the month for a date
 Date.prototype.getMonthName = function() {
-  return Date.monthNames[this.getMonth()];
+  return Date.months[this.getMonth()];
 };
 
 // Get the abbreviation of the month for a date

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/da.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/da.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/da.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/da.js Mon Feb 15 12:07:40
2010
@@ -16,8 +16,20 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w('Ma Ti On To Fr Lø Sø');
-Date.months = $w('Januar Februar Marts April Maj Juni Juli August September Oktober November
December');
+// Full month names
+Date.months = new Array('Januar','Februar','Marts','April','Maj','Juni','Juli','August','September','Oktober','November','December');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('Ma','Ti','On','To','Fr','Lø','Sø');
 
 Date.first_day_of_week = 1;
 

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/de.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/de.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/de.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/de.js Mon Feb 15 12:07:40
2010
@@ -16,8 +16,20 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w('Mo Di Mi Do Fr Sa So');
-Date.months = $w('Januar Februar März April Mai Juni Juli August September Oktober November
Dezember');
+// Full month names
+Date.months = new Array('Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('Mo','Di','Mi','Do','Fr','Sa','So');
 
 Date.first_day_of_week = 1;
 

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/fi.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/fi.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/fi.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/fi.js Mon Feb 15 12:07:40
2010
@@ -16,10 +16,22 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w("Ma Ti Ke To Pe La Su");
-Date.months = $w("Tammikuu Helmikuu Maaliskuu Huhtikuu Toukokuu Kesäkuu Heinäkuu Elokuu
Syyskuu Lokakuu Marraskuu Joulukuu" );
+// Full month names
+Date.months = new Array('Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu','Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu');
 
-Date.first_day_of_week = 1
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('Ma','Ti','Ke','To','Pe','La','Su');
+
+Date.first_day_of_week = 1;
 
 _translations = {
   "OK": "OK",

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/fr.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/fr.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/fr.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/fr.js Mon Feb 15 12:07:40
2010
@@ -16,8 +16,20 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w('L Ma Me J V S D');
-Date.months = $w('Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre
Novembre Décembre');
+// Full month names
+Date.months = new Array('Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('L','Ma','Me','J','V','S','D');
 
 Date.first_day_of_week = 1;
 

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/ja.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/ja.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/ja.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/ja.js Mon Feb 15 12:07:40
2010
@@ -16,8 +16,20 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w('月 火 水 木 金 土 日');
-Date.months = $w('1月 2月 3月 4月 5月 6月 7月 8月 9月
10月 11月 12月');
+// Full month names
+Date.months = new Array('1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('月','火','水','木','金','土','日');
 
 Date.first_day_of_week = 1;
 

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/pl.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/pl.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/pl.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/pl.js Mon Feb 15 12:07:40
2010
@@ -16,8 +16,20 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w('P W Ś C P S N');
-Date.months = $w('Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień
Październik Listopad Grudzień');
+// Full month names
+Date.months = $w('Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec','Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('P','W','Ś','C','P','S','N');
 
 Date.first_day_of_week = 1
 

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/pt.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/pt.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/pt.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/pt.js Mon Feb 15 12:07:40
2010
@@ -16,8 +16,20 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w('D S T Q Q S S');
-Date.months = $w('Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro
Novembro Dezembro');
+// Full month names
+Date.months = new Array('Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembr','Dezembro');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('D','S','T','Q','Q','S','S');
 
 Date.first_day_of_week = 0
 

Modified: click/trunk/click/extras/src/META-INF/resources/click/calendar/ru.js
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/META-INF/resources/click/calendar/ru.js?rev=910209&r1=910208&r2=910209&view=diff
==============================================================================
--- click/trunk/click/extras/src/META-INF/resources/click/calendar/ru.js (original)
+++ click/trunk/click/extras/src/META-INF/resources/click/calendar/ru.js Mon Feb 15 12:07:40
2010
@@ -16,8 +16,19 @@
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 
-Date.weekdays = $w('Пн Вт Ср Чт Пт Сб Вс');
-Date.months = $w('Январь Февраль Март
Апрель Май Июнь Июль Август
Сентябрь Октябрь Ноябрь Декабрь');
+Date.months = new Array('Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь');
+
+// Month abbreviations
+Date.monthAbbreviations = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+
+// Full day names
+Date.dayNames = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
+
+// Day abbreviations
+Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
+
+// Weekdays displayed by popup calendar
+Date.weekdays = new Array('Пн','Вт','Ср','Чт','Пт','Сб','Вс');
 
 Date.first_day_of_week = 1
 



Mime
View raw message