46.diff

Toshi MARUYAMA, 2014-11-16 23:31

Download (162 KB)

View differences:

app/helpers/application_helper.rb
1158 1158
    javascript_tag "contextMenuInit('#{ url_for(url) }')"
1159 1159
  end
1160 1160

  
1161
  def calendar_for(field_id)
1161
  def calendar_for(field_id,showHours=nil)
1162 1162
    include_calendar_headers_tags
1163
    javascript_tag("$(function() { $('##{field_id}').datepicker(datepickerOptions); });")
1163
    #javascript_tag("$(function() { $('##{field_id}').datepicker(datepickerOptions); });")
1164
    javascript_tag("$(function() {" +
1165
        (showHours ? "datetimepickerOptions.timepicker=true; datetimepickerOptions.format='Y-m-d H:i';" : '') +
1166
        "datetimepickerCreate('##{field_id}');" +
1167
        "$('.custom_field_show_hours').click( function(){ " +
1168
          "if($('##{field_id}').val()=='') return;" +
1169
          "var asHours = $('##{field_id}').val().indexOf(':')!=-1;" +
1170
          "if($('#custom_field_show_hours_yes').prop('checked') && !asHours){ " +
1171
            "var dt = new Date();" +
1172
            "$('##{field_id}').val($('##{field_id}').val()+' '+(dt.getHours()<10?'0':'')+dt.getHours()+':00');" +
1173
          "}else if($('#custom_field_show_hours_no').prop('checked') && asHours) { " +
1174
            "$('##{field_id}').val($('##{field_id}').val().substr(0,10));" +
1175
          "} });" +
1176
      "});")
1164 1177
  end
1165 1178

  
1166 1179
  def include_calendar_headers_tags
1167 1180
    unless @calendar_headers_tags_included
1168
      tags = javascript_include_tag("datepicker")
1181
      tags = javascript_include_tag('jquery.datetimepicker') +
1182
        stylesheet_link_tag('jquery.datetimepicker')
1169 1183
      @calendar_headers_tags_included = true
1170 1184
      content_for :header_tags do
1171 1185
        start_of_week = Setting.start_of_week
......
1173 1187
        # Redmine uses 1..7 (monday..sunday) in settings and locales
1174 1188
        # JQuery uses 0..6 (sunday..saturday), 7 needs to be changed to 0
1175 1189
        start_of_week = start_of_week.to_i % 7
1176
        tags << javascript_tag(
1177
                   "var datepickerOptions={dateFormat: 'yy-mm-dd', firstDay: #{start_of_week}, " +
1178
                     "showOn: 'button', buttonImageOnly: true, buttonImage: '" +
1179
                     path_to_image('/images/calendar.png') +
1180
                     "', showButtonPanel: true, showWeek: true, showOtherMonths: true, " +
1181
                     "selectOtherMonths: true, changeMonth: true, changeYear: true, " +
1182
                     "beforeShow: beforeShowDatePicker};")
1183 1190
        jquery_locale = l('jquery.locale', :default => current_language.to_s)
1184
        unless jquery_locale == 'en'
1185
          tags << javascript_include_tag("i18n/datepicker-#{jquery_locale}.js")
1186
        end
1191
        tags << javascript_tag(
1192
          "var datetimepickerOptions={format: 'Y-m-d', dayOfWeekStart: #{start_of_week}," +
1193
            "lang:'#{jquery_locale}', id:'datetimepicker'," +
1194
            "onShow: function( currentDateTime ){" +
1195
              "if( $('#custom_field_show_hours_yes').length==0 ) return;" +
1196
              "this.setOptions( { format: ( $('#custom_field_show_hours_yes').prop('checked') ? 'Y-m-d H:i' : 'Y-m-d' )," +
1197
                "timepicker: $('#custom_field_show_hours_yes').prop('checked') } );" +
1198
          "} };" +
1199
          "function datetimepickerCreate(id){" +
1200
            "$(id).after( '<input alt=\"...\" class=\"ui-datepicker-trigger\" data-parent=\"'+id+'\" src=\"" + image_path('calendar.png') + "\" title=\"...\" type=\"image\"/>' );" +
1201
            "$('.ui-datepicker-trigger').click( function(){  $($(this).attr('data-parent')).trigger('focus'); return false; });" +
1202
            "$(id).datetimepicker(datetimepickerOptions);" +
1203
          "}")
1187 1204
        tags
1188 1205
      end
1189 1206
    end
app/views/custom_fields/formats/_date.html.erb
1
<p><%= f.text_field(:default_value, :size => 10) %></p>
1
<p>
2
	<%= f.text_field(:default_value, :size => 15) %>
3
</p>
4
<p>
5
	<label><%=l(:field_hours)%></label>
6
	<label class="block">
7
		<%= radio_button_tag 'custom_field[show_hours]', 1, (custom_field.show_hours=='1'), :id=>'custom_field_show_hours_yes',
8
			:class=>'custom_field_show_hours', :data => {:enables => '.custom_field_show_hours input'} %>
9
		<%=l(:general_text_Yes)%>
10
	</label>
11
	<label class="block">
12
		<%= radio_button_tag 'custom_field[show_hours]', 0, (custom_field.show_hours!='1'), :id=>'custom_field_show_hours_no',
13
			:class=>'custom_field_show_hours', :data => {:disables => '.custom_field_show_hours input'} %>
14
		<%=l(:general_text_No)%>
15
	</label>
16
</p>
2 17
<%= calendar_for('custom_field_default_value') %>
3 18
<p><%= f.text_field :url_pattern, :size => 50, :label => :label_link_values_to %></p>
lib/redmine/field_format.rb
402 402
    class DateFormat < Unbounded
403 403
      add 'date'
404 404
      self.form_partial = 'custom_fields/formats/date'
405
      field_attributes :show_hours
405 406

  
406 407
      def cast_single_value(custom_field, value, customized=nil)
407
        value.to_date rescue nil
408
        (custom_field.show_hours=='1' ? value.to_time : value.to_date) rescue nil
408 409
      end
409 410

  
410 411
      def validate_single_value(custom_field, value, customized=nil)
411
        if value =~ /^\d{4}-\d{2}-\d{2}$/ && (value.to_date rescue false)
412
        if ((value =~ /^\d{4}-\d{2}-\d{2}$/ && custom_field.show_hours=='0') || (value =~ /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/ && custom_field.show_hours=='1')) &&
413
            (value.to_date rescue false)
412 414
          []
413 415
        else
414 416
          [::I18n.t('activerecord.errors.messages.not_a_date')]
......
416 418
      end
417 419

  
418 420
      def edit_tag(view, tag_id, tag_name, custom_value, options={})
419
        view.text_field_tag(tag_name, custom_value.value, options.merge(:id => tag_id, :size => 10)) +
420
          view.calendar_for(tag_id)
421
        view.text_field_tag(tag_name, custom_value.value, options.merge(:id => tag_id, :size => 15)) +
422
          view.calendar_for(tag_id, :showHours=>(custom_value.custom_field.show_hours=='1'))
421 423
      end
422 424

  
423 425
      def bulk_edit_tag(view, tag_id, tag_name, custom_field, objects, value, options={})
424
        view.text_field_tag(tag_name, value, options.merge(:id => tag_id, :size => 10)) +
425
          view.calendar_for(tag_id) +
426
        view.text_field_tag(tag_name, value, options.merge(:id => tag_id, :size => 15)) +
427
          view.calendar_for(tag_id, :showHours=>(custom_value.custom_field.show_hours=='1')) +
426 428
          bulk_clear_tag(view, tag_id, tag_name, custom_field, value)
427 429
      end
428 430

  
public/javascripts/application.js
164 164
      ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'_2" size="10" class="value date_value" /></span>' +
165 165
      ' <span style="display:none;"><input type="text" name="v['+field+'][]" id="values_'+fieldId+'" size="3" class="value" /> '+labelDayPlural+'</span>'
166 166
    );
167
    $('#values_'+fieldId+'_1').val(values[0]).datepicker(datepickerOptions);
168
    $('#values_'+fieldId+'_2').val(values[1]).datepicker(datepickerOptions);
167
    $('#values_'+fieldId+'_1').val(values[0]);
168
    $('#values_'+fieldId+'_2').val(values[1]);
169 169
    $('#values_'+fieldId).val(values[0]);
170
    datetimepickerCreate('#values_'+fieldId+'_1');
171
    datetimepickerCreate('#values_'+fieldId+'_2');
170 172
    break;
171 173
  case "string":
172 174
  case "text":
public/javascripts/datepicker.js
1
function beforeShowDatePicker(input, inst) {
2
  var default_date = null;
3
  switch ($(input).attr("id")) {
4
    case "issue_start_date" :
5
      if ($("#issue_due_date").size() > 0) {
6
        default_date = $("#issue_due_date").val();
7
      }
8
      break;
9
    case "issue_due_date" :
10
      if ($("#issue_start_date").size() > 0) {
11
        default_date = $("#issue_start_date").val();
12
      }
13
      break;
14
  }
15
  $(input).datepicker("option", "defaultDate", default_date);
16
}
public/javascripts/i18n/datepicker-ar.js
1
/* Arabic Translation for jQuery UI date picker plugin. */
2
/* Khaled Alhourani -- me@khaledalhourani.com */
3
/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
4
(function( factory ) {
5
	if ( typeof define === "function" && define.amd ) {
6

  
7
		// AMD. Register as an anonymous module.
8
		define([ "../datepicker" ], factory );
9
	} else {
10

  
11
		// Browser globals
12
		factory( jQuery.datepicker );
13
	}
14
}(function( datepicker ) {
15

  
16
datepicker.regional['ar'] = {
17
	closeText: 'إغلاق',
18
	prevText: '&#x3C;السابق',
19
	nextText: 'التالي&#x3E;',
20
	currentText: 'اليوم',
21
	monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'مايو', 'حزيران',
22
	'تموز', 'آب', 'أيلول',	'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
23
	monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
24
	dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
25
	dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
26
	dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
27
	weekHeader: 'أسبوع',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 6,
30
		isRTL: true,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['ar']);
34

  
35
return datepicker.regional['ar'];
36

  
37
}));
public/javascripts/i18n/datepicker-az.js
1
/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */
2
/* Written by Jamil Najafov (necefov33@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['az'] = {
16
	closeText: 'Bağla',
17
	prevText: '&#x3C;Geri',
18
	nextText: 'İrəli&#x3E;',
19
	currentText: 'Bugün',
20
	monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun',
21
	'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'],
22
	monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun',
23
	'İyul','Avq','Sen','Okt','Noy','Dek'],
24
	dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'],
25
	dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'],
26
	dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'],
27
	weekHeader: 'Hf',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['az']);
34

  
35
return datepicker.regional['az'];
36

  
37
}));
public/javascripts/i18n/datepicker-bg.js
1
/* Bulgarian initialisation for the jQuery UI date picker plugin. */
2
/* Written by Stoyan Kyosev (http://svest.org). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['bg'] = {
16
	closeText: 'затвори',
17
	prevText: '&#x3C;назад',
18
	nextText: 'напред&#x3E;',
19
	nextBigText: '&#x3E;&#x3E;',
20
	currentText: 'днес',
21
	monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
22
	'Юли','Август','Септември','Октомври','Ноември','Декември'],
23
	monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
24
	'Юли','Авг','Сеп','Окт','Нов','Дек'],
25
	dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
26
	dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
27
	dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
28
	weekHeader: 'Wk',
29
	dateFormat: 'dd.mm.yy',
30
	firstDay: 1,
31
	isRTL: false,
32
	showMonthAfterYear: false,
33
	yearSuffix: ''};
34
datepicker.setDefaults(datepicker.regional['bg']);
35

  
36
return datepicker.regional['bg'];
37

  
38
}));
public/javascripts/i18n/datepicker-bs.js
1
/* Bosnian i18n for the jQuery UI date picker plugin. */
2
/* Written by Kenan Konjo. */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['bs'] = {
16
	closeText: 'Zatvori',
17
	prevText: '&#x3C;',
18
	nextText: '&#x3E;',
19
	currentText: 'Danas',
20
	monthNames: ['Januar','Februar','Mart','April','Maj','Juni',
21
	'Juli','August','Septembar','Oktobar','Novembar','Decembar'],
22
	monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
23
	'Jul','Aug','Sep','Okt','Nov','Dec'],
24
	dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
25
	dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
26
	dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
27
	weekHeader: 'Wk',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['bs']);
34

  
35
return datepicker.regional['bs'];
36

  
37
}));
public/javascripts/i18n/datepicker-ca.js
1
/* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */
2
/* Writers: (joan.leon@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['ca'] = {
16
	closeText: 'Tanca',
17
	prevText: 'Anterior',
18
	nextText: 'Següent',
19
	currentText: 'Avui',
20
	monthNames: ['gener','febrer','març','abril','maig','juny',
21
	'juliol','agost','setembre','octubre','novembre','desembre'],
22
	monthNamesShort: ['gen','feb','març','abr','maig','juny',
23
	'jul','ag','set','oct','nov','des'],
24
	dayNames: ['diumenge','dilluns','dimarts','dimecres','dijous','divendres','dissabte'],
25
	dayNamesShort: ['dg','dl','dt','dc','dj','dv','ds'],
26
	dayNamesMin: ['dg','dl','dt','dc','dj','dv','ds'],
27
	weekHeader: 'Set',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['ca']);
34

  
35
return datepicker.regional['ca'];
36

  
37
}));
public/javascripts/i18n/datepicker-cs.js
1
/* Czech initialisation for the jQuery UI date picker plugin. */
2
/* Written by Tomas Muller (tomas@tomas-muller.net). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['cs'] = {
16
	closeText: 'Zavřít',
17
	prevText: '&#x3C;Dříve',
18
	nextText: 'Později&#x3E;',
19
	currentText: 'Nyní',
20
	monthNames: ['leden','únor','březen','duben','květen','červen',
21
	'červenec','srpen','září','říjen','listopad','prosinec'],
22
	monthNamesShort: ['led','úno','bře','dub','kvě','čer',
23
	'čvc','srp','zář','říj','lis','pro'],
24
	dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
25
	dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
26
	dayNamesMin: ['ne','po','út','st','čt','pá','so'],
27
	weekHeader: 'Týd',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['cs']);
34

  
35
return datepicker.regional['cs'];
36

  
37
}));
public/javascripts/i18n/datepicker-da.js
1
/* Danish initialisation for the jQuery UI date picker plugin. */
2
/* Written by Jan Christensen ( deletestuff@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['da'] = {
16
	closeText: 'Luk',
17
	prevText: '&#x3C;Forrige',
18
	nextText: 'Næste&#x3E;',
19
	currentText: 'Idag',
20
	monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
21
	'Juli','August','September','Oktober','November','December'],
22
	monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
23
	'Jul','Aug','Sep','Okt','Nov','Dec'],
24
	dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
25
	dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
26
	dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'],
27
	weekHeader: 'Uge',
28
	dateFormat: 'dd-mm-yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['da']);
34

  
35
return datepicker.regional['da'];
36

  
37
}));
public/javascripts/i18n/datepicker-de.js
1
/* German initialisation for the jQuery UI date picker plugin. */
2
/* Written by Milian Wolff (mail@milianw.de). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['de'] = {
16
	closeText: 'Schließen',
17
	prevText: '&#x3C;Zurück',
18
	nextText: 'Vor&#x3E;',
19
	currentText: 'Heute',
20
	monthNames: ['Januar','Februar','März','April','Mai','Juni',
21
	'Juli','August','September','Oktober','November','Dezember'],
22
	monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
23
	'Jul','Aug','Sep','Okt','Nov','Dez'],
24
	dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
25
	dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
26
	dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
27
	weekHeader: 'KW',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['de']);
34

  
35
return datepicker.regional['de'];
36

  
37
}));
public/javascripts/i18n/datepicker-el.js
1
/* Greek (el) initialisation for the jQuery UI date picker plugin. */
2
/* Written by Alex Cicovic (http://www.alexcicovic.com) */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['el'] = {
16
	closeText: 'Κλείσιμο',
17
	prevText: 'Προηγούμενος',
18
	nextText: 'Επόμενος',
19
	currentText: 'Τρέχων Μήνας',
20
	monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος',
21
	'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'],
22
	monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν',
23
	'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'],
24
	dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'],
25
	dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'],
26
	dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'],
27
	weekHeader: 'Εβδ',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['el']);
34

  
35
return datepicker.regional['el'];
36

  
37
}));
public/javascripts/i18n/datepicker-en-GB.js
1
/* English/UK initialisation for the jQuery UI date picker plugin. */
2
/* Written by Stuart. */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['en-GB'] = {
16
	closeText: 'Done',
17
	prevText: 'Prev',
18
	nextText: 'Next',
19
	currentText: 'Today',
20
	monthNames: ['January','February','March','April','May','June',
21
	'July','August','September','October','November','December'],
22
	monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
23
	'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
24
	dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
25
	dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
26
	dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
27
	weekHeader: 'Wk',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['en-GB']);
34

  
35
return datepicker.regional['en-GB'];
36

  
37
}));
public/javascripts/i18n/datepicker-es.js
1
/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
2
/* Traducido por Vester (xvester@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['es'] = {
16
	closeText: 'Cerrar',
17
	prevText: '&#x3C;Ant',
18
	nextText: 'Sig&#x3E;',
19
	currentText: 'Hoy',
20
	monthNames: ['enero','febrero','marzo','abril','mayo','junio',
21
	'julio','agosto','septiembre','octubre','noviembre','diciembre'],
22
	monthNamesShort: ['ene','feb','mar','abr','may','jun',
23
	'jul','ago','sep','oct','nov','dic'],
24
	dayNames: ['domingo','lunes','martes','miércoles','jueves','viernes','sábado'],
25
	dayNamesShort: ['dom','lun','mar','mié','jue','vie','sáb'],
26
	dayNamesMin: ['D','L','M','X','J','V','S'],
27
	weekHeader: 'Sm',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['es']);
34

  
35
return datepicker.regional['es'];
36

  
37
}));
public/javascripts/i18n/datepicker-et.js
1
/* Estonian initialisation for the jQuery UI date picker plugin. */
2
/* Written by Mart Sõmermaa (mrts.pydev at gmail com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['et'] = {
16
	closeText: 'Sulge',
17
	prevText: 'Eelnev',
18
	nextText: 'Järgnev',
19
	currentText: 'Täna',
20
	monthNames: ['Jaanuar','Veebruar','Märts','Aprill','Mai','Juuni',
21
	'Juuli','August','September','Oktoober','November','Detsember'],
22
	monthNamesShort: ['Jaan', 'Veebr', 'Märts', 'Apr', 'Mai', 'Juuni',
23
	'Juuli', 'Aug', 'Sept', 'Okt', 'Nov', 'Dets'],
24
	dayNames: ['Pühapäev', 'Esmaspäev', 'Teisipäev', 'Kolmapäev', 'Neljapäev', 'Reede', 'Laupäev'],
25
	dayNamesShort: ['Pühap', 'Esmasp', 'Teisip', 'Kolmap', 'Neljap', 'Reede', 'Laup'],
26
	dayNamesMin: ['P','E','T','K','N','R','L'],
27
	weekHeader: 'näd',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['et']);
34

  
35
return datepicker.regional['et'];
36

  
37
}));
public/javascripts/i18n/datepicker-eu.js
1
/* Karrikas-ek itzulia (karrikas@karrikas.com) */
2
(function( factory ) {
3
	if ( typeof define === "function" && define.amd ) {
4

  
5
		// AMD. Register as an anonymous module.
6
		define([ "../datepicker" ], factory );
7
	} else {
8

  
9
		// Browser globals
10
		factory( jQuery.datepicker );
11
	}
12
}(function( datepicker ) {
13

  
14
datepicker.regional['eu'] = {
15
	closeText: 'Egina',
16
	prevText: '&#x3C;Aur',
17
	nextText: 'Hur&#x3E;',
18
	currentText: 'Gaur',
19
	monthNames: ['urtarrila','otsaila','martxoa','apirila','maiatza','ekaina',
20
		'uztaila','abuztua','iraila','urria','azaroa','abendua'],
21
	monthNamesShort: ['urt.','ots.','mar.','api.','mai.','eka.',
22
		'uzt.','abu.','ira.','urr.','aza.','abe.'],
23
	dayNames: ['igandea','astelehena','asteartea','asteazkena','osteguna','ostirala','larunbata'],
24
	dayNamesShort: ['ig.','al.','ar.','az.','og.','ol.','lr.'],
25
	dayNamesMin: ['ig','al','ar','az','og','ol','lr'],
26
	weekHeader: 'As',
27
	dateFormat: 'yy-mm-dd',
28
	firstDay: 1,
29
	isRTL: false,
30
	showMonthAfterYear: false,
31
	yearSuffix: ''};
32
datepicker.setDefaults(datepicker.regional['eu']);
33

  
34
return datepicker.regional['eu'];
35

  
36
}));
public/javascripts/i18n/datepicker-fa.js
1
/* Persian (Farsi) Translation for the jQuery UI date picker plugin. */
2
/* Javad Mowlanezhad -- jmowla@gmail.com */
3
/* Jalali calendar should supported soon! (Its implemented but I have to test it) */
4
(function( factory ) {
5
	if ( typeof define === "function" && define.amd ) {
6

  
7
		// AMD. Register as an anonymous module.
8
		define([ "../datepicker" ], factory );
9
	} else {
10

  
11
		// Browser globals
12
		factory( jQuery.datepicker );
13
	}
14
}(function( datepicker ) {
15

  
16
datepicker.regional['fa'] = {
17
	closeText: 'بستن',
18
	prevText: '&#x3C;قبلی',
19
	nextText: 'بعدی&#x3E;',
20
	currentText: 'امروز',
21
	monthNames: [
22
		'فروردين',
23
		'ارديبهشت',
24
		'خرداد',
25
		'تير',
26
		'مرداد',
27
		'شهريور',
28
		'مهر',
29
		'آبان',
30
		'آذر',
31
		'دی',
32
		'بهمن',
33
		'اسفند'
34
	],
35
	monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
36
	dayNames: [
37
		'يکشنبه',
38
		'دوشنبه',
39
		'سه‌شنبه',
40
		'چهارشنبه',
41
		'پنجشنبه',
42
		'جمعه',
43
		'شنبه'
44
	],
45
	dayNamesShort: [
46
		'ی',
47
		'د',
48
		'س',
49
		'چ',
50
		'پ',
51
		'ج',
52
		'ش'
53
	],
54
	dayNamesMin: [
55
		'ی',
56
		'د',
57
		'س',
58
		'چ',
59
		'پ',
60
		'ج',
61
		'ش'
62
	],
63
	weekHeader: 'هف',
64
	dateFormat: 'yy/mm/dd',
65
	firstDay: 6,
66
	isRTL: true,
67
	showMonthAfterYear: false,
68
	yearSuffix: ''};
69
datepicker.setDefaults(datepicker.regional['fa']);
70

  
71
return datepicker.regional['fa'];
72

  
73
}));
public/javascripts/i18n/datepicker-fi.js
1
/* Finnish initialisation for the jQuery UI date picker plugin. */
2
/* Written by Harri Kilpiö (harrikilpio@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['fi'] = {
16
	closeText: 'Sulje',
17
	prevText: '&#xAB;Edellinen',
18
	nextText: 'Seuraava&#xBB;',
19
	currentText: 'Tänään',
20
	monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu',
21
	'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'],
22
	monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä',
23
	'Heinä','Elo','Syys','Loka','Marras','Joulu'],
24
	dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','La'],
25
	dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'],
26
	dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'],
27
	weekHeader: 'Vk',
28
	dateFormat: 'd.m.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['fi']);
34

  
35
return datepicker.regional['fi'];
36

  
37
}));
public/javascripts/i18n/datepicker-fr.js
1
/* French initialisation for the jQuery UI date picker plugin. */
2
/* Written by Keith Wood (kbwood{at}iinet.com.au),
3
			  Stéphane Nahmani (sholby@sholby.net),
4
			  Stéphane Raimbault <stephane.raimbault@gmail.com> */
5
(function( factory ) {
6
	if ( typeof define === "function" && define.amd ) {
7

  
8
		// AMD. Register as an anonymous module.
9
		define([ "../datepicker" ], factory );
10
	} else {
11

  
12
		// Browser globals
13
		factory( jQuery.datepicker );
14
	}
15
}(function( datepicker ) {
16

  
17
datepicker.regional['fr'] = {
18
	closeText: 'Fermer',
19
	prevText: 'Précédent',
20
	nextText: 'Suivant',
21
	currentText: 'Aujourd\'hui',
22
	monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
23
		'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
24
	monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
25
		'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
26
	dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
27
	dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
28
	dayNamesMin: ['D','L','M','M','J','V','S'],
29
	weekHeader: 'Sem.',
30
	dateFormat: 'dd/mm/yy',
31
	firstDay: 1,
32
	isRTL: false,
33
	showMonthAfterYear: false,
34
	yearSuffix: ''};
35
datepicker.setDefaults(datepicker.regional['fr']);
36

  
37
return datepicker.regional['fr'];
38

  
39
}));
public/javascripts/i18n/datepicker-gl.js
1
/* Galician localization for 'UI date picker' jQuery extension. */
2
/* Translated by Jorge Barreiro <yortx.barry@gmail.com>. */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['gl'] = {
16
	closeText: 'Pechar',
17
	prevText: '&#x3C;Ant',
18
	nextText: 'Seg&#x3E;',
19
	currentText: 'Hoxe',
20
	monthNames: ['Xaneiro','Febreiro','Marzo','Abril','Maio','Xuño',
21
	'Xullo','Agosto','Setembro','Outubro','Novembro','Decembro'],
22
	monthNamesShort: ['Xan','Feb','Mar','Abr','Mai','Xuñ',
23
	'Xul','Ago','Set','Out','Nov','Dec'],
24
	dayNames: ['Domingo','Luns','Martes','Mércores','Xoves','Venres','Sábado'],
25
	dayNamesShort: ['Dom','Lun','Mar','Mér','Xov','Ven','Sáb'],
26
	dayNamesMin: ['Do','Lu','Ma','Mé','Xo','Ve','Sá'],
27
	weekHeader: 'Sm',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['gl']);
34

  
35
return datepicker.regional['gl'];
36

  
37
}));
public/javascripts/i18n/datepicker-he.js
1
/* Hebrew initialisation for the UI Datepicker extension. */
2
/* Written by Amir Hardon (ahardon at gmail dot com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['he'] = {
16
	closeText: 'סגור',
17
	prevText: '&#x3C;הקודם',
18
	nextText: 'הבא&#x3E;',
19
	currentText: 'היום',
20
	monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני',
21
	'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'],
22
	monthNamesShort: ['ינו','פבר','מרץ','אפר','מאי','יוני',
23
	'יולי','אוג','ספט','אוק','נוב','דצמ'],
24
	dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'],
25
	dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
26
	dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'],
27
	weekHeader: 'Wk',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 0,
30
	isRTL: true,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['he']);
34

  
35
return datepicker.regional['he'];
36

  
37
}));
public/javascripts/i18n/datepicker-hr.js
1
/* Croatian i18n for the jQuery UI date picker plugin. */
2
/* Written by Vjekoslav Nesek. */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['hr'] = {
16
	closeText: 'Zatvori',
17
	prevText: '&#x3C;',
18
	nextText: '&#x3E;',
19
	currentText: 'Danas',
20
	monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipanj',
21
	'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'],
22
	monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip',
23
	'Srp','Kol','Ruj','Lis','Stu','Pro'],
24
	dayNames: ['Nedjelja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
25
	dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
26
	dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
27
	weekHeader: 'Tje',
28
	dateFormat: 'dd.mm.yy.',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['hr']);
34

  
35
return datepicker.regional['hr'];
36

  
37
}));
public/javascripts/i18n/datepicker-hu.js
1
/* Hungarian initialisation for the jQuery UI date picker plugin. */
2
(function( factory ) {
3
	if ( typeof define === "function" && define.amd ) {
4

  
5
		// AMD. Register as an anonymous module.
6
		define([ "../datepicker" ], factory );
7
	} else {
8

  
9
		// Browser globals
10
		factory( jQuery.datepicker );
11
	}
12
}(function( datepicker ) {
13

  
14
datepicker.regional['hu'] = {
15
	closeText: 'bezár',
16
	prevText: 'vissza',
17
	nextText: 'előre',
18
	currentText: 'ma',
19
	monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június',
20
	'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'],
21
	monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún',
22
	'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'],
23
	dayNames: ['Vasárnap', 'Hétfő', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'],
24
	dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'],
25
	dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'],
26
	weekHeader: 'Hét',
27
	dateFormat: 'yy.mm.dd.',
28
	firstDay: 1,
29
	isRTL: false,
30
	showMonthAfterYear: true,
31
	yearSuffix: ''};
32
datepicker.setDefaults(datepicker.regional['hu']);
33

  
34
return datepicker.regional['hu'];
35

  
36
}));
public/javascripts/i18n/datepicker-id.js
1
/* Indonesian initialisation for the jQuery UI date picker plugin. */
2
/* Written by Deden Fathurahman (dedenf@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['id'] = {
16
	closeText: 'Tutup',
17
	prevText: '&#x3C;mundur',
18
	nextText: 'maju&#x3E;',
19
	currentText: 'hari ini',
20
	monthNames: ['Januari','Februari','Maret','April','Mei','Juni',
21
	'Juli','Agustus','September','Oktober','Nopember','Desember'],
22
	monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun',
23
	'Jul','Agus','Sep','Okt','Nop','Des'],
24
	dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'],
25
	dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'],
26
	dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'],
27
	weekHeader: 'Mg',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 0,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['id']);
34

  
35
return datepicker.regional['id'];
36

  
37
}));
public/javascripts/i18n/datepicker-it.js
1
/* Italian initialisation for the jQuery UI date picker plugin. */
2
/* Written by Antonello Pasella (antonello.pasella@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['it'] = {
16
	closeText: 'Chiudi',
17
	prevText: '&#x3C;Prec',
18
	nextText: 'Succ&#x3E;',
19
	currentText: 'Oggi',
20
	monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno',
21
		'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
22
	monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu',
23
		'Lug','Ago','Set','Ott','Nov','Dic'],
24
	dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],
25
	dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
26
	dayNamesMin: ['Do','Lu','Ma','Me','Gi','Ve','Sa'],
27
	weekHeader: 'Sm',
28
	dateFormat: 'dd/mm/yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['it']);
34

  
35
return datepicker.regional['it'];
36

  
37
}));
public/javascripts/i18n/datepicker-ja.js
1
/* Japanese initialisation for the jQuery UI date picker plugin. */
2
/* Written by Kentaro SATO (kentaro@ranvis.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['ja'] = {
16
	closeText: '閉じる',
17
	prevText: '&#x3C;前',
18
	nextText: '次&#x3E;',
19
	currentText: '今日',
20
	monthNames: ['1月','2月','3月','4月','5月','6月',
21
	'7月','8月','9月','10月','11月','12月'],
22
	monthNamesShort: ['1月','2月','3月','4月','5月','6月',
23
	'7月','8月','9月','10月','11月','12月'],
24
	dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],
25
	dayNamesShort: ['日','月','火','水','木','金','土'],
26
	dayNamesMin: ['日','月','火','水','木','金','土'],
27
	weekHeader: '週',
28
	dateFormat: 'yy/mm/dd',
29
	firstDay: 0,
30
	isRTL: false,
31
	showMonthAfterYear: true,
32
	yearSuffix: '年'};
33
datepicker.setDefaults(datepicker.regional['ja']);
34

  
35
return datepicker.regional['ja'];
36

  
37
}));
public/javascripts/i18n/datepicker-ko.js
1
/* Korean initialisation for the jQuery calendar extension. */
2
/* Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie. */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['ko'] = {
16
	closeText: '닫기',
17
	prevText: '이전달',
18
	nextText: '다음달',
19
	currentText: '오늘',
20
	monthNames: ['1월','2월','3월','4월','5월','6월',
21
	'7월','8월','9월','10월','11월','12월'],
22
	monthNamesShort: ['1월','2월','3월','4월','5월','6월',
23
	'7월','8월','9월','10월','11월','12월'],
24
	dayNames: ['일요일','월요일','화요일','수요일','목요일','금요일','토요일'],
25
	dayNamesShort: ['일','월','화','수','목','금','토'],
26
	dayNamesMin: ['일','월','화','수','목','금','토'],
27
	weekHeader: 'Wk',
28
	dateFormat: 'yy-mm-dd',
29
	firstDay: 0,
30
	isRTL: false,
31
	showMonthAfterYear: true,
32
	yearSuffix: '년'};
33
datepicker.setDefaults(datepicker.regional['ko']);
34

  
35
return datepicker.regional['ko'];
36

  
37
}));
public/javascripts/i18n/datepicker-lt.js
1
/* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */
2
/* @author Arturas Paleicikas <arturas@avalon.lt> */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['lt'] = {
16
	closeText: 'Uždaryti',
17
	prevText: '&#x3C;Atgal',
18
	nextText: 'Pirmyn&#x3E;',
19
	currentText: 'Šiandien',
20
	monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis',
21
	'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'],
22
	monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir',
23
	'Lie','Rugp','Rugs','Spa','Lap','Gru'],
24
	dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'],
25
	dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'],
26
	dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'],
27
	weekHeader: 'SAV',
28
	dateFormat: 'yy-mm-dd',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: true,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['lt']);
34

  
35
return datepicker.regional['lt'];
36

  
37
}));
public/javascripts/i18n/datepicker-lv.js
1
/* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */
2
/* @author Arturas Paleicikas <arturas.paleicikas@metasite.net> */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['lv'] = {
16
	closeText: 'Aizvērt',
17
	prevText: 'Iepr.',
18
	nextText: 'Nāk.',
19
	currentText: 'Šodien',
20
	monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs',
21
	'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'],
22
	monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn',
23
	'Jūl','Aug','Sep','Okt','Nov','Dec'],
24
	dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'],
25
	dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'],
26
	dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'],
27
	weekHeader: 'Ned.',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['lv']);
34

  
35
return datepicker.regional['lv'];
36

  
37
}));
public/javascripts/i18n/datepicker-mk.js
1
/* Macedonian i18n for the jQuery UI date picker plugin. */
2
/* Written by Stojce Slavkovski. */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['mk'] = {
16
	closeText: 'Затвори',
17
	prevText: '&#x3C;',
18
	nextText: '&#x3E;',
19
	currentText: 'Денес',
20
	monthNames: ['Јануари','Февруари','Март','Април','Мај','Јуни',
21
	'Јули','Август','Септември','Октомври','Ноември','Декември'],
22
	monthNamesShort: ['Јан','Фев','Мар','Апр','Мај','Јун',
23
	'Јул','Авг','Сеп','Окт','Ное','Дек'],
24
	dayNames: ['Недела','Понеделник','Вторник','Среда','Четврток','Петок','Сабота'],
25
	dayNamesShort: ['Нед','Пон','Вто','Сре','Чет','Пет','Саб'],
26
	dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Са'],
27
	weekHeader: 'Сед',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['mk']);
34

  
35
return datepicker.regional['mk'];
36

  
37
}));
public/javascripts/i18n/datepicker-nl.js
1
/* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */
2
/* Written by Mathias Bynens <http://mathiasbynens.be/> */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional.nl = {
16
	closeText: 'Sluiten',
17
	prevText: '←',
18
	nextText: '→',
19
	currentText: 'Vandaag',
20
	monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni',
21
	'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
22
	monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun',
23
	'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
24
	dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
25
	dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'],
26
	dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
27
	weekHeader: 'Wk',
28
	dateFormat: 'dd-mm-yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional.nl);
34

  
35
return datepicker.regional.nl;
36

  
37
}));
public/javascripts/i18n/datepicker-no.js
1
/* Norwegian initialisation for the jQuery UI date picker plugin. */
2
/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */
3

  
4
(function( factory ) {
5
	if ( typeof define === "function" && define.amd ) {
6

  
7
		// AMD. Register as an anonymous module.
8
		define([ "../datepicker" ], factory );
9
	} else {
10

  
11
		// Browser globals
12
		factory( jQuery.datepicker );
13
	}
14
}(function( datepicker ) {
15

  
16
datepicker.regional['no'] = {
17
	closeText: 'Lukk',
18
	prevText: '&#xAB;Forrige',
19
	nextText: 'Neste&#xBB;',
20
	currentText: 'I dag',
21
	monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
22
	monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
23
	dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
24
	dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
25
	dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
26
	weekHeader: 'Uke',
27
	dateFormat: 'dd.mm.yy',
28
	firstDay: 1,
29
	isRTL: false,
30
	showMonthAfterYear: false,
31
	yearSuffix: ''
32
};
33
datepicker.setDefaults(datepicker.regional['no']);
34

  
35
return datepicker.regional['no'];
36

  
37
}));
public/javascripts/i18n/datepicker-pl.js
1
/* Polish initialisation for the jQuery UI date picker plugin. */
2
/* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */
3
(function( factory ) {
4
	if ( typeof define === "function" && define.amd ) {
5

  
6
		// AMD. Register as an anonymous module.
7
		define([ "../datepicker" ], factory );
8
	} else {
9

  
10
		// Browser globals
11
		factory( jQuery.datepicker );
12
	}
13
}(function( datepicker ) {
14

  
15
datepicker.regional['pl'] = {
16
	closeText: 'Zamknij',
17
	prevText: '&#x3C;Poprzedni',
18
	nextText: 'Następny&#x3E;',
19
	currentText: 'Dziś',
20
	monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec',
21
	'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],
22
	monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze',
23
	'Lip','Sie','Wrz','Pa','Lis','Gru'],
24
	dayNames: ['Niedziela','Poniedziałek','Wtorek','Środa','Czwartek','Piątek','Sobota'],
25
	dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'],
26
	dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'],
27
	weekHeader: 'Tydz',
28
	dateFormat: 'dd.mm.yy',
29
	firstDay: 1,
30
	isRTL: false,
31
	showMonthAfterYear: false,
32
	yearSuffix: ''};
33
datepicker.setDefaults(datepicker.regional['pl']);
34

  
35
return datepicker.regional['pl'];
36

  
37
}));
... This diff was truncated because it exceeds the maximum size that can be displayed.