• 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
Language tags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Language tags


  • Subject: Language tags
  • From: Yuhui <email@hidden>
  • Date: Fri, 4 Apr 2003 02:46:37 -0600

Hi,

I'm writing a program that exports dates and descriptions to an iCal file (with a name like "something.ics"). In order to internationalize it, I need to make use of the iCalendar "Language" parameter.

I've figured out how to use NSUserDefaults to get the user's language. But the iCalendar format uses the 2-letter ISO 639 format, e.g. "English" = "en". Short of writing a lookup table, is there any Apple built-in function/dictionary to convert a language into the 2-letter version?

Thanks!

-----*-----*-----*-----
Yuhui email@hidden
ICQ 1300806 Fax: (978) 246-0397
yhWOW http://yuhuibc.tripod.com/
LiveJournal http://www.livejournal.com/users/yuhui/
-----
"Not all of us have heat vision."
- from the comic, "Kingdom Come"
"This isn't real. You know what it is? It's St. Elmo's Fire."
- from the movie, "St. Elmo's Fire"
"When you assume, you make an ass of you and me."
- from the TV series, "ER"
"Men and women can't be friends because the sex part always gets in the way."
- from the movie, "When Harry Met Sally"
"Mistletoe can be deadly when eaten. A kiss can be even deadlier if you mean it."
- from the movie, "Batman Returns"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Language tags
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: resizing cells with NSBrowser (j o a r)
  • Next by Date: Re: Newbie Question: Best view for list of strings? (Addendum: weird horizontal scrollbar/resize issues)
  • Previous by thread: Re: resizing cells with NSBrowser (j o a r)
  • Next by thread: Re: Language tags
  • Index(es):
    • Date
    • Thread