Reputation: 6054
I have seen some localization examples but they were based on languages .
In my case I want to make my application in two versions : us and uk .
For that I can not depend on language as I have seen just English in the settings application .
there is no English(UK) or English(US) .
I want just some minor changes like $ or £ .
These changes I want to do in my code .
So should I make two different builds or there is a way to localize them.
Thanks.
Upvotes: 2
Views: 418
Reputation: 15146
What you're looking to do is detect different locales instead of languages. Things like currency symbols are supported by way of the NSLocale
class.
For example to get the currency symbol use:
NSString *currencySymbol = [[NSLocale currentLocale] objectForKey:NSLocaleCurrencySymbol];
This solves your problem without the user having to configure specifically for your app; chances are good that the default for your app is likely the wrong setting for a good deal of your users with the preference approach.
Upvotes: 2
Reputation: 262724
Easiest way would probably be to support both with the same build and let the user choose via a preference panel.
Upvotes: 2