diff --git a/js/jquery/timepicker.js b/js/jquery/timepicker.js index 492692d48..ea927fd4c 100644 --- a/js/jquery/timepicker.js +++ b/js/jquery/timepicker.js @@ -27,7 +27,15 @@ $.extend($.datepicker._defaults, { 'stepHours': 1, // Number of hours to step up/down 'time24h': false, // True if 24h time 'showTime': false, // Show timepicker with datepicker - 'altTimeField': '' // Selector for an alternate field to store time into + 'altTimeField': '', // Selector for an alternate field to store time into + 'hourText': 'Hour', + 'minuteText': 'Minute', + 'secondText': 'Second', +}); +$.extend($.datepicker.regional[''], { + 'hourText': 'Hour', + 'minuteText': 'Minute', + 'secondText': 'Second', }); /** @@ -220,6 +228,10 @@ Timepicker.prototype = { $('#secondSlider').slider('option', 'max', 60 - stepSeconds); $('#secondSlider').slider('option', 'step', stepSeconds); + $('.hour_text').html($.datepicker._get(inst, 'hourText')); + $('.minute_text').html($.datepicker._get(inst, 'minuteText')); + $('.second_text').html($.datepicker._get(inst, 'secondText')); + this._inputId = input.id; if (!this._visible) { @@ -300,7 +312,13 @@ Timepicker.prototype = { html += '
'; html += '
'; html += '08:45:45
'; - html += ''; + html += ''; html += ''; html += '
HourMinuteSecond
'; + html += 'Hour'; + html += ''; + html += 'Minute'; + html += ''; + html += 'Second'; + html += '
';