• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Localize weekdays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Localize weekdays
      • From: jj <email@hidden>
    • Dodge .DS_Store files in Folder Action
      • From: Simon Troup <email@hidden>
  • Prev by Date: Re: Localize weekdays
  • Next by Date: Re: Localize weekdays
  • Previous by thread: Re: Localize weekdays
  • Next by thread: Dodge .DS_Store files in Folder Action
  • Index(es):
    • Date
    • Thread