]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Add German localization
authorFlorian Wegscheider <flo.wegscheider@gmail.com>
Fri, 17 Jan 2020 07:09:37 +0000 (08:09 +0100)
committerFelix Nagel <fnagel@users.noreply.github.com>
Mon, 23 Mar 2020 21:09:38 +0000 (22:09 +0100)
ui/i18n/datepicker-de-AT.js [new file with mode: 0644]

diff --git a/ui/i18n/datepicker-de-AT.js b/ui/i18n/datepicker-de-AT.js
new file mode 100644 (file)
index 0000000..99416d2
--- /dev/null
@@ -0,0 +1,38 @@
+/* German/Austrian initialisation for the jQuery UI date picker plugin. */
+/* Based on the de initialisation. */
+
+( function( factory ) {
+       if ( typeof define === "function" && define.amd ) {
+
+               // AMD. Register as an anonymous module.
+               define( [ "../widgets/datepicker" ], factory );
+       } else {
+
+               // Browser globals
+               factory( jQuery.datepicker );
+       }
+}( function( datepicker ) {
+
+datepicker.regional[ "de-AT" ] = {
+       closeText: "Schließen",
+       prevText: "&#x3C;Zurück",
+       nextText: "Vor&#x3E;",
+       currentText: "Heute",
+       monthNames: [ "Jänner","Februar","März","April","Mai","Juni",
+       "Juli","August","September","Oktober","November","Dezember" ],
+       monthNamesShort: [ "Jän","Feb","Mär","Apr","Mai","Jun",
+       "Jul","Aug","Sep","Okt","Nov","Dez" ],
+       dayNames: [ "Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag" ],
+       dayNamesShort: [ "So","Mo","Di","Mi","Do","Fr","Sa" ],
+       dayNamesMin: [ "So","Mo","Di","Mi","Do","Fr","Sa" ],
+       weekHeader: "KW",
+       dateFormat: "dd.mm.yy",
+       firstDay: 1,
+       isRTL: false,
+       showMonthAfterYear: false,
+       yearSuffix: "" };
+datepicker.setDefaults( datepicker.regional[ "de-AT" ] );
+
+return datepicker.regional[ "de-AT" ];
+
+} ) );