Language tags
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.