Skip to content

Commit 1a761ce

Browse files
committed
Merge branch 'master' of github.com:mugifly/jquery-simple-datetimepicker into 1.8.x
Conflicts: jquery.simple-dtpicker.js
2 parents cee18f8 + 5beebf3 commit 1a761ce

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

CHANGES

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

1011
1.7.0 2013-09-16

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Thank you to:
4343
* [Mondane](https://github.com/Mondane)
4444
* [AddoSolutions](https://github.com/AddoSolutions)
4545
* [Jan Zatloukal](http://rotten77.cz/)
46+
* [matll42](https://github.com/matll42)
4647

4748
## License and author
4849

jquery.simple-dtpicker.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ <h5>Available locales:</h5>
100100
<li>"pt" : Portuguese - Thanks to: <a href="https://github.com/adc-tcarvalho">adc-tcarvalho</a></li>
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>
103+
<li>"fr" : French - Thanks to: <a href="https://github.com/matll42">matll42</a></li>
103104
</ul>
104105

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

jquery.simple-dtpicker.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
var DAYS_OF_WEEK_KO = ['일', '월', '화', '수', '목', '금', '토'];
2020
var DAYS_OF_WEEK_NL = ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'];
2121
var DAYS_OF_WEEK_CZ = ['Ne', 'Po', 'Út', 'St', 'Čt', 'Pá', 'So'];
22+
var DAYS_OF_WEEK_FR = ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'];
23+
2224
var MONTHS_EN = [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ];
2325
var MONTHS_RU = [ "Янв", "Фев", "Мар", "Апр", "Май", "Июн", "Июл", "Авг", "Сен", "Окт", "Ноя", "Дек" ];
2426
var MONTHS_BR = [ "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" ];
@@ -32,6 +34,7 @@
3234
var MONTHS_KO = [ "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월" ];
3335
var MONTHS_NL = [ "jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec" ];
3436
var MONTHS_CZ = [ "Led", "Úno", "Bře", "Dub", "Kvě", "Čer", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro" ];
37+
var MONTHS_FR = [ "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre" ];
3538

3639
var PickerObjects = [];
3740
var InputObjects = [];
@@ -127,6 +130,8 @@
127130
format = "DD-MM-YYYY hh:mm";
128131
}else if (locale === "cz"){
129132
format = "DD.MM.YYYY hh:mm";
133+
}else if (locale === "fr"){
134+
format = "DD-MM-YYYY hh:mm";
130135
}else{
131136
format = "YYYY-MM-DD hh:mm";
132137
}
@@ -354,6 +359,8 @@
354359
daysOfWeek = DAYS_OF_WEEK_KO;
355360
} else if (locale === "nl"){
356361
daysOfWeek = DAYS_OF_WEEK_NL;
362+
} else if (locale === "fr"){
363+
daysOfWeek = DAYS_OF_WEEK_FR;
357364
}
358365

359366
/* Calculate dates */
@@ -444,6 +451,8 @@
444451
$now_month.text(date.getFullYear() + " - " + MONTHS_KO[date.getMonth()]);
445452
} else if(locale == "nl"){
446453
$now_month.text(date.getFullYear() + " - " + MONTHS_NL[date.getMonth()]);
454+
} else if(locale == "fr"){
455+
$now_month.text(date.getFullYear() + " - " + MONTHS_FR[date.getMonth()]);
447456
} else {
448457
$now_month.text(date.getFullYear() + " - " + MONTHS_EN[date.getMonth()]);
449458
}

0 commit comments

Comments
 (0)