Sample code for localization in IOS