LanguageManager

Here’s a handy little piece if you have reason to change your app’s localization independent of the system:

A reusable localization manager class for iOS

… today I will share with you a little handy class that allows you to change the language of your app’s interface within the app and without the need of restarting. Moreover, the class uses the same dictionary system and files than the localization support offered by Apple…

Not that you’d really expect that requirement to come up all that often … but what does come up not all that unoften is several sets of localizations that all need at least layout verification, and integrating something on these lines would be rather more convenient than wandering off to Settings all the time is!

UPDATE:

Localization System for iOS for places like Belgium with multiple official languages

Alex | November 8, 2011
  • Cédric Luthi December 8, 2011 at 3:10 pm
    Have a look at NSBundle+HLSDynamicLocalization which is part of the CoconutKit framework: https://github.com/defagos/CoconutKit/blob/master/CoconutKit/Sources/Core/NSBundle+HLSDynamicLocalization.m It becomes trivial to test different localizations without having to change system settings each time. Also, you still use NSLocalizedString, so you don't need to adapt all your localization calls.

Leave a Reply