Datepicker: Use Globalize 1.0.0

- Remove unneeded territory DE from de-DE locale;
This commit is contained in:
Rafael Xavier de Souza 2014-09-04 16:04:04 -03:00 committed by Felix Nagel
parent d0a5a7a0e6
commit b39bb7250e
2 changed files with 4 additions and 4 deletions

View 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: " );

View 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" );
});