I believe the serial comma is, in a strict sense, not tied to any particular locale even though it's commonly used in US.

Also, it's advisable not to try algorithmically formatting localized strings like this. It often causes issues with other locales because it's very hard for a single person to predict what localizers would want to with such strings. Usually you can get more flexible localizability if you give the entire context to localizers (let them localize the entire format string, for example).

Just my two cents.

Aki

On 2008/11/23, at 2:56, Andreas Eriksson wrote:

Hi,

is there a way to find out if a serial comma should be used or not
("foo, bar, and baz" or "foo, bar and baz"?) according to the users
current settings?

I've locked around in the NSLocale class but couldn't find anything.

Regards

Andreas
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/aki%40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to