Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #154 from dankeris/master

Some fixes and translation
  • Loading branch information...
commit 57888f5a287a9a02c66ace8640641c4d6caa4eb8 2 parents c711e0b + e67db44
J.T. Sage authored
35 js/i8n/jquery.mobile.datebox.i8n.lt.js
View
@@ -0,0 +1,35 @@
+/*
+ * jQuery Mobile Framework : plugin to provide a date and time picker.
+ * Copyright (c) JTSage
+ * CC 3.0 Attribution. May be relicensed without permission/notifcation.
+ * https://github.com/jtsage/jquery-mobile-datebox
+ *
+ * Translation by: Tadas Subonis <tadas.subonis@affecto.com>
+ */
+
+jQuery.extend(jQuery.mobile.datebox.prototype.options.lang, {
+ 'lt': {
+ setDateButtonLabel: 'Data',
+ setTimeButtonLabel: 'Laikas',
+ setDurationButtonLabel: 'Trukmė',
+ calTodayButtonLabel: 'Šiandiena',
+ titleDateDialogLabel: 'Data',
+ titleTimeDialogLabel: 'Laikas',
+ daysOfWeek: ['Sekmadienis','Pirmadienis','Antradienis','Trečiadienis','Ketvirtadienis','Penktadienis','Šeštadienis'],
+ daysOfWeekShort: ['Sk','Pr','An','Tr','Kt','Pn','Ss'],
+ monthsOfYear: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis','Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'],
+ monthsOfYearShort: ['Sau','Vas','Kov','Bal','Geg','Bir','Lie','Rug','Rgs','Spa','Lap','Gru'],
+ durationLabel: ['Dienos','Valandos','Minutės','Sekundeės'],
+ durationDays: ['Diena','Dienos'],
+ timeFormat: 24,
+ dateFieldOrder: ['y','m','d'],
+ timeFieldOrder: ['h', 'i', 'a'],
+ slideFieldOrder: ['y', 'm', 'd'],
+ headerFormat: 'YYYY-MM-DD',
+ useArabicIndic: false,
+ isRTL: false
+ }
+});
+jQuery.extend(jQuery.mobile.datebox.prototype.options, {
+ useLang: 'lt'
+});
13 js/jquery.mobile.datebox.js
View
@@ -4,6 +4,15 @@
* CC 3.0 Attribution. May be relicensed without permission/notification.
* https://github.com/jtsage/jquery-mobile-datebox
*/
+
+ if (!console) {
+ console = {
+ log : function(string){
+
+ }
+ }
+}
+
(function($, undefined ) {
$.widget( "mobile.datebox", $.mobile.widget, {
options: {
@@ -1225,8 +1234,8 @@
}
}
- $('label[for='+input.attr('id')+']').addClass('ui-input-text').css('verticalAlign', 'middle');
-
+ $('label[for=\''+input.attr('id')+'\']').addClass('ui-input-text').css('verticalAlign', 'middle');
+
/* BUILD:MODE */
if ( o.mode === "timeflipbox" ) { // No header in time flipbox.
Please sign in to comment.
Something went wrong with that request. Please try again.