Well, firstly, instead of using the .string file, if it has only a failure, then I just use the txt file:
NSString * fName = [[NSBundle mainBundle] pathForResource:@"disclaimer" ofType:@"txt"]; if (fName) { self.disclaimer = [NSString stringWithContentsOfFile: fName]; }
On the other hand, if you want to make a localized version for each country, just add it to the "Localizable.strings" file. Your code is simple:
self.disclaimer = NSLocalizedString(@"disclaimer", @"Disclaimer text for each country");
Then either use genstrings to collect all your localizable strings, or create "Localizable.strings" (File \ New \ New File \ ioS \ Resource \ Strings File), and then you can edit / add to the text:
"disclaimer" = "This is the English version of our disclaimer...";
Then you create a new language version of Localizable.strings and edit it with the abandonment of this country.
source share