How do I open a .string file as an
NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:@"dict.plist"];
NSDictionary *strings = [[NSDictionary alloc] initWithContentsOfFile:@"Strings.strings"];
If you really want it in a dictionary, you can load it using
[NSDictionary dictionaryWithContentsOfFile:], since it is in “Old-style ASCII” format. I have used this technique before on Mac OS X, but I'm not sure you can do the same for iOS.
However, if you want a translation for a particular string, there are at least two ways to do it:
NSLocalizedStringFromTable() will allow you to load strings from files other than the normal
Localizable.strings file. Provide the name of your strings file (without the extension).
localizedStringForKey:value:table: method. This essentially performs the same operations as the method above, and as above, provide the name of your strings file without the extension.