I have an iPad app (XCode 4.6, iOS 6.2, Storyboards and ARC). I am trying to localize a UISegmentControl. I already have the translations in MainStoryboard.strings file, and have this code in the controller's viewDidLoad:
// set titles of UISegmentedControls
NSString *resourcePath =[[NSBundle mainBundle] pathForResource:@"MainStoryboard" ofType:@"strings"];
NSDictionary *resourceDict = [NSDictionary dictionaryWithContentsOfFile:resourcePath];
[self.oDeleteOldAppts setTitle:[resourceDict objectForKey:@"jcy-vN-Nq9.segmentTitles[0]"] forSegmentAtIndex:0];
[self.oDeleteOldAppts setTitle:[resourceDict objectForKey:@"jcy-vN-Nq9.segmentTitles[1]"] forSegmentAtIndex:1];
[self.oDeleteOldAppts setTitle:[resourceDict objectForKey:@"jcy-vN-Nq9.segmentTitles[2]"] forSegmentAtIndex:2];
The problem is that both resourcePath and resourceDict are nil. How do I get them for the current language, be it en or some other language?