mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-10-30 21:52:00 +01:00
feature 2679 : allow to change creation time
git-svn-id: http://piwigo.org/svn/trunk@28500 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
914b6d96d2
commit
97ffdb2edc
51 files changed
+3107
-71
No files matched your search
@@ -292,7 +292,7 @@ DELETE
|
||||
}
|
||||
else
|
||||
{
|
||||
$date_creation = $_POST['date_creation'].' 00:00:00';
|
||||
$date_creation = $_POST['date_creation'];
|
||||
}
|
||||
|
||||
$datas = array();
|
||||
@@ -565,7 +565,7 @@ if (count($page['cat_elements_id']) > 0)
|
||||
|
||||
// creation date
|
||||
$template->assign('DATE_CREATION',
|
||||
empty($_POST['date_creation']) ? date('y-n-j') : $_POST['date_creation']
|
||||
empty($_POST['date_creation']) ? date('Y-m-d').' 00:00:00' : $_POST['date_creation']
|
||||
);
|
||||
|
||||
// image level options
|
||||
|
||||
@@ -78,15 +78,7 @@ SELECT id, date_creation
|
||||
|
||||
if (!empty($_POST['date_creation-'.$row['id']]))
|
||||
{
|
||||
if (!empty($row['date_creation']))
|
||||
{
|
||||
list(, $time) = explode(' ', $row['date_creation']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$time = '00:00:00';
|
||||
}
|
||||
$data['date_creation'] = $_POST['date_creation-'.$row['id']].' '.$time;
|
||||
$data['date_creation'] = $_POST['date_creation-'.$row['id']];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -222,16 +214,6 @@ SELECT *
|
||||
|
||||
$src_image = new SrcImage($row);
|
||||
|
||||
// creation date
|
||||
if (!empty($row['date_creation']))
|
||||
{
|
||||
list($date) = explode(' ', $row['date_creation']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$date = '';
|
||||
}
|
||||
|
||||
$query = '
|
||||
SELECT
|
||||
id,
|
||||
@@ -260,7 +242,7 @@ SELECT
|
||||
'AUTHOR' => htmlspecialchars(@$row['author']),
|
||||
'LEVEL' => !empty($row['level'])?$row['level']:'0',
|
||||
'DESCRIPTION' => htmlspecialchars(@$row['comment']),
|
||||
'DATE_CREATION' => $date,
|
||||
'DATE_CREATION' => $row['date_creation'],
|
||||
'TAGS' => $tag_selection,
|
||||
)
|
||||
));
|
||||
|
||||
+1
-1
@@ -570,7 +570,7 @@ else
|
||||
{
|
||||
// by default, at page load, we want the selected date to be the current
|
||||
// date
|
||||
$form['start'] = $form['end'] = date('Y-n-j');
|
||||
$form['start'] = $form['end'] = date('Y-m-d');
|
||||
$form['types'] = $types;
|
||||
// Hoverbox by default
|
||||
$form['display_thumbnail'] =
|
||||
|
||||
@@ -127,7 +127,7 @@ if (isset($_POST['submit']))
|
||||
|
||||
if (!empty($_POST['date_creation']))
|
||||
{
|
||||
$data['date_creation'] = $_POST['date_creation'].' '.$_POST['date_creation_time'];
|
||||
$data['date_creation'] = $_POST['date_creation'];
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -255,6 +255,8 @@ $template->assign(
|
||||
: @$row['author']
|
||||
),
|
||||
|
||||
'DATE_CREATION' => $row['date_creation'],
|
||||
|
||||
'DESCRIPTION' =>
|
||||
htmlspecialchars( isset($_POST['description']) ?
|
||||
stripslashes($_POST['description']) : @$row['comment'] ),
|
||||
@@ -316,26 +318,7 @@ $template->assign(
|
||||
)
|
||||
);
|
||||
|
||||
// creation date
|
||||
unset($day, $month, $year);
|
||||
|
||||
if (!empty($row['date_creation']))
|
||||
{
|
||||
list($date, $time) = explode(' ', $row['date_creation']);
|
||||
}
|
||||
else
|
||||
{
|
||||
$date = '';
|
||||
$time = '00:00:00';
|
||||
}
|
||||
|
||||
$template->assign(
|
||||
array(
|
||||
'DATE_CREATION' => $date,
|
||||
'DATE_CREATION_TIME' => $time,
|
||||
)
|
||||
);
|
||||
|
||||
// categories
|
||||
$query = '
|
||||
SELECT category_id, uppercats
|
||||
FROM '.IMAGE_CATEGORY_TABLE.' AS ic
|
||||
|
||||
@@ -1,45 +1,69 @@
|
||||
jQuery.timepicker.log = jQuery.noop; // that's ugly, but the timepicker is acting weird and throws parsing errors
|
||||
|
||||
jQuery.fn.pwgDatepicker = function(options) {
|
||||
options = options || {};
|
||||
|
||||
return this.each(function() {
|
||||
var $this = jQuery(this),
|
||||
$target = jQuery('[name="'+ jQuery(this).data('datepicker') +'"]'),
|
||||
value = $target.val().split('-');
|
||||
linked = !!$target.length;
|
||||
|
||||
function set(date) {
|
||||
$this.datepicker('setDate', date);
|
||||
if (linked) { // get value before init
|
||||
var value = $target.val().split(' ');
|
||||
}
|
||||
|
||||
// custom setter
|
||||
function set(date, init) {
|
||||
$this.datetimepicker('setDate', date);
|
||||
|
||||
if ($this.data('datepicker-start')) {
|
||||
$start.datepicker('option', 'maxDate', date);
|
||||
$start.datetimepicker('option', 'maxDate', date);
|
||||
}
|
||||
else if ($this.data('datepicker-end')) {
|
||||
$end.datepicker('option', 'minDate', date);
|
||||
if (!init) { // on init, "end" is not initialized yet (assuming "start" is before "end" in the DOM)
|
||||
$end.datetimepicker('option', 'minDate', date);
|
||||
}
|
||||
}
|
||||
|
||||
if (!date && linked) {
|
||||
$target.val('');
|
||||
}
|
||||
}
|
||||
|
||||
// init picker
|
||||
$this.datepicker(jQuery.extend({
|
||||
dateFormat: 'DD d MM yy',
|
||||
altField: $target,
|
||||
$this.datetimepicker(jQuery.extend({
|
||||
dateFormat: linked ? 'DD d MM yy' : 'yy-mm-dd',
|
||||
timeFormat: 'HH:mm',
|
||||
|
||||
altField: linked ? $target : null,
|
||||
altFormat: 'yy-mm-dd',
|
||||
altTimeFormat: options.showTimepicker ? 'HH:mm:ss' : '',
|
||||
|
||||
autoSize: true,
|
||||
changeMonth : true,
|
||||
changeYear: true
|
||||
changeYear: true,
|
||||
showTimepicker: false,
|
||||
altFieldTimeOnly: false,
|
||||
showSecond: false,
|
||||
alwaysSetTime: false,
|
||||
stepMinute: 5
|
||||
}, options));
|
||||
|
||||
// attach linked picker (for ranges)
|
||||
// attach range pickers
|
||||
if ($this.data('datepicker-start')) {
|
||||
var $start = jQuery('[data-datepicker="'+ jQuery(this).data('datepicker-start') +'"]');
|
||||
|
||||
$this.datepicker('option', 'onClose', function(date) {
|
||||
$start.datepicker('option', 'maxDate', date);
|
||||
$this.datetimepicker('option', 'onClose', function(date) {
|
||||
$start.datetimepicker('option', 'maxDate', date);
|
||||
});
|
||||
|
||||
$this.datetimepicker('option', 'minDate', $start.datetimepicker('getDate'));
|
||||
}
|
||||
else if ($this.data('datepicker-end')) {
|
||||
var $end = jQuery('[data-datepicker="'+ jQuery(this).data('datepicker-end') +'"]');
|
||||
|
||||
$this.datepicker('option', 'onClose', function(date) {
|
||||
$end.datepicker('option', 'minDate', date);
|
||||
$this.datetimepicker('option', 'onClose', function(date) {
|
||||
$end.datetimepicker('option', 'minDate', date);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -47,15 +71,26 @@ jQuery.fn.pwgDatepicker = function(options) {
|
||||
if ($this.data('datepicker-unset')) {
|
||||
jQuery('#'+ $this.data('datepicker-unset')).on('click', function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$target.val('');
|
||||
set(null);
|
||||
set(null, false);
|
||||
});
|
||||
}
|
||||
|
||||
// set value from linked input
|
||||
if (value.length == 3) {
|
||||
set(new Date(value[0], value[1]-1, value[2]));
|
||||
if (linked) {
|
||||
if (value[0].length == 10 && !options.showTimepicker) {
|
||||
set(jQuery.datepicker.parseDate('yy-mm-dd', value[0]), true);
|
||||
}
|
||||
else if (value.length == 2 && options.showTimepicker) {
|
||||
set(jQuery.datepicker.parseDateTime('yy-mm-dd', 'HH:mm:ss', value.join(' ')), true);
|
||||
}
|
||||
else {
|
||||
set(null, true);
|
||||
}
|
||||
}
|
||||
|
||||
// autoSize not handled by timepicker
|
||||
if (options.showTimepicker) {
|
||||
$this.attr('size', parseInt($this.attr('size'))+6);
|
||||
}
|
||||
});
|
||||
};
|
||||
@@ -60,7 +60,7 @@ jQuery(document).ready(function() {
|
||||
|
||||
{footer_script require='jquery.tokeninput'}
|
||||
jQuery(document).ready(function() {ldelim}
|
||||
jQuery('[data-datepicker]').pwgDatepicker();
|
||||
jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true });
|
||||
|
||||
jQuery("a.preview-box").colorbox();
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ tagsCache.get(function(tags) {
|
||||
|
||||
{* <!-- DATEPICKER --> *}
|
||||
jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *}
|
||||
jQuery('[data-datepicker]').pwgDatepicker();
|
||||
jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true });
|
||||
});
|
||||
|
||||
{* <!-- THUMBNAILS --> *}
|
||||
|
||||
@@ -1,9 +1,16 @@
|
||||
{combine_script id='datepicker.js' load='footer' require='jquery.ui.datepicker' path='admin/themes/default/js/datepicker.js'}
|
||||
{combine_script id='jquery.ui.timepicker-addon' load='footer' require='jquery.ui.datepicker,jquery.ui.slider' path="themes/default/js/ui/jquery.ui.timepicker-addon.js"}
|
||||
{combine_script id='datepicker.js' load='footer' require='jquery.ui.timepicker-addon' path='admin/themes/default/js/datepicker.js'}
|
||||
|
||||
{assign var="datepicker_language" value="themes/default/js/ui/i18n/jquery.ui.datepicker-`$lang_info.code`.js"}
|
||||
|
||||
{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
|
||||
{combine_script id="jquery.ui.datepicker-$lang_info.code" load='footer' path=$datepicker_language}
|
||||
{combine_script id="jquery.ui.datepicker-$lang_info.code" load='footer' require='jquery.ui.datepicker' path=$datepicker_language}
|
||||
{/if}
|
||||
|
||||
{combine_css path="themes/default/js/ui/theme/jquery.ui.datepicker.css"}
|
||||
{assign var="timepicker_language" value="themes/default/js/ui/i18n/jquery.ui.timepicker-`$lang_info.code`.js"}
|
||||
{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
|
||||
{combine_script id="jquery.ui.timepicker-$lang_info.code" load='footer' require='jquery.ui.timepicker-addon' path=$timepicker_language}
|
||||
{/if}
|
||||
|
||||
{combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"}
|
||||
{combine_css path="themes/default/js/ui/theme/jquery.ui.datepicker.css"}
|
||||
{combine_css path="themes/default/js/ui/theme/jquery.ui.timepicker-addon.css"}
|
||||
@@ -77,7 +77,7 @@ tagsCache.get(function(tags) {
|
||||
|
||||
{* <!-- DATEPICKER --> *}
|
||||
jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *}
|
||||
jQuery('[data-datepicker]').pwgDatepicker();
|
||||
jQuery('[data-datepicker]').pwgDatepicker({ showTimepicker: true });
|
||||
});
|
||||
}());
|
||||
{/footer_script}
|
||||
@@ -140,7 +140,6 @@ jQuery(function(){ {* <!-- onLoad needed to wait localization loads --> *}
|
||||
<p>
|
||||
<strong>{'Creation date'|@translate}</strong>
|
||||
<br>
|
||||
<input type="hidden" name="date_creation_time" value="{$DATE_CREATION_TIME}">
|
||||
<input type="hidden" name="date_creation" value="{$DATE_CREATION}">
|
||||
<label>
|
||||
<i class="icon-calendar"></i>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Afrikaans translation for the jQuery Timepicker Addon */
|
||||
/* Written by Deon Heyns */
|
||||
(function($) {
|
||||
$.timepicker.regional['af'] = {
|
||||
timeOnlyTitle: 'Kies Tyd',
|
||||
timeText: 'Tyd ',
|
||||
hourText: 'Ure ',
|
||||
minuteText: 'Minute',
|
||||
secondText: 'Sekondes',
|
||||
millisecText: 'Millisekondes',
|
||||
microsecText: 'Mikrosekondes',
|
||||
timezoneText: 'Tydsone',
|
||||
currentText: 'Huidige Tyd',
|
||||
closeText: 'Klaar',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['af']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Armenian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Artavazd Avetisyan artavazda@hotmail.com */
|
||||
(function($) {
|
||||
$.timepicker.regional['am'] = {
|
||||
timeOnlyTitle: 'Ընտրեք ժամանակը',
|
||||
timeText: 'Ժամանակը',
|
||||
hourText: 'Ժամ',
|
||||
minuteText: 'Րոպե',
|
||||
secondText: 'Վարկյան',
|
||||
millisecText: 'Միլիվարկյան',
|
||||
microsecText: 'Միկրովարկյան',
|
||||
timezoneText: 'Ժամային գոտին',
|
||||
currentText: 'Այժմ',
|
||||
closeText: 'Փակել',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['am']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Bulgarian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Plamen Kovandjiev */
|
||||
(function($) {
|
||||
$.timepicker.regional['bg'] = {
|
||||
timeOnlyTitle: 'Изберете време',
|
||||
timeText: 'Време',
|
||||
hourText: 'Час',
|
||||
minuteText: 'Минути',
|
||||
secondText: 'Секунди',
|
||||
millisecText: 'Милисекунди',
|
||||
microsecText: 'Микросекунди',
|
||||
timezoneText: 'Часови пояс',
|
||||
currentText: 'Сега',
|
||||
closeText: 'Затвори',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['bg']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Catalan translation for the jQuery Timepicker Addon */
|
||||
/* Written by Sergi Faber */
|
||||
(function($) {
|
||||
$.timepicker.regional['ca'] = {
|
||||
timeOnlyTitle: 'Escollir una hora',
|
||||
timeText: 'Hora',
|
||||
hourText: 'Hores',
|
||||
minuteText: 'Minuts',
|
||||
secondText: 'Segons',
|
||||
millisecText: 'Milisegons',
|
||||
microsecText: 'Microsegons',
|
||||
timezoneText: 'Fus horari',
|
||||
currentText: 'Ara',
|
||||
closeText: 'Tancar',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['ca']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Czech translation for the jQuery Timepicker Addon */
|
||||
/* Written by Ondřej Vodáček */
|
||||
(function($) {
|
||||
$.timepicker.regional['cs'] = {
|
||||
timeOnlyTitle: 'Vyberte čas',
|
||||
timeText: 'Čas',
|
||||
hourText: 'Hodiny',
|
||||
minuteText: 'Minuty',
|
||||
secondText: 'Vteřiny',
|
||||
millisecText: 'Milisekundy',
|
||||
microsecText: 'Mikrosekundy',
|
||||
timezoneText: 'Časové pásmo',
|
||||
currentText: 'Nyní',
|
||||
closeText: 'Zavřít',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['dop.', 'AM', 'A'],
|
||||
pmNames: ['odp.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['cs']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Danish translation for the jQuery Timepicker Addon */
|
||||
/* Written by Lars H. Jensen (http://www.larshj.dk) */
|
||||
(function ($) {
|
||||
$.timepicker.regional['da'] = {
|
||||
timeOnlyTitle: 'Vælg tid',
|
||||
timeText: 'Tid',
|
||||
hourText: 'Time',
|
||||
minuteText: 'Minut',
|
||||
secondText: 'Sekund',
|
||||
millisecText: 'Millisekund',
|
||||
microsecText: 'Mikrosekund',
|
||||
timezoneText: 'Tidszone',
|
||||
currentText: 'Nu',
|
||||
closeText: 'Luk',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['am', 'AM', 'A'],
|
||||
pmNames: ['pm', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['da']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* German translation for the jQuery Timepicker Addon */
|
||||
/* Written by Marvin */
|
||||
(function($) {
|
||||
$.timepicker.regional['de'] = {
|
||||
timeOnlyTitle: 'Zeit wählen',
|
||||
timeText: 'Zeit',
|
||||
hourText: 'Stunde',
|
||||
minuteText: 'Minute',
|
||||
secondText: 'Sekunde',
|
||||
millisecText: 'Millisekunde',
|
||||
microsecText: 'Mikrosekunde',
|
||||
timezoneText: 'Zeitzone',
|
||||
currentText: 'Jetzt',
|
||||
closeText: 'Fertig',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['vorm.', 'AM', 'A'],
|
||||
pmNames: ['nachm.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['de']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Hellenic translation for the jQuery Timepicker Addon */
|
||||
/* Written by Christos Pontikis */
|
||||
(function($) {
|
||||
$.timepicker.regional['el'] = {
|
||||
timeOnlyTitle: 'Επιλογή ώρας',
|
||||
timeText: 'Ώρα',
|
||||
hourText: 'Ώρες',
|
||||
minuteText: 'Λεπτά',
|
||||
secondText: 'Δευτερόλεπτα',
|
||||
millisecText: 'μιλιδευτερόλεπτο',
|
||||
microsecText: 'Microseconds',
|
||||
timezoneText: 'Ζώνη ώρας',
|
||||
currentText: 'Τώρα',
|
||||
closeText: 'Κλείσιμο',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['π.μ.', 'AM', 'A'],
|
||||
pmNames: ['μ.μ.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['el']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Spanish translation for the jQuery Timepicker Addon */
|
||||
/* Written by Ianaré Sévi */
|
||||
(function($) {
|
||||
$.timepicker.regional['es'] = {
|
||||
timeOnlyTitle: 'Elegir una hora',
|
||||
timeText: 'Hora',
|
||||
hourText: 'Horas',
|
||||
minuteText: 'Minutos',
|
||||
secondText: 'Segundos',
|
||||
millisecText: 'Milisegundos',
|
||||
microsecText: 'Microsegundos',
|
||||
timezoneText: 'Huso horario',
|
||||
currentText: 'Ahora',
|
||||
closeText: 'Cerrar',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['a.m.', 'AM', 'A'],
|
||||
pmNames: ['p.m.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['es']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Estonian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Karl Sutt (karl@sutt.ee) */
|
||||
(function($) {
|
||||
$.timepicker.regional['et'] = {
|
||||
timeOnlyTitle: 'Vali aeg',
|
||||
timeText: 'Aeg',
|
||||
hourText: 'Tund',
|
||||
minuteText: 'Minut',
|
||||
secondText: 'Sekund',
|
||||
millisecText: 'Millisekundis',
|
||||
microsecText: 'Mikrosekundis',
|
||||
timezoneText: 'Ajavöönd',
|
||||
currentText: 'Praegu',
|
||||
closeText: 'Valmis',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['et']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Basque trannslation for JQuery Timepicker Addon */
|
||||
/* Translated by Xabi Fer */
|
||||
/* Fixed by Asier Iturralde Sarasola - iametza interaktiboa */
|
||||
(function($) {
|
||||
$.timepicker.regional['eu'] = {
|
||||
timeOnlyTitle: 'Aukeratu ordua',
|
||||
timeText: 'Ordua',
|
||||
hourText: 'Orduak',
|
||||
minuteText: 'Minutuak',
|
||||
secondText: 'Segundoak',
|
||||
millisecText: 'Milisegundoak',
|
||||
microsecText: 'Mikrosegundoak',
|
||||
timezoneText: 'Ordu-eremua',
|
||||
currentText: 'Orain',
|
||||
closeText: 'Itxi',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['a.m.', 'AM', 'A'],
|
||||
pmNames: ['p.m.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['eu']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Finnish translation for the jQuery Timepicker Addon */
|
||||
/* Written by Juga Paazmaya (http://github.com/paazmaya) */
|
||||
(function($) {
|
||||
$.timepicker.regional['fi'] = {
|
||||
timeOnlyTitle: 'Valitse aika',
|
||||
timeText: 'Aika',
|
||||
hourText: 'Tunti',
|
||||
minuteText: 'Minuutti',
|
||||
secondText: 'Sekunti',
|
||||
millisecText: 'Millisekunnin',
|
||||
microsecText: 'Mikrosekuntia',
|
||||
timezoneText: 'Aikavyöhyke',
|
||||
currentText: 'Nyt',
|
||||
closeText: 'Sulje',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['ap.', 'AM', 'A'],
|
||||
pmNames: ['ip.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['fi']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* French translation for the jQuery Timepicker Addon */
|
||||
/* Written by Thomas Lété */
|
||||
(function($) {
|
||||
$.timepicker.regional['fr'] = {
|
||||
timeOnlyTitle: 'Choisir une heure',
|
||||
timeText: 'Heure',
|
||||
hourText: 'Heures',
|
||||
minuteText: 'Minutes',
|
||||
secondText: 'Secondes',
|
||||
millisecText: 'Millisecondes',
|
||||
microsecText: 'Microsecondes',
|
||||
timezoneText: 'Fuseau horaire',
|
||||
currentText: 'Maintenant',
|
||||
closeText: 'Terminé',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['fr']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Galician translation for the jQuery Timepicker Addon */
|
||||
/* Written by David Barral */
|
||||
(function($) {
|
||||
$.timepicker.regional['gl'] = {
|
||||
timeOnlyTitle: 'Elixir unha hora',
|
||||
timeText: 'Hora',
|
||||
hourText: 'Horas',
|
||||
minuteText: 'Minutos',
|
||||
secondText: 'Segundos',
|
||||
millisecText: 'Milisegundos',
|
||||
microsecText: 'Microssegundos',
|
||||
timezoneText: 'Fuso horario',
|
||||
currentText: 'Agora',
|
||||
closeText: 'Pechar',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['a.m.', 'AM', 'A'],
|
||||
pmNames: ['p.m.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['gl']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Hebrew translation for the jQuery Timepicker Addon */
|
||||
/* Written by Lior Lapid */
|
||||
(function($) {
|
||||
$.timepicker.regional["he"] = {
|
||||
timeOnlyTitle: "בחירת זמן",
|
||||
timeText: "שעה",
|
||||
hourText: "שעות",
|
||||
minuteText: "דקות",
|
||||
secondText: "שניות",
|
||||
millisecText: "אלפית השנייה",
|
||||
microsecText: "מיקרו",
|
||||
timezoneText: "אזור זמן",
|
||||
currentText: "עכשיו",
|
||||
closeText:"סגור",
|
||||
timeFormat: "HH:mm",
|
||||
amNames: ['לפנה"צ', 'AM', 'A'],
|
||||
pmNames: ['אחה"צ', 'PM', 'P'],
|
||||
isRTL: true
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional["he"]);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Croatian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Mladen */
|
||||
(function($) {
|
||||
$.timepicker.regional['hr'] = {
|
||||
timeOnlyTitle: 'Odaberi vrijeme',
|
||||
timeText: 'Vrijeme',
|
||||
hourText: 'Sati',
|
||||
minuteText: 'Minute',
|
||||
secondText: 'Sekunde',
|
||||
millisecText: 'Milisekunde',
|
||||
microsecText: 'Mikrosekunde',
|
||||
timezoneText: 'Vremenska zona',
|
||||
currentText: 'Sada',
|
||||
closeText: 'Gotovo',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['a.m.', 'AM', 'A'],
|
||||
pmNames: ['p.m.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['hr']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Hungarian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Vas Gábor */
|
||||
(function($) {
|
||||
$.timepicker.regional['hu'] = {
|
||||
timeOnlyTitle: 'Válasszon időpontot',
|
||||
timeText: 'Idő',
|
||||
hourText: 'Óra',
|
||||
minuteText: 'Perc',
|
||||
secondText: 'Másodperc',
|
||||
millisecText: 'Milliszekundumos',
|
||||
microsecText: 'Ezredmásodperc',
|
||||
timezoneText: 'Időzóna',
|
||||
currentText: 'Most',
|
||||
closeText: 'Kész',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['de.', 'AM', 'A'],
|
||||
pmNames: ['du.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['hu']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Indonesian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Nia */
|
||||
(function($) {
|
||||
$.timepicker.regional['id'] = {
|
||||
timeOnlyTitle: 'Pilih Waktu',
|
||||
timeText: 'Waktu',
|
||||
hourText: 'Pukul',
|
||||
minuteText: 'Menit',
|
||||
secondText: 'Detik',
|
||||
millisecText: 'Milidetik',
|
||||
microsecText: 'Mikrodetik',
|
||||
timezoneText: 'Zona Waktu',
|
||||
currentText: 'Sekarang',
|
||||
closeText: 'OK',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['id']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Italian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Marco "logicoder" Del Tongo */
|
||||
(function($) {
|
||||
$.timepicker.regional['it'] = {
|
||||
timeOnlyTitle: 'Scegli orario',
|
||||
timeText: 'Orario',
|
||||
hourText: 'Ora',
|
||||
minuteText: 'Minuti',
|
||||
secondText: 'Secondi',
|
||||
millisecText: 'Millisecondi',
|
||||
microsecText: 'Microsecondi',
|
||||
timezoneText: 'Fuso orario',
|
||||
currentText: 'Adesso',
|
||||
closeText: 'Chiudi',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['m.', 'AM', 'A'],
|
||||
pmNames: ['p.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['it']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Japanese translation for the jQuery Timepicker Addon */
|
||||
/* Written by Jun Omae */
|
||||
(function($) {
|
||||
$.timepicker.regional['ja'] = {
|
||||
timeOnlyTitle: '時間を選択',
|
||||
timeText: '時間',
|
||||
hourText: '時',
|
||||
minuteText: '分',
|
||||
secondText: '秒',
|
||||
millisecText: 'ミリ秒',
|
||||
microsecText: 'マイクロ秒',
|
||||
timezoneText: 'タイムゾーン',
|
||||
currentText: '現時刻',
|
||||
closeText: '閉じる',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['午前', 'AM', 'A'],
|
||||
pmNames: ['午後', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['ja']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Korean translation for the jQuery Timepicker Addon */
|
||||
/* Written by Genie */
|
||||
(function($) {
|
||||
$.timepicker.regional['ko'] = {
|
||||
timeOnlyTitle: '시간 선택',
|
||||
timeText: '시간',
|
||||
hourText: '시',
|
||||
minuteText: '분',
|
||||
secondText: '초',
|
||||
millisecText: '밀리초',
|
||||
microsecText: '마이크로',
|
||||
timezoneText: '표준 시간대',
|
||||
currentText: '현재 시각',
|
||||
closeText: '닫기',
|
||||
timeFormat: 'tt h:mm',
|
||||
amNames: ['오전', 'AM', 'A'],
|
||||
pmNames: ['오후', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['ko']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Lithuanian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Irmantas Šiupšinskas */
|
||||
(function($) {
|
||||
$.timepicker.regional['lt'] = {
|
||||
timeOnlyTitle: 'Pasirinkite laiką',
|
||||
timeText: 'Laikas',
|
||||
hourText: 'Valandos',
|
||||
minuteText: 'Minutės',
|
||||
secondText: 'Sekundės',
|
||||
millisecText: 'Milisekundės',
|
||||
microsecText: 'Mikrosekundės',
|
||||
timezoneText: 'Laiko zona',
|
||||
currentText: 'Dabar',
|
||||
closeText: 'Uždaryti',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['priešpiet', 'AM', 'A'],
|
||||
pmNames: ['popiet', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['lt']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Dutch translation for the jQuery Timepicker Addon */
|
||||
/* Written by Martijn van der Lee */
|
||||
(function($) {
|
||||
$.timepicker.regional['nl'] = {
|
||||
timeOnlyTitle: 'Tijdstip',
|
||||
timeText: 'Tijd',
|
||||
hourText: 'Uur',
|
||||
minuteText: 'Minuut',
|
||||
secondText: 'Seconde',
|
||||
millisecText: 'Milliseconde',
|
||||
microsecText: 'Microseconde',
|
||||
timezoneText: 'Tijdzone',
|
||||
currentText: 'Vandaag',
|
||||
closeText: 'Sluiten',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['nl']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Norwegian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Morten Hauan (http://hauan.me) */
|
||||
(function($) {
|
||||
$.timepicker.regional['no'] = {
|
||||
timeOnlyTitle: 'Velg tid',
|
||||
timeText: 'Tid',
|
||||
hourText: 'Time',
|
||||
minuteText: 'Minutt',
|
||||
secondText: 'Sekund',
|
||||
millisecText: 'Millisekund',
|
||||
microsecText: 'mikrosekund',
|
||||
timezoneText: 'Tidssone',
|
||||
currentText: 'Nå',
|
||||
closeText: 'Lukk',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['am', 'AM', 'A'],
|
||||
pmNames: ['pm', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['no']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Polish translation for the jQuery Timepicker Addon */
|
||||
/* Written by Michał Pena */
|
||||
(function($) {
|
||||
$.timepicker.regional['pl'] = {
|
||||
timeOnlyTitle: 'Wybierz godzinę',
|
||||
timeText: 'Czas',
|
||||
hourText: 'Godzina',
|
||||
minuteText: 'Minuta',
|
||||
secondText: 'Sekunda',
|
||||
millisecText: 'Milisekunda',
|
||||
microsecText: 'Mikrosekunda',
|
||||
timezoneText: 'Strefa czasowa',
|
||||
currentText: 'Teraz',
|
||||
closeText: 'Gotowe',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['pl']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Brazilian Portuguese translation for the jQuery Timepicker Addon */
|
||||
/* Written by Diogo Damiani (diogodamiani@gmail.com) */
|
||||
(function ($) {
|
||||
$.timepicker.regional['pt-BR'] = {
|
||||
timeOnlyTitle: 'Escolha o horário',
|
||||
timeText: 'Horário',
|
||||
hourText: 'Hora',
|
||||
minuteText: 'Minutos',
|
||||
secondText: 'Segundos',
|
||||
millisecText: 'Milissegundos',
|
||||
microsecText: 'Microssegundos',
|
||||
timezoneText: 'Fuso horário',
|
||||
currentText: 'Agora',
|
||||
closeText: 'Fechar',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['a.m.', 'AM', 'A'],
|
||||
pmNames: ['p.m.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['pt-BR']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Portuguese translation for the jQuery Timepicker Addon */
|
||||
/* Written by Luan Almeida */
|
||||
(function($) {
|
||||
$.timepicker.regional['pt'] = {
|
||||
timeOnlyTitle: 'Escolha uma hora',
|
||||
timeText: 'Hora',
|
||||
hourText: 'Horas',
|
||||
minuteText: 'Minutos',
|
||||
secondText: 'Segundos',
|
||||
millisecText: 'Milissegundos',
|
||||
microsecText: 'Microssegundos',
|
||||
timezoneText: 'Fuso horário',
|
||||
currentText: 'Agora',
|
||||
closeText: 'Fechar',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['a.m.', 'AM', 'A'],
|
||||
pmNames: ['p.m.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['pt']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Romanian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Romeo Adrian Cioaba */
|
||||
(function($) {
|
||||
$.timepicker.regional['ro'] = {
|
||||
timeOnlyTitle: 'Alegeţi o oră',
|
||||
timeText: 'Timp',
|
||||
hourText: 'Ore',
|
||||
minuteText: 'Minute',
|
||||
secondText: 'Secunde',
|
||||
millisecText: 'Milisecunde',
|
||||
microsecText: 'Microsecunde',
|
||||
timezoneText: 'Fus orar',
|
||||
currentText: 'Acum',
|
||||
closeText: 'Închide',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['ro']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Russian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Trent Richardson */
|
||||
(function($) {
|
||||
$.timepicker.regional['ru'] = {
|
||||
timeOnlyTitle: 'Выберите время',
|
||||
timeText: 'Время',
|
||||
hourText: 'Часы',
|
||||
minuteText: 'Минуты',
|
||||
secondText: 'Секунды',
|
||||
millisecText: 'Миллисекунды',
|
||||
microsecText: 'Микросекунды',
|
||||
timezoneText: 'Часовой пояс',
|
||||
currentText: 'Сейчас',
|
||||
closeText: 'Закрыть',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['ru']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Slovak translation for the jQuery Timepicker Addon */
|
||||
/* Written by David Vallner */
|
||||
(function($) {
|
||||
$.timepicker.regional['sk'] = {
|
||||
timeOnlyTitle: 'Zvoľte čas',
|
||||
timeText: 'Čas',
|
||||
hourText: 'Hodiny',
|
||||
minuteText: 'Minúty',
|
||||
secondText: 'Sekundy',
|
||||
millisecText: 'Milisekundy',
|
||||
microsecText: 'Mikrosekundy',
|
||||
timezoneText: 'Časové pásmo',
|
||||
currentText: 'Teraz',
|
||||
closeText: 'Zavrieť',
|
||||
timeFormat: 'H:m',
|
||||
amNames: ['dop.', 'AM', 'A'],
|
||||
pmNames: ['pop.', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['sk']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Serbian cyrilic translation for the jQuery Timepicker Addon */
|
||||
/* Written by Vladimir Jelovac */
|
||||
(function($) {
|
||||
$.timepicker.regional['sr-RS'] = {
|
||||
timeOnlyTitle: 'Одаберите време',
|
||||
timeText: 'Време',
|
||||
hourText: 'Сати',
|
||||
minuteText: 'Минути',
|
||||
secondText: 'Секунде',
|
||||
millisecText: 'Милисекунде',
|
||||
microsecText: 'Микросекунде',
|
||||
timezoneText: 'Временска зона',
|
||||
currentText: 'Сада',
|
||||
closeText: 'Затвори',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['sr-RS']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Serbian latin translation for the jQuery Timepicker Addon */
|
||||
/* Written by Vladimir Jelovac */
|
||||
(function($) {
|
||||
$.timepicker.regional['sr-YU'] = {
|
||||
timeOnlyTitle: 'Odaberite vreme',
|
||||
timeText: 'Vreme',
|
||||
hourText: 'Sati',
|
||||
minuteText: 'Minuti',
|
||||
secondText: 'Sekunde',
|
||||
millisecText: 'Milisekunde',
|
||||
microsecText: 'Mikrosekunde',
|
||||
timezoneText: 'Vremenska zona',
|
||||
currentText: 'Sada',
|
||||
closeText: 'Zatvori',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['sr-YU']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Swedish translation for the jQuery Timepicker Addon */
|
||||
/* Written by Nevon */
|
||||
(function($) {
|
||||
$.timepicker.regional['sv'] = {
|
||||
timeOnlyTitle: 'Välj en tid',
|
||||
timeText: 'Tid',
|
||||
hourText: 'Timme',
|
||||
minuteText: 'Minut',
|
||||
secondText: 'Sekund',
|
||||
millisecText: 'Millisekund',
|
||||
microsecText: 'Mikrosekund',
|
||||
timezoneText: 'Tidszon',
|
||||
currentText: 'Nu',
|
||||
closeText: 'Stäng',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['sv']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Thai translation for the jQuery Timepicker Addon */
|
||||
/* Written by Yote Wachirapornpongsa */
|
||||
(function($) {
|
||||
$.timepicker.regional['th'] = {
|
||||
timeOnlyTitle: 'เลือกเวลา',
|
||||
timeText: 'เวลา ',
|
||||
hourText: 'ชั่วโมง ',
|
||||
minuteText: 'นาที',
|
||||
secondText: 'วินาที',
|
||||
millisecText: 'มิลลิวินาที',
|
||||
microsecText: 'ไมโคริวินาที',
|
||||
timezoneText: 'เขตเวลา',
|
||||
currentText: 'เวลาปัจจุบัน',
|
||||
closeText: 'ปิด',
|
||||
timeFormat: 'hh:mm tt'
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['th']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Turkish translation for the jQuery Timepicker Addon */
|
||||
/* Written by Fehmi Can Saglam, Edited by Goktug Ozturk */
|
||||
(function($) {
|
||||
$.timepicker.regional['tr'] = {
|
||||
timeOnlyTitle: 'Zaman Seçiniz',
|
||||
timeText: 'Zaman',
|
||||
hourText: 'Saat',
|
||||
minuteText: 'Dakika',
|
||||
secondText: 'Saniye',
|
||||
millisecText: 'Milisaniye',
|
||||
microsecText: 'Mikrosaniye',
|
||||
timezoneText: 'Zaman Dilimi',
|
||||
currentText: 'Şu an',
|
||||
closeText: 'Tamam',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['ÖÖ', 'Ö'],
|
||||
pmNames: ['ÖS', 'S'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['tr']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Ukrainian translation for the jQuery Timepicker Addon */
|
||||
/* Written by Sergey Noskov */
|
||||
(function($) {
|
||||
$.timepicker.regional['uk'] = {
|
||||
timeOnlyTitle: 'Виберіть час',
|
||||
timeText: 'Час',
|
||||
hourText: 'Години',
|
||||
minuteText: 'Хвилини',
|
||||
secondText: 'Секунди',
|
||||
millisecText: 'Мілісекунди',
|
||||
microsecText: 'Мікросекунди',
|
||||
timezoneText: 'Часовий пояс',
|
||||
currentText: 'Зараз',
|
||||
closeText: 'Закрити',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['uk']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Vietnamese translation for the jQuery Timepicker Addon */
|
||||
/* Written by Nguyen Dinh Trung */
|
||||
(function($) {
|
||||
$.timepicker.regional['vi'] = {
|
||||
timeOnlyTitle: 'Chọn giờ',
|
||||
timeText: 'Thời gian',
|
||||
hourText: 'Giờ',
|
||||
minuteText: 'Phút',
|
||||
secondText: 'Giây',
|
||||
millisecText: 'Mili giây',
|
||||
microsecText: 'Micrô giây',
|
||||
timezoneText: 'Múi giờ',
|
||||
currentText: 'Hiện thời',
|
||||
closeText: 'Đóng',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['SA', 'S'],
|
||||
pmNames: ['CH', 'C'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['vi']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Simplified Chinese translation for the jQuery Timepicker Addon /
|
||||
/ Written by Will Lu */
|
||||
(function($) {
|
||||
$.timepicker.regional['zh-CN'] = {
|
||||
timeOnlyTitle: '选择时间',
|
||||
timeText: '时间',
|
||||
hourText: '小时',
|
||||
minuteText: '分钟',
|
||||
secondText: '秒钟',
|
||||
millisecText: '毫秒',
|
||||
microsecText: '微秒',
|
||||
timezoneText: '时区',
|
||||
currentText: '现在时间',
|
||||
closeText: '关闭',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['AM', 'A'],
|
||||
pmNames: ['PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['zh-CN']);
|
||||
})(jQuery);
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Chinese translation for the jQuery Timepicker Addon */
|
||||
/* Written by Alang.lin */
|
||||
(function($) {
|
||||
$.timepicker.regional['zh-TW'] = {
|
||||
timeOnlyTitle: '選擇時分秒',
|
||||
timeText: '時間',
|
||||
hourText: '時',
|
||||
minuteText: '分',
|
||||
secondText: '秒',
|
||||
millisecText: '毫秒',
|
||||
microsecText: '微秒',
|
||||
timezoneText: '時區',
|
||||
currentText: '現在時間',
|
||||
closeText: '確定',
|
||||
timeFormat: 'HH:mm',
|
||||
amNames: ['上午', 'AM', 'A'],
|
||||
pmNames: ['下午', 'PM', 'P'],
|
||||
isRTL: false
|
||||
};
|
||||
$.timepicker.setDefaults($.timepicker.regional['zh-TW']);
|
||||
})(jQuery);
|
||||
+2197
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,5 @@
|
||||
/*! jQuery Timepicker Addon - v1.4.4 - 2014-03-29
|
||||
* http://trentrichardson.com/examples/timepicker
|
||||
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
|
||||
(function($){if($.ui.timepicker=$.ui.timepicker||{},!$.ui.timepicker.version){$.extend($.ui,{timepicker:{version:"1.4.4"}});var Timepicker=function(){this.regional=[],this.regional[""]={currentText:"Now",closeText:"Done",amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"HH:mm",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",microsecText:"Microsecond",timezoneText:"Time Zone",isRTL:!1},this._defaults={showButtonPanel:!0,timeOnly:!1,timeOnlyShowDate:!1,showHour:null,showMinute:null,showSecond:null,showMillisec:null,showMicrosec:null,showTimezone:null,showTime:!0,stepHour:1,stepMinute:1,stepSecond:1,stepMillisec:1,stepMicrosec:1,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,microsecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,microsecMax:999,minDateTime:null,maxDateTime:null,maxTime:null,minTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,microsecGrid:0,alwaysSetTime:!0,separator:" ",altFieldTimeOnly:!0,altTimeFormat:null,altSeparator:null,altTimeSuffix:null,pickerTimeFormat:null,pickerTimeSuffix:null,showTimepicker:!0,timezoneList:null,addSliderAccess:!1,sliderAccessArgs:null,controlType:"slider",defaultValue:null,parse:"strict"},$.extend(this._defaults,this.regional[""])};$.extend(Timepicker.prototype,{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,microsec_slider:null,timezone_select:null,maxTime:null,minTime:null,hour:0,minute:0,second:0,millisec:0,microsec:0,timezone:null,hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,microsecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,microsecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,units:["hour","minute","second","millisec","microsec"],support:{},control:null,setDefaults:function(e){return extendRemove(this._defaults,e||{}),this},_newInst:function($input,opts){var tp_inst=new Timepicker,inlineSettings={},fns={},overrides,i;for(var attrName in this._defaults)if(this._defaults.hasOwnProperty(attrName)){var attrValue=$input.attr("time:"+attrName);if(attrValue)try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}overrides={beforeShow:function(e,t){return $.isFunction(tp_inst._defaults.evnts.beforeShow)?tp_inst._defaults.evnts.beforeShow.call($input[0],e,t,tp_inst):void 0},onChangeMonthYear:function(e,t,i){tp_inst._updateDateTime(i),$.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)&&tp_inst._defaults.evnts.onChangeMonthYear.call($input[0],e,t,i,tp_inst)},onClose:function(e,t){tp_inst.timeDefined===!0&&""!==$input.val()&&tp_inst._updateDateTime(t),$.isFunction(tp_inst._defaults.evnts.onClose)&&tp_inst._defaults.evnts.onClose.call($input[0],e,t,tp_inst)}};for(i in overrides)overrides.hasOwnProperty(i)&&(fns[i]=opts[i]||null);tp_inst._defaults=$.extend({},this._defaults,inlineSettings,opts,overrides,{evnts:fns,timepicker:tp_inst}),tp_inst.amNames=$.map(tp_inst._defaults.amNames,function(e){return e.toUpperCase()}),tp_inst.pmNames=$.map(tp_inst._defaults.pmNames,function(e){return e.toUpperCase()}),tp_inst.support=detectSupport(tp_inst._defaults.timeFormat+(tp_inst._defaults.pickerTimeFormat?tp_inst._defaults.pickerTimeFormat:"")+(tp_inst._defaults.altTimeFormat?tp_inst._defaults.altTimeFormat:"")),"string"==typeof tp_inst._defaults.controlType?("slider"===tp_inst._defaults.controlType&&$.ui.slider===void 0&&(tp_inst._defaults.controlType="select"),tp_inst.control=tp_inst._controls[tp_inst._defaults.controlType]):tp_inst.control=tp_inst._defaults.controlType;var timezoneList=[-720,-660,-600,-570,-540,-480,-420,-360,-300,-270,-240,-210,-180,-120,-60,0,60,120,180,210,240,270,300,330,345,360,390,420,480,525,540,570,600,630,660,690,720,765,780,840];null!==tp_inst._defaults.timezoneList&&(timezoneList=tp_inst._defaults.timezoneList);var tzl=timezoneList.length,tzi=0,tzv=null;if(tzl>0&&"object"!=typeof timezoneList[0])for(;tzl>tzi;tzi++)tzv=timezoneList[tzi],timezoneList[tzi]={value:tzv,label:$.timepicker.timezoneOffsetString(tzv,tp_inst.support.iso8601)};return tp_inst._defaults.timezoneList=timezoneList,tp_inst.timezone=null!==tp_inst._defaults.timezone?$.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone):-1*(new Date).getTimezoneOffset(),tp_inst.hour=tp_inst._defaults.hour<tp_inst._defaults.hourMin?tp_inst._defaults.hourMin:tp_inst._defaults.hour>tp_inst._defaults.hourMax?tp_inst._defaults.hourMax:tp_inst._defaults.hour,tp_inst.minute=tp_inst._defaults.minute<tp_inst._defaults.minuteMin?tp_inst._defaults.minuteMin:tp_inst._defaults.minute>tp_inst._defaults.minuteMax?tp_inst._defaults.minuteMax:tp_inst._defaults.minute,tp_inst.second=tp_inst._defaults.second<tp_inst._defaults.secondMin?tp_instLine truncated
|
||||
}},$.datepicker._setTimeDatepicker=function(e,t,i){var s=this._getInst(e);if(s){var a=this._get(s,"timepicker");if(a){this._setDateFromField(s);var n;t&&("string"==typeof t?(a._parseTime(t,i),n=new Date,n.setHours(a.hour,a.minute,a.second,a.millisec),n.setMicroseconds(a.microsec)):(n=new Date(t.getTime()),n.setMicroseconds(t.getMicroseconds())),"Invalid Date"==""+n&&(n=void 0),this._setTime(s,n))}}},$.datepicker._base_setDateDatepicker=$.datepicker._setDateDatepicker,$.datepicker._setDateDatepicker=function(e,t){var i=this._getInst(e);if(i){"string"==typeof t&&(t=new Date(t),t.getTime()||$.timepicker.log("Error creating Date object from string."));var s,a=this._get(i,"timepicker");t instanceof Date?(s=new Date(t.getTime()),s.setMicroseconds(t.getMicroseconds())):s=t,a&&s&&(a.support.timezone||null!==a._defaults.timezone||(a.timezone=-1*s.getTimezoneOffset()),t=$.timepicker.timezoneAdjust(t,a.timezone),s=$.timepicker.timezoneAdjust(s,a.timezone)),this._updateDatepicker(i),this._base_setDateDatepicker.apply(this,arguments),this._setTimeDatepicker(e,s,!0)}},$.datepicker._base_getDateDatepicker=$.datepicker._getDateDatepicker,$.datepicker._getDateDatepicker=function(e,t){var i=this._getInst(e);if(i){var s=this._get(i,"timepicker");if(s){void 0===i.lastVal&&this._setDateFromField(i,t);var a=this._getDate(i);return a&&s._parseTime($(e).val(),s.timeOnly)&&(a.setHours(s.hour,s.minute,s.second,s.millisec),a.setMicroseconds(s.microsec),null!=s.timezone&&(s.support.timezone||null!==s._defaults.timezone||(s.timezone=-1*a.getTimezoneOffset()),a=$.timepicker.timezoneAdjust(a,s.timezone))),a}return this._base_getDateDatepicker(e,t)}},$.datepicker._base_parseDate=$.datepicker.parseDate,$.datepicker.parseDate=function(e,t,i){var s;try{s=this._base_parseDate(e,t,i)}catch(a){if(!(a.indexOf(":")>=0))throw a;s=this._base_parseDate(e,t.substring(0,t.length-(a.length-a.indexOf(":")-2)),i),$.timepicker.log("Error parsing the date string: "+a+"\ndate string = "+t+"\ndate format = "+e)}return s},$.datepicker._base_formatDate=$.datepicker._formatDate,$.datepicker._formatDate=function(e){var t=this._get(e,"timepicker");return t?(t._updateDateTime(e),t.$input.val()):this._base_formatDate(e)},$.datepicker._base_optionDatepicker=$.datepicker._optionDatepicker,$.datepicker._optionDatepicker=function(e,t,i){var s,a=this._getInst(e);if(!a)return null;var n=this._get(a,"timepicker");if(n){var r,l=null,o=null,c=null,u=n._defaults.evnts,m={};if("string"==typeof t){if("minDate"===t||"minDateTime"===t)l=i;else if("maxDate"===t||"maxDateTime"===t)o=i;else if("onSelect"===t)c=i;else if(u.hasOwnProperty(t)){if(i===void 0)return u[t];m[t]=i,s={}}}else if("object"==typeof t){t.minDate?l=t.minDate:t.minDateTime?l=t.minDateTime:t.maxDate?o=t.maxDate:t.maxDateTime&&(o=t.maxDateTime);for(r in u)u.hasOwnProperty(r)&&t[r]&&(m[r]=t[r])}for(r in m)m.hasOwnProperty(r)&&(u[r]=m[r],s||(s=$.extend({},t)),delete s[r]);if(s&&isEmptyObject(s))return;l?(l=0===l?new Date:new Date(l),n._defaults.minDate=l,n._defaults.minDateTime=l):o?(o=0===o?new Date:new Date(o),n._defaults.maxDate=o,n._defaults.maxDateTime=o):c&&(n._defaults.onSelect=c)}return void 0===i?this._base_optionDatepicker.call($.datepicker,e,t):this._base_optionDatepicker.call($.datepicker,e,s||t,i)};var isEmptyObject=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0},extendRemove=function(e,t){$.extend(e,t);for(var i in t)(null===t[i]||void 0===t[i])&&(e[i]=t[i]);return e},detectSupport=function(e){var t=e.replace(/'.*?'/g,"").toLowerCase(),i=function(e,t){return-1!==e.indexOf(t)?!0:!1};return{hour:i(t,"h"),minute:i(t,"m"),second:i(t,"s"),millisec:i(t,"l"),microsec:i(t,"c"),timezone:i(t,"z"),ampm:i(t,"t")&&i(e,"h"),iso8601:i(e,"Z")}},convert24to12=function(e){return e%=12,0===e&&(e=12),e+""},computeEffectiveSetting=function(e,t){return e&&e[t]?e[t]:$.timepicker._defaults[t]},splitDateTime=function(e,t){var i=computeEffectiveSetting(t,"separator"),s=computeEffectiveSetting(t,"timeFormat"),a=s.split(i),n=a.length,r=e.split(i),l=r.length;return l>1?{dateString:r.splice(0,l-n).join(i),timeString:r.splice(0,n).join(i)}:{dateString:e,timeString:""}},parseDateTimeInternal=function(e,t,i,s,a){var n,r,l;if(r=splitDateTime(i,a),n=$.datepicker._base_parseDate(e,r.dateString,s),""===r.timeString)return{date:n};if(l=$.datepicker.parseTime(t,r.timeString,a),!l)throw"Wrong time format";return{date:n,timeObj:l}},selectLocalTimezone=function(e,t){if(e&&e.timezone_select){var i=t||new Date;e.timezone_select.val(-i.getTimezoneOffset())}};$.timepicker=new Timepicker,$.timepicker.timezoneOffsetString=function(e,t){if(isNaN(e)||e>840||-720>e)return e;var i=e,s=i%60,a=(i-s)/60,n=t?":":"",r=(i>=0?"+":"-")+("0"+Math.abs(a)).slice(-2)+n+("0"+Math.abs(s)).slice(-2);return"+00:00"===r?"Z":r},$.timepicker.timezoneOffsetNumber=function(e){var t=(""+e).replace(":","");return"Z"===t.toUpperCase()?0:/^(\-|\+)\d{4}$/.test(t)?("-"===t.substr(0,1)?-1:1)*(60*parseInt(t.substr(1,2),10)+parseInt(t.substr(3,2),10)):e},$.timLine truncated
|
||||
@@ -0,0 +1,11 @@
|
||||
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
|
||||
.ui-timepicker-div dl { text-align: left; }
|
||||
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
|
||||
.ui-timepicker-div dl dd { margin: 0 10px 10px 40%; }
|
||||
.ui-timepicker-div td { font-size: 90%; }
|
||||
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
|
||||
|
||||
.ui-timepicker-rtl{ direction: rtl; }
|
||||
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
|
||||
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
|
||||
.ui-timepicker-rtl dl dd { margin: 0 40% 10px 10px; }
|
||||
Reference in new issue
Block a user