From 97ffdb2edc14c12502f75efef9622cecd89a3020 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Sun, 18 May 2014 10:58:53 +0000 Subject: feature 2679 : allow to change creation time git-svn-id: http://piwigo.org/svn/trunk@28500 68402e56-0260-453c-a942-63ccdbb3a9ee --- .../default/js/ui/i18n/jquery.ui.timepicker-af.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-am.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-bg.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-ca.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-cs.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-da.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-de.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-el.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-es.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-et.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-eu.js | 22 + .../default/js/ui/i18n/jquery.ui.timepicker-fi.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-fr.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-gl.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-he.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-hr.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-hu.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-id.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-it.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-ja.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-ko.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-lt.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-nl.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-no.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-pl.js | 21 + .../js/ui/i18n/jquery.ui.timepicker-pt-BR.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-pt.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-ro.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-ru.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-sk.js | 21 + .../js/ui/i18n/jquery.ui.timepicker-sr-RS.js | 21 + .../js/ui/i18n/jquery.ui.timepicker-sr-YU.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-sv.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-th.js | 18 + .../default/js/ui/i18n/jquery.ui.timepicker-tr.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-uk.js | 21 + .../default/js/ui/i18n/jquery.ui.timepicker-vi.js | 21 + .../js/ui/i18n/jquery.ui.timepicker-zh-CN.js | 21 + .../js/ui/i18n/jquery.ui.timepicker-zh-TW.js | 21 + themes/default/js/ui/jquery.ui.timepicker-addon.js | 2197 ++++++++++++++++++++ .../ui/minified/jquery.ui.timepicker-addon.min.js | 5 + .../js/ui/theme/jquery.ui.timepicker-addon.css | 11 + 42 files changed, 3030 insertions(+) create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-af.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-am.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-bg.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-ca.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-cs.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-da.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-de.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-el.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-es.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-et.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-eu.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-fi.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-fr.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-gl.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-he.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-hr.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-hu.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-id.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-it.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-ja.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-ko.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-lt.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-nl.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-no.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-pl.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-pt-BR.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-pt.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-ro.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-ru.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-sk.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-sr-RS.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-sr-YU.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-sv.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-th.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-tr.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-uk.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-vi.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-zh-CN.js create mode 100644 themes/default/js/ui/i18n/jquery.ui.timepicker-zh-TW.js create mode 100644 themes/default/js/ui/jquery.ui.timepicker-addon.js create mode 100644 themes/default/js/ui/minified/jquery.ui.timepicker-addon.min.js create mode 100644 themes/default/js/ui/theme/jquery.ui.timepicker-addon.css (limited to 'themes') diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-af.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-af.js new file mode 100644 index 000000000..fe9f8c58a --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-af.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-am.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-am.js new file mode 100644 index 000000000..69cce8aae --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-am.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-bg.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-bg.js new file mode 100644 index 000000000..1efb439ab --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-bg.js @@ -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); \ No newline at end of file diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-ca.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-ca.js new file mode 100644 index 000000000..25b4eed94 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-ca.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-cs.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-cs.js new file mode 100644 index 000000000..9d358fafb --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-cs.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-da.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-da.js new file mode 100644 index 000000000..7afb18933 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-da.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-de.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-de.js new file mode 100644 index 000000000..a0ddf9f2d --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-de.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-el.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-el.js new file mode 100644 index 000000000..6b7e827aa --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-el.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-es.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-es.js new file mode 100644 index 000000000..d73a1e8b9 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-es.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-et.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-et.js new file mode 100644 index 000000000..2e64cc82a --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-et.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-eu.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-eu.js new file mode 100644 index 000000000..8884e4a0a --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-eu.js @@ -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); \ No newline at end of file diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-fi.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-fi.js new file mode 100644 index 000000000..3f1d95e5e --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-fi.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-fr.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-fr.js new file mode 100644 index 000000000..a8a46fe64 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-fr.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-gl.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-gl.js new file mode 100644 index 000000000..900e37782 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-gl.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-he.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-he.js new file mode 100644 index 000000000..eb71018f4 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-he.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-hr.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-hr.js new file mode 100644 index 000000000..c314b8e11 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-hr.js @@ -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); \ No newline at end of file diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-hu.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-hu.js new file mode 100644 index 000000000..fd1f5e194 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-hu.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-id.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-id.js new file mode 100644 index 000000000..50a976b16 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-id.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-it.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-it.js new file mode 100644 index 000000000..ea976fdff --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-it.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-ja.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-ja.js new file mode 100644 index 000000000..15c7b79f8 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-ja.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-ko.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-ko.js new file mode 100644 index 000000000..0a41c5bb6 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-ko.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-lt.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-lt.js new file mode 100644 index 000000000..eb7b3c7bd --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-lt.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-nl.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-nl.js new file mode 100644 index 000000000..8189cc4ad --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-nl.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-no.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-no.js new file mode 100644 index 000000000..1eeee6d3a --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-no.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-pl.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-pl.js new file mode 100644 index 000000000..5b7d4a99b --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-pl.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-pt-BR.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-pt-BR.js new file mode 100644 index 000000000..2c1b02fca --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-pt-BR.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-pt.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-pt.js new file mode 100644 index 000000000..bc549e06a --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-pt.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-ro.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-ro.js new file mode 100644 index 000000000..01acce77b --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-ro.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-ru.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-ru.js new file mode 100644 index 000000000..d7169fa27 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-ru.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-sk.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-sk.js new file mode 100644 index 000000000..15700e071 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-sk.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-sr-RS.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-sr-RS.js new file mode 100644 index 000000000..1ee4aae90 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-sr-RS.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-sr-YU.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-sr-YU.js new file mode 100644 index 000000000..cb99fb822 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-sr-YU.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-sv.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-sv.js new file mode 100644 index 000000000..4540ac6d7 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-sv.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-th.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-th.js new file mode 100644 index 000000000..7042e8c8f --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-th.js @@ -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); \ No newline at end of file diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-tr.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-tr.js new file mode 100644 index 000000000..51f89d629 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-tr.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-uk.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-uk.js new file mode 100644 index 000000000..a239fe282 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-uk.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-vi.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-vi.js new file mode 100644 index 000000000..60d712a2a --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-vi.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-zh-CN.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-zh-CN.js new file mode 100644 index 000000000..e73ac3bc2 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-zh-CN.js @@ -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); diff --git a/themes/default/js/ui/i18n/jquery.ui.timepicker-zh-TW.js b/themes/default/js/ui/i18n/jquery.ui.timepicker-zh-TW.js new file mode 100644 index 000000000..9cbeabf45 --- /dev/null +++ b/themes/default/js/ui/i18n/jquery.ui.timepicker-zh-TW.js @@ -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); diff --git a/themes/default/js/ui/jquery.ui.timepicker-addon.js b/themes/default/js/ui/jquery.ui.timepicker-addon.js new file mode 100644 index 000000000..31efb71a7 --- /dev/null +++ b/themes/default/js/ui/jquery.ui.timepicker-addon.js @@ -0,0 +1,2197 @@ +/*! jQuery Timepicker Addon - v1.4.4 - 2014-03-29 +* http://trentrichardson.com/examples/timepicker +* Copyright (c) 2014 Trent Richardson; Licensed MIT */ +(function ($) { + + /* + * Lets not redefine timepicker, Prevent "Uncaught RangeError: Maximum call stack size exceeded" + */ + $.ui.timepicker = $.ui.timepicker || {}; + if ($.ui.timepicker.version) { + return; + } + + /* + * Extend jQueryUI, get it started with our version number + */ + $.extend($.ui, { + timepicker: { + version: "1.4.4" + } + }); + + /* + * Timepicker manager. + * Use the singleton instance of this class, $.timepicker, to interact with the time picker. + * Settings for (groups of) time pickers are maintained in an instance object, + * allowing multiple different settings on the same page. + */ + var Timepicker = function () { + this.regional = []; // Available regional settings, indexed by language code + this.regional[''] = { // Default regional settings + 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: false + }; + this._defaults = { // Global defaults for all the datetime picker instances + showButtonPanel: true, + timeOnly: false, + timeOnlyShowDate: false, + showHour: null, + showMinute: null, + showSecond: null, + showMillisec: null, + showMicrosec: null, + showTimezone: null, + showTime: true, + 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: true, + separator: ' ', + altFieldTimeOnly: true, + altTimeFormat: null, + altSeparator: null, + altTimeSuffix: null, + pickerTimeFormat: null, + pickerTimeSuffix: null, + showTimepicker: true, + timezoneList: null, + addSliderAccess: false, + 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, + + /* + * Override the default settings for all instances of the time picker. + * @param {Object} settings object - the new settings to use as defaults (anonymous object) + * @return {Object} the manager object + */ + setDefaults: function (settings) { + extendRemove(this._defaults, settings || {}); + return this; + }, + + /* + * Create a new Timepicker instance + */ + _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 (input, dp_inst) { + if ($.isFunction(tp_inst._defaults.evnts.beforeShow)) { + return tp_inst._defaults.evnts.beforeShow.call($input[0], input, dp_inst, tp_inst); + } + }, + onChangeMonthYear: function (year, month, dp_inst) { + // Update the time as well : this prevents the time from disappearing from the $input field. + tp_inst._updateDateTime(dp_inst); + if ($.isFunction(tp_inst._defaults.evnts.onChangeMonthYear)) { + tp_inst._defaults.evnts.onChangeMonthYear.call($input[0], year, month, dp_inst, tp_inst); + } + }, + onClose: function (dateText, dp_inst) { + if (tp_inst.timeDefined === true && $input.val() !== '') { + tp_inst._updateDateTime(dp_inst); + } + if ($.isFunction(tp_inst._defaults.evnts.onClose)) { + tp_inst._defaults.evnts.onClose.call($input[0], dateText, dp_inst, tp_inst); + } + } + }; + for (i in overrides) { + if (overrides.hasOwnProperty(i)) { + fns[i] = opts[i] || null; + } + } + + tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, opts, overrides, { + evnts: fns, + timepicker: tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker'); + }); + tp_inst.amNames = $.map(tp_inst._defaults.amNames, function (val) { + return val.toUpperCase(); + }); + tp_inst.pmNames = $.map(tp_inst._defaults.pmNames, function (val) { + return val.toUpperCase(); + }); + + // detect which units are supported + tp_inst.support = detectSupport( + tp_inst._defaults.timeFormat + + (tp_inst._defaults.pickerTimeFormat ? tp_inst._defaults.pickerTimeFormat : '') + + (tp_inst._defaults.altTimeFormat ? tp_inst._defaults.altTimeFormat : '')); + + // controlType is string - key to our this._controls + if (typeof(tp_inst._defaults.controlType) === 'string') { + if (tp_inst._defaults.controlType === 'slider' && typeof($.ui.slider) === 'undefined') { + tp_inst._defaults.controlType = 'select'; + } + tp_inst.control = tp_inst._controls[tp_inst._defaults.controlType]; + } + // controlType is an object and must implement create, options, value methods + else { + tp_inst.control = tp_inst._defaults.controlType; + } + + // prep the timezone options + 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]; + if (tp_inst._defaults.timezoneList !== null) { + timezoneList = tp_inst._defaults.timezoneList; + } + var tzl = timezoneList.length, tzi = 0, tzv = null; + if (tzl > 0 && typeof timezoneList[0] !== 'object') { + for (; tzi < tzl; tzi++) { + tzv = timezoneList[tzi]; + timezoneList[tzi] = { value: tzv, label: $.timepicker.timezoneOffsetString(tzv, tp_inst.support.iso8601) }; + } + } + tp_inst._defaults.timezoneList = timezoneList; + + // set the default units + tp_inst.timezone = tp_inst._defaults.timezone !== null ? $.timepicker.timezoneOffsetNumber(tp_inst._defaults.timezone) : + ((new Date()).getTimezoneOffset() * -1); + 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_inst._defaults.secondMin : + tp_inst._defaults.second > tp_inst._defaults.secondMax ? tp_inst._defaults.secondMax : tp_inst._defaults.second; + tp_inst.millisec = tp_inst._defaults.millisec < tp_inst._defaults.millisecMin ? tp_inst._defaults.millisecMin : + tp_inst._defaults.millisec > tp_inst._defaults.millisecMax ? tp_inst._defaults.millisecMax : tp_inst._defaults.millisec; + tp_inst.microsec = tp_inst._defaults.microsec < tp_inst._defaults.microsecMin ? tp_inst._defaults.microsecMin : + tp_inst._defaults.microsec > tp_inst._defaults.microsecMax ? tp_inst._defaults.microsecMax : tp_inst._defaults.microsec; + tp_inst.ampm = ''; + tp_inst.$input = $input; + + if (tp_inst._defaults.altField) { + tp_inst.$altInput = $(tp_inst._defaults.altField).css({ + cursor: 'pointer' + }).focus(function () { + $input.trigger("focus"); + }); + } + + if (tp_inst._defaults.minDate === 0 || tp_inst._defaults.minDateTime === 0) { + tp_inst._defaults.minDate = new Date(); + } + if (tp_inst._defaults.maxDate === 0 || tp_inst._defaults.maxDateTime === 0) { + tp_inst._defaults.maxDate = new Date(); + } + + // datepicker needs minDate/maxDate, timepicker needs minDateTime/maxDateTime.. + if (tp_inst._defaults.minDate !== undefined && tp_inst._defaults.minDate instanceof Date) { + tp_inst._defaults.minDateTime = new Date(tp_inst._defaults.minDate.getTime()); + } + if (tp_inst._defaults.minDateTime !== undefined && tp_inst._defaults.minDateTime instanceof Date) { + tp_inst._defaults.minDate = new Date(tp_inst._defaults.minDateTime.getTime()); + } + if (tp_inst._defaults.maxDate !== undefined && tp_inst._defaults.maxDate instanceof Date) { + tp_inst._defaults.maxDateTime = new Date(tp_inst._defaults.maxDate.getTime()); + } + if (tp_inst._defaults.maxDateTime !== undefined && tp_inst._defaults.maxDateTime instanceof Date) { + tp_inst._defaults.maxDate = new Date(tp_inst._defaults.maxDateTime.getTime()); + } + tp_inst.$input.bind('focus', function () { + tp_inst._onFocus(); + }); + + return tp_inst; + }, + + /* + * add our sliders to the calendar + */ + _addTimePicker: function (dp_inst) { + var currDT = (this.$altInput && this._defaults.altFieldTimeOnly) ? this.$input.val() + ' ' + this.$altInput.val() : this.$input.val(); + + this.timeDefined = this._parseTime(currDT); + this._limitMinMaxDateTime(dp_inst, false); + this._injectTimePicker(); + }, + + /* + * parse the time string from input value or _setTime + */ + _parseTime: function (timeString, withDate) { + if (!this.inst) { + this.inst = $.datepicker._getInst(this.$input[0]); + } + + if (withDate || !this._defaults.timeOnly) { + var dp_dateFormat = $.datepicker._get(this.inst, 'dateFormat'); + try { + var parseRes = parseDateTimeInternal(dp_dateFormat, this._defaults.timeFormat, timeString, $.datepicker._getFormatConfig(this.inst), this._defaults); + if (!parseRes.timeObj) { + return false; + } + $.extend(this, parseRes.timeObj); + } catch (err) { + $.timepicker.log("Error parsing the date/time string: " + err + + "\ndate/time string = " + timeString + + "\ntimeFormat = " + this._defaults.timeFormat + + "\ndateFormat = " + dp_dateFormat); + return false; + } + return true; + } else { + var timeObj = $.datepicker.parseTime(this._defaults.timeFormat, timeString, this._defaults); + if (!timeObj) { + return false; + } + $.extend(this, timeObj); + return true; + } + }, + + /* + * generate and inject html for timepicker into ui datepicker + */ + _injectTimePicker: function () { + var $dp = this.inst.dpDiv, + o = this.inst.settings, + tp_inst = this, + litem = '', + uitem = '', + show = null, + max = {}, + gridSize = {}, + size = null, + i = 0, + l = 0; + + // Prevent displaying twice + if ($dp.find("div.ui-timepicker-div").length === 0 && o.showTimepicker) { + var noDisplay = ' style="display:none;"', + html = '
' + '
' + o.timeText + '
' + + '
'; + + // Create the markup + for (i = 0, l = this.units.length; i < l; i++) { + litem = this.units[i]; + uitem = litem.substr(0, 1).toUpperCase() + litem.substr(1); + show = o['show' + uitem] !== null ? o['show' + uitem] : this.support[litem]; + + // Added by Peter Medeiros: + // - Figure out what the hour/minute/second max should be based on the step values. + // - Example: if stepMinute is 15, then minMax is 45. + max[litem] = parseInt((o[litem + 'Max'] - ((o[litem + 'Max'] - o[litem + 'Min']) % o['step' + uitem])), 10); + gridSize[litem] = 0; + + html += '
' + o[litem + 'Text'] + '
' + + '
'; + + if (show && o[litem + 'Grid'] > 0) { + html += '
'; + + if (litem === 'hour') { + for (var h = o[litem + 'Min']; h <= max[litem]; h += parseInt(o[litem + 'Grid'], 10)) { + gridSize[litem]++; + var tmph = $.datepicker.formatTime(this.support.ampm ? 'hht' : 'HH', {hour: h}, o); + html += ''; + } + } + else { + for (var m = o[litem + 'Min']; m <= max[litem]; m += parseInt(o[litem + 'Grid'], 10)) { + gridSize[litem]++; + html += ''; + } + } + + html += '
' + tmph + '' + ((m < 10) ? '0' : '') + m + '
'; + } + html += '
'; + } + + // Timezone + var showTz = o.showTimezone !== null ? o.showTimezone : this.support.timezone; + html += '
' + o.timezoneText + '
'; + html += '
'; + + // Create the elements from string + html += '
'; + var $tp = $(html); + + // if we only want time picker... + if (o.timeOnly === true) { + $tp.prepend('
' + '
' + o.timeOnlyTitle + '
' + '
'); + $dp.find('.ui-datepicker-header, .ui-datepicker-calendar').hide(); + } + + // add sliders, adjust grids, add events + for (i = 0, l = tp_inst.units.length; i < l; i++) { + litem = tp_inst.units[i]; + uitem = litem.substr(0, 1).toUpperCase() + litem.substr(1); + show = o['show' + uitem] !== null ? o['show' + uitem] : this.support[litem]; + + // add the slider + tp_inst[litem + '_slider'] = tp_inst.control.create(tp_inst, $tp.find('.ui_tpicker_' + litem + '_slider'), litem, tp_inst[litem], o[litem + 'Min'], max[litem], o['step' + uitem]); + + // adjust the grid and add click event + if (show && o[litem + 'Grid'] > 0) { + size = 100 * gridSize[litem] * o[litem + 'Grid'] / (max[litem] - o[litem + 'Min']); + $tp.find('.ui_tpicker_' + litem + ' table').css({ + width: size + "%", + marginLeft: o.isRTL ? '0' : ((size / (-2 * gridSize[litem])) + "%"), + marginRight: o.isRTL ? ((size / (-2 * gridSize[litem])) + "%") : '0', + borderCollapse: 'collapse' + }).find("td").click(function (e) { + var $t = $(this), + h = $t.html(), + n = parseInt(h.replace(/[^0-9]/g), 10), + ap = h.replace(/[^apm]/ig), + f = $t.data('for'); // loses scope, so we use data-for + + if (f === 'hour') { + if (ap.indexOf('p') !== -1 && n < 12) { + n += 12; + } + else { + if (ap.indexOf('a') !== -1 && n === 12) { + n = 0; + } + } + } + + tp_inst.control.value(tp_inst, tp_inst[f + '_slider'], litem, n); + + tp_inst._onTimeChange(); + tp_inst._onSelectHandler(); + }).css({ + cursor: 'pointer', + width: (100 / gridSize[litem]) + '%', + textAlign: 'center', + overflow: 'hidden' + }); + } // end if grid > 0 + } // end for loop + + // Add timezone options + this.timezone_select = $tp.find('.ui_tpicker_timezone').append('').find("select"); + $.fn.append.apply(this.timezone_select, + $.map(o.timezoneList, function (val, idx) { + return $("