Changeset 113166 in webkit
- Timestamp:
- Apr 4, 2012 4:06:03 AM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r113164 r113166 1 2012-04-04 Kent Tamura <tkent@chromium.org> 2 3 Add localization functions for the calendar picker 4 https://bugs.webkit.org/show_bug.cgi?id=83129 5 6 Reviewed by Hajime Morita. 7 8 No behavior changes yet. 9 10 * WebCore.gypi: Add LocalizedCalendar.h and LocalizedCalendarICU.cpp. 11 * platform/LocalizedStrings.h: Add calendarTodayText() and calendarClearText(). 12 * platform/text/LocalizedCalendar.h: 13 Added. This provides monthLabels(), weekDayShortLabels(), and firstDayOfWeek(). 14 * platform/text/LocalizedCalendarICU.cpp: Added. ICU implementations of the above functions. 15 (WebCore::ScopedDateFormat): A wrapper for UDateFormat*. 16 (WebCore::ScopedDateFormat::ScopedDateFormat): 17 (WebCore::ScopedDateFormat::~ScopedDateFormat): 18 (WebCore::ScopedDateFormat::get): 19 (createFallbackMonthLabels): Creates fallback month labels in English. 20 (createLabelVector): 21 A helper for createMonthLabels() and createWeekDayShortLabels(). 22 (createMonthLabels): 23 Creates month labels using createLabelVector() or createFallbackMonthLabels(). 24 (WebCore::monthLabels): 25 (createFallbackWeekDayShortLabels): Creates fallback week labels in English. 26 (createWeekDayShortLabels): 27 Creates month labels using createLabelVector() or createFallbackWeekDayShortLabels(). 28 (WebCore::weekDayShortLabels): 29 (getFirstDayOfWeek): 30 (WebCore::firstDayOfWeek): 31 1 32 2012-04-03 Hans Wennborg <hans@chromium.org> 2 33 -
trunk/Source/WebCore/WebCore.gypi
r113111 r113166 4438 4438 'platform/text/LocaleToScriptMappingDefault.cpp', 4439 4439 'platform/text/LocaleToScriptMappingICU.cpp', 4440 'platform/text/LocalizedCalendar.h', 4441 'platform/text/LocalizedCalendarICU.cpp', 4440 4442 'platform/text/LocalizedDate.h', 4441 4443 'platform/text/LocalizedDateNone.cpp', -
trunk/Source/WebCore/platform/LocalizedStrings.h
r110865 r113166 212 212 String validationMessageRangeOverflowText(const String& maximum); 213 213 String validationMessageStepMismatchText(const String& base, const String& step); 214 #if ENABLE(CALENDAR_PICKER) 215 String calendarTodayText(); 216 String calendarClearText(); 217 #endif 214 218 215 219 #if !PLATFORM(CHROMIUM)
Note: See TracChangeset
for help on using the changeset viewer.