|
6 | 6 |
|
7 | 7 | <title>Internationalization - German Locale</title>
|
8 | 8 |
|
| 9 | + <meta charset="UTF-8"> |
9 | 10 | <link rel="stylesheet" type="text/css" href="../src/DateTimePicker.css" />
|
10 | 11 |
|
11 | 12 | <script type="text/javascript" src="jquery-1.11.0.min.js"></script>
|
|
58 | 59 |
|
59 | 60 | dateTimeFormat: "dd-MMM-yyyy HH:mm:ss",
|
60 | 61 | dateFormat: "dd-MMM-yyyy",
|
| 62 | + timeFormat: "HH:mm:ss", |
| 63 | + |
61 | 64 | shortDayNames: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
62 | 65 | fullDayNames: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
63 |
| - shortMonthNames: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"], |
64 |
| - fullMonthNames: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], |
65 |
| - |
66 |
| - titleContentDate: "Datum auswählen", |
67 |
| - titleContentTime: "Zeit auswählen", |
68 |
| - titleContentDateTime: "Datum & Zeit auswählen", |
| 66 | + shortMonthNames: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"], |
| 67 | + fullMonthNames: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"], |
| 68 | + |
| 69 | + titleContentDate: "Datum auswählen", |
| 70 | + titleContentTime: "Zeit auswählen", |
| 71 | + titleContentDateTime: "Datum & Zeit auswählen", |
69 | 72 |
|
70 |
| - setButtonContent: "Auswählen", |
71 |
| - clearButtonContent: "Zurücksetzen", |
| 73 | + setButtonContent: "Auswählen", |
| 74 | + clearButtonContent: "Zurücksetzen", |
72 | 75 |
|
73 |
| - formatHumanDate: function(date) |
| 76 | + formatHumanDate: function(oDate, sMode, sFormat) |
74 | 77 | {
|
75 |
| - return date.dayShort + ", " + date.dd + " " + date.month+ ", " + date.yyyy; |
| 78 | + if(sMode === "date") |
| 79 | + return oDate.dayShort + ", " + oDate.dd + " " + oDate.month+ ", " + oDate.yyyy; |
| 80 | + else if(sMode === "time") |
| 81 | + return oDate.HH + ":" + oDate.mm + ":" + oDate.ss; |
| 82 | + else if(sMode === "datetime") |
| 83 | + return oDate.dayShort + ", " + oDate.dd + " " + oDate.month+ ", " + oDate.yyyy + " " + oDate.HH + ":" + oDate.mm + ":" + oDate.ss; |
76 | 84 | }
|
77 | 85 |
|
78 | 86 | });
|
|
0 commit comments