I have a tiny question regarding NSStrings. I'm currently making an app, the development language is English. I have a string like this:
NSLocalizedString(@"cancel", @"cancel string");
I have intentions of localising this app to Spanish afterwards so I need to do that. Now, the problem I have is that I need to compare this specific string to another string. So suppose I have this:
NSString *cancelString = NSLocalizedString(@"cancel", @"cancel string");
Can I just compare this string to the other one like this?:
[cancelString isEqualToString:@"cancel"];
And it will work fine? Or what will happen if the user is using my app in Spanish (so cancelString says "cancelar" instead of "cancel")? Does equalToString only compare to the base language of the app?
Hope I'm being clear.