harshalb
harshalb

Reputation: 6054

How to make us and uk version of iPhone application?

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

Answers (2)

Giao
Giao

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

Thilo
Thilo

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

Related Questions