Skip to content

Commit fe5849e

Browse files
committed
Add: Italian locale (Thanks to: Mauro Zuccato)
1 parent 1a761ce commit fe5849e

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ https://github.com/mugifly/jquery-simple-datetimepicker/
66
- [Add] Dutch locale (Thanks to: Mondane).
77
- [Add] Czech locale (Thanks to: Jan Zatloukal).
88
- [Add] French locale (Thanks to: Jan matll42).
9+
- [Add] Italian locale (Thanks to: Mauro Zuccato).
910
- [Fix] Fixing positioning when element is inside of nested relative parent (Thanks to: AddoSolutions).
1011

1112
1.7.0 2013-09-16

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Thank you to:
4444
* [AddoSolutions](https://github.com/AddoSolutions)
4545
* [Jan Zatloukal](http://rotten77.cz/)
4646
* [matll42](https://github.com/matll42)
47+
* Mauro Zuccato
4748

4849
## License and author
4950

jquery.simple-dtpicker.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ <h5>Available locales:</h5>
101101
<li>"nl" : Dutch (Naderlands) - Thanks to: <a href="https://github.com/Mondane">Mondane</a></li>
102102
<li>"cz" : Czech - Thanks to: <a href="http://rotten77.cz/">Jan Zatloukal</a></li>
103103
<li>"fr" : French - Thanks to: <a href="https://github.com/matll42">matll42</a></li>
104+
<li>"it" : Italian - Thanks to: Mauro Zuccato</li>
104105
</ul>
105106

106107
<h4>Change the interval of minute ("minuteInterval": 15)</h4>

jquery.simple-dtpicker.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
var DAYS_OF_WEEK_DE = ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'];
1515
var DAYS_OF_WEEK_SV = ['Sö', 'Må', 'Ti', 'On', 'To', 'Fr', 'Lö'];
1616
var DAYS_OF_WEEK_ID = ['Min','Sen','Sel', 'Rab', 'Kam', 'Jum', 'Sab'];
17+
var DAYS_OF_WEEK_IT = ['Dom','Lun','Mar', 'Mer', 'Gio', 'Ven', 'Sab'];
1718
var DAYS_OF_WEEK_TR = ['Pz', 'Pzt', 'Sal', 'Çar', 'Per', 'Cu', 'Cts'];
1819
var DAYS_OF_WEEK_ES = ['dom', 'lun', 'mar', 'miér', 'jue', 'vié', 'sáb'];
1920
var DAYS_OF_WEEK_KO = ['일', '월', '화', '수', '목', '금', '토'];
@@ -29,6 +30,7 @@
2930
var MONTHS_DE = [ "Jan", "Feb", "März", "Apr", "Mai", "Juni", "Juli", "Aug", "Sept", "Okt", "Nov", "Dez" ];
3031
var MONTHS_SV = [ "Jan", "Feb", "Mar", "Apr", "Maj", "Juni", "Juli", "Aug", "Sept", "Okt", "Nov", "Dec" ];
3132
var MONTHS_ID = [ "Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des" ];
33+
var MONTHS_IT = [ "Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic" ];
3234
var MONTHS_TR = [ "Ock", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Agu", "Eyl", "Ekm", "Kas", "Arlk" ];
3335
var MONTHS_ES = [ "ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic" ];
3436
var MONTHS_KO = [ "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월" ];
@@ -120,6 +122,8 @@
120122
format = "YYYY/MM/DD hh:mm";
121123
}else if(locale == "ru"){
122124
format = "DD.MM.YYYY hh:mm";
125+
}else if(locale == "it"){
126+
format = "DD/MM/YYYY hh:mm";
123127
}else if (locale == "br"){
124128
format = "DD/MM/YYYY hh:mm";
125129
}else if (locale == "de"){
@@ -351,6 +355,8 @@
351355
daysOfWeek = DAYS_OF_WEEK_SV;
352356
} else if (locale == "id"){
353357
daysOfWeek = DAYS_OF_WEEK_ID;
358+
} else if (locale == "it"){
359+
daysOfWeek = DAYS_OF_WEEK_IT;
354360
} else if (locale == "tr"){
355361
daysOfWeek = DAYS_OF_WEEK_TR;
356362
} else if (locale === "es"){
@@ -443,6 +449,8 @@
443449
$now_month.text(date.getFullYear() + " - " + MONTHS_SV[date.getMonth()]);
444450
} else if(locale == "id"){
445451
$now_month.text(date.getFullYear() + " - " + MONTHS_ID[date.getMonth()]);
452+
} else if(locale == "it"){
453+
$now_month.text(date.getFullYear() + " - " + MONTHS_IT[date.getMonth()]);
446454
} else if(locale == "tr"){
447455
$now_month.text(date.getFullYear() + " - " + MONTHS_TR[date.getMonth()]);
448456
} else if(locale == "es"){

0 commit comments

Comments
 (0)