IPhone Localization – Programmatically

There isn't an API to change the current iPhone system-wide language settings from
within an application.  In general, this behavior is discouraged, since it would
be confusing from a user's point of view.

If you need to load resources for a different language, based on, perhaps, an in-app
setting, you can do this in your application by using NSBundle APIs like
NSBundle:pathForResource:ofType:inDirectory:forLocalization to get the relative path
to a particular language resource lproj folder in the bundle, and then loading these
resources manually.  See the following docs for more details on this:

http://developer.apple.com/iphone/library/documentation/CoreFoundation/Conceptual/CFBundles/AboutBundles/AboutBundles.html#//apple_ref/doc/uid/10000123i-CH100-SW8

http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference.html#//apple_ref/occ/instm/NSBundle/pathForResource:ofType:inDirectory:forLocalization:

AuthorNirmal

Technical Geek - Gadget Enthusiast - Loves Programming C#,PHP & IOS - Blogger About

Leave a Reply

Your email address will not be published. Required fields are marked *