Re: Number/Currenct formatting by locale

2011-03-01 Thread Peter Haworth
Yes, the situation is certainly different for web apps (mine's a desktop app). The coding is quite simple to get the OS preferences and store them. The hard part is the formatting code which has to be done no matter where I get the prefs from. LC makes it easy to deal with dates and times but

Re: Number/Currenct formatting by locale

2011-03-01 Thread Keith Clarke
Peter (sorry, Bob!), I guess I spend too much time using web apps on multiple platforms - I forget that with desktop client-server, you tend to move the client with you! Still, with net-aware client-server, you might still want the local to be a virtual user setting across (for instance) work PC

Re: Number/Currenct formatting by locale

2011-03-01 Thread Peter Haworth
Hi Keith, Actually, it's me who is trying to implement this not Bob. You raise some good points though. My first question is why on earth would you be running Salesforce when you're on holiday in the Maldives :-) My thoughts are that are that the first time you run my application, it will gat

Re: Number/Currenct formatting by locale

2011-03-01 Thread Bob Sneidar
Not me, Peter. Bob On Mar 1, 2011, at 12:59 AM, Keith Clarke wrote: > Bob, > Just a couple of thoughts - I don't know what you're trying to achieve with > your app, but are you sure you even want to have such settings to follow the > user's machine/OS settings automatically? _

Re: Number/Currenct formatting by locale

2011-03-01 Thread Keith Clarke
Bob, Just a couple of thoughts - I don't know what you're trying to achieve with your app, but are you sure you even want to have such settings to follow the user's machine/OS settings automatically? >From my experience with multi-locale/currency/language software products - >ERP, CRM, etc -

Re: Number/Currenct formatting by locale

2011-02-28 Thread Bob Sneidar
Oh nvm I just read the whole thing didn't try LC Bob On Feb 28, 2011, at 5:12 PM, Peter Haworth wrote: > The decimal point is there but the thousands sep and grouping info is wrong. > Similar corruption occurs for the LC_MONETARY info. > > Is Shell broken? > > > Pete Haworth _

Re: Number/Currenct formatting by locale

2011-02-28 Thread Bob Sneidar
Sorry, I get decimal_point="." thousands_sep="," grouping="3;3" Bob On Feb 28, 2011, at 5:12 PM, Peter Haworth wrote: > The decimal point is there but the thousands sep and grouping info is wrong. > Similar corruption occurs for the LC_MONETARY info. > > Is Shell broken? > > > Pete Hawor

Re: Number/Currenct formatting by locale

2011-02-28 Thread Bob Sneidar
It's correct for me Peter. Bob On Feb 28, 2011, at 5:12 PM, Peter Haworth wrote: > The decimal point is there but the thousands sep and grouping info is wrong. > Similar corruption occurs for the LC_MONETARY info. > > Is Shell broken? > > > Pete Haworth _

Re: Number/Currenct formatting by locale

2011-02-28 Thread Bob Sneidar
It doesn't even look like there is a way in OS X terminal to get that information. You might try setting some variable to a number and then seeing how the OS formats it, but I don't even know how to go about doing that. Bob On Feb 28, 2011, at 4:48 PM, Peter Haworth wrote: > Yeah, I've alrea

Re: Number/Currenct formatting by locale

2011-02-28 Thread Peter Haworth
Well I thought I had solved this but not quite. The Unix locale command returns information about date, time, number, and currency formats. For example, if I execute the following command in Terminal on my Mac: locale -k LC_NUMERIC ... I get: decimal_point="." thousands_sep="," grouping="3;3

Re: Number/Currenct formatting by locale

2011-02-28 Thread Peter Haworth
Yeah, I've already got that stack. It does allow you to pass in a currency symbol (or maybe I adapted it to do that, don;t remember), but that doesn't help me. I don;t know what the correct currency symbol should be without either getting it from the user's OS preference settings or asking the

Re: Number/Currenct formatting by locale

2011-02-28 Thread Bob Sneidar
Is that just for UK formats? Looks like it, but I might be missing something. Bob On Feb 28, 2011, at 4:21 PM, Marty Knapp wrote: > There's a stack called Accountancy Format that won't help you get the user > info, but may be of some other use for you: > >

Re: Number/Currenct formatting by locale

2011-02-28 Thread Marty Knapp
There's a stack called Accountancy Format that won't help you get the user info, but may be of some other use for you: Marty Knapp I found answers to my earlier post regarding formatting of dates and times per the user's OS pref