Created
October 22, 2008 02:13
-
-
Save erichocean/18520 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ======================================================================== | |
// SproutCore | |
// copyright 2006-2008 Sprout Systems, Inc. | |
// ======================================================================== | |
require('core') ; | |
/** | |
@class | |
This class provides support for Locale-aware classes, like SC.CalendarView. | |
@extends SC.Object | |
@author Erich Ocean | |
@version 1.0 | |
@since SproutCore 1.0 | |
*/ | |
SC.Locale = SC.Object.extend( | |
/** @scope SC.Locale.prototype */ { | |
format: (typeof Date.CultureInfo == 'undefined' ? '%b %d, %Y' : Date.CultureInfo.formatPatterns.shortDate), | |
monthNames: (typeof Date.CultureInfo == 'undefined' ? $w('January February March April May June July August September October November December') : Date.CultureInfo.monthNames), | |
dayNames: (typeof Date.CultureInfo == 'undefined' ? $w('Sunday Monday Tuesday Wednesday Thursday Friday Saturday') : Date.CultureInfo.dayNames), | |
weekOffset: (typeof Date.CultureInfo == 'undefined' ? 0 : Date.CultureInfo.firstDayOfWeek) | |
}) ; | |
SC.currentLocale = SC.Locale.create(); // defaults to English |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment