Re: Localize weekdays
Re: Localize weekdays
- Subject: Re: Localize weekdays
- From: has <email@hidden>
- Date: Fri, 28 Jan 2005 14:37:00 +0000
jj wrote:
I'm working on a calendar. I guess the answer is "NO" but... Do you know a
way to "localize" weekday names?
Eg (pseudo-code):
Thursday as text --> "jueves" (in a spanish system)
In pure AppleScript, the nearest thing I can think of is AppleMods'
Date library, which can custom format dates in about a dozen
different (mostly European) languages. Otherwise you'll have to muck
about in Core Foundation/Cocoa to retrieve the results you're after,
e.g. see CFDateFormatter [1], NSDate
descriptionWithCalendarFormat:timeZone:locale: [2]. Or find another
scripting language that provides a strftime() function with
localization support and call that via 'do shell script'.
HTH
has
[1]
http://developer.apple.com/documentation/CoreFoundation/Reference/CFDateFormatterRef/index.html
[2]
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSDate.html
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden