Dimitris
Dimitris

Reputation: 13660

Choose specific localization on an iPhone app

How can I let the user choose a specific localization in my app? I have a book and I'd like the users to be able to read all the different translations of it.

Upvotes: 0

Views: 784

Answers (1)

iKenndac
iKenndac

Reputation: 18776

You'll need to implement your own localisation methods.

One way to do this is to subclass NSBundle and override -pathForResource:ofType:inDirectory:forLocalization: and -pathsForResourcesOfType:inDirectory:forLocalization:. In your overrides, read from NSUserDefaults or whatever to decide which localisation to use then manually find the right one.

Upvotes: 1

Related Questions