From ddbcc5d29d069336ddaeab221db91220b95da175 Mon Sep 17 00:00:00 2001 From: Florian Wegscheider Date: Fri, 17 Jan 2020 08:09:37 +0100 Subject: [PATCH] Datepicker: Add German localization --- ui/i18n/datepicker-de-AT.js | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ui/i18n/datepicker-de-AT.js diff --git a/ui/i18n/datepicker-de-AT.js b/ui/i18n/datepicker-de-AT.js new file mode 100644 index 000000000..99416d242 --- /dev/null +++ b/ui/i18n/datepicker-de-AT.js @@ -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: "<Zurück", + nextText: "Vor>", + 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" ]; + +} ) ); -- 2.39.5