]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Use Globalize 1.0.0
authorRafael Xavier de Souza <rxaviers@gmail.com>
Thu, 4 Sep 2014 19:04:04 +0000 (16:04 -0300)
committerFelix Nagel <info@felixnagel.com>
Tue, 28 Jul 2015 22:03:36 +0000 (00:03 +0200)
- Remove unneeded territory DE from de-DE locale;

tests/unit/calendar/core.js
tests/unit/date/core.js

index 92753748f94358f3437fedef5249ebe2022d07ce..c35eff4ebb4220b899ccbd603430e43028d90ab8 100644 (file)
@@ -116,14 +116,14 @@ test( "Localization", function() {
                        );
                };
 
-       Globalize.locale( "de-DE" );
+       Globalize.locale( "de" );
        initCalendar();
        testLocalization( "Init: " );
        element.calendar( "destroy" );
 
        Globalize.locale( defaultLocale.locale );
        initCalendar();
-       Globalize.locale( "de-DE" );
+       Globalize.locale( "de" );
        element.calendar( "refresh" );
        testLocalization( "After init: " );
 
index e6dc16dcf69838a380e747bc4ecbbd54d8c2ead1..d5895a91df3243b266c1773e3fb8f1542b41fcb0 100644 (file)
@@ -89,7 +89,7 @@ test( "List days of Week", 2, function() {
                ];
 
        deepEqual( date.weekdays(), offset0, "Get weekdays with start of day on 0 (English)" );
-       Globalize.locale( "de-DE" );
+       Globalize.locale( "de" );
        deepEqual( date.weekdays(), offset1, "Get weekdays with start of day on 1 (Germany)" );
 
        // Revert Globalize changes back to English
@@ -119,7 +119,7 @@ test( "Days in Month", 3, function() {
 test( "Month Name", 2, function() {
        var date = $.date();
        equal( date.setMonth( 3 ).monthName(), "April", "Month name return April (English)" );
-       Globalize.locale( "de-DE" );
+       Globalize.locale( "de" );
        equal( date.setMonth( 2 ).monthName(), "März", "Month name return March (German)" );
        Globalize.locale( "en" );
 });