Re: Two questions about NSCalendar
Re: Two questions about NSCalendar
- Subject: Re: Two questions about NSCalendar
- From: Chris Kane <email@hidden>
- Date: Fri, 20 Jan 2006 13:31:23 -0800
On Jan 19, 2006, at 7:02 PM, Nick Zitzmann wrote:
On Jan 19, 2006, at 5:38 PM, Chris Kane wrote:
Though, since we eventually added -setLocale: to NSCalendar (before
Tiger shipped), NSCalendar could have a redundant set of methods to
answer the questions. However, in some locales or languages the
proper form of the month name depends on the context in which it is
used, and that's more the purview of a formatter.
I was thinking more about weekday names. Then I performed a thought
experiment today and found that, no matter what calendar is in use,
NSDateFormatter always uses the Gregorian (localized) names of the
weekdays. For example, weekday 6 is "Friday" on the Gregorian
calendar and "Yaum al-Jum`a" on the Islamic calendar, but
NSDateFormatter always uses "Friday" as the weekday name even if the
Islamic calendar is in use. Why doesn't it return the correct
weekday names for different calendar types?
ICU does not have symbol/text data for the cross-product of all
calendars x locales. "en" is one of those. This data just gets
populated over time.
A few locales do [seem to] have complete data (like "fi", Finnish, for
some reason), but even then I cannot get ICU to return the translated
names. This is likely a bug in one of the layers.
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden