Archive for Localization

Localizable.strings – How to load translation files dynamically from a web server and use them it inside your iPhone App

We all know we can use “Localizable.strings” to translate our Apps into different languages like this in our code:

NSLocalizedString(@"myKey", @"");

… if we have created our “Localizable.strings” file first and put in some keys and values… but what if I want my translation to be dynamic, that is, download it from a webserver and use the key value pairs of that file instead of our “locked” app resources like Localizable.strings after deployment?

Fortunately there is a solution to this problem! I’m also going to show you how to download the file from a webserver using ASIHTTPRequest, a wrapper around the CFNetwork API that makes it very easy for us to communicate with our webserver even through https!

Localizable Strings