Re: Is NSStringFromRect localized?
Re: Is NSStringFromRect localized?
- Subject: Re: Is NSStringFromRect localized?
- From: John Stiles <email@hidden>
- Date: Sat, 12 Mar 2005 18:46:36 -0800
I'm pretty sure NSStringFromRect is used so you can log strings to the
console or to a file, not to present numbers to the end user. So I'd
assume the implementation is along the lines of
return [NSString stringWithFormat:@"{{%g, %g}, {%g, %g}}", …];
But assuming you want to show this string to an end user anyway, are
there any languages in which a comma is no good?
The only cases I can think of that might be a little goofy:
- some European languages use the , as a decimal separator, but if
there's a space after the number, I'd guess that it's still considered
a regular comma and not a stray decimal point
- Japanese and Chinese have native-style commas (、), but they are also
OK with standard commas; particularly considering you're already using
the halfwidth numbers, the halfwidth comma is no problem
- maybe Arabic/Hebrew are weird? no idea here.
On Mar 12, 2005, at 5:09 PM, Mark Dawson wrote:
NSStringFromRect says it Returns a string of the form “{{a, b}, {c,
d}}”, where a, b, c, and d are the x and y coordinates and the width
and height, respectively, of aRect. Are the "," localized?
Thanks!
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden