Re: Elegant Way to Create Localized String

2010-10-01 Thread Jason Barker
Shawn and Dave, This solution is exactly what I needed. The link provided by Shawn contains the info stated by Dave. Thank you very much, Jason Sent from my iPhone On Oct 1, 2010, at 5:50 PM, Shawn Erickson wrote: > On Fri, Oct 1, 2010 at 3:12 PM, Jason Barker wrote: >> Hi everyone, >> >> I

Re: Elegant Way to Create Localized String

2010-10-01 Thread Shawn Erickson
On Fri, Oct 1, 2010 at 3:12 PM, Jason Barker wrote: > Hi everyone, > > I'm working on an app with localized strings.

Re: Elegant Way to Create Localized String

2010-10-01 Thread Dave DeLong
Would probably use the numbered replacement format. In english, your format string would be: @"%...@... %...@... %...@..." And in the other language, it'd be: @"%...@... %...@... %...@..." Then you'd use it like normal: NSString * translated = [NSString stringWithFormat:format, value1, value

Elegant Way to Create Localized String

2010-10-01 Thread Jason Barker
Hi everyone, I'm working on an app with localized strings. I've got one string which contains placeholder values and depending upon the user's language settings, it should format the string with the values in a different order. For example, in English, the string would be formatted as: "... ...