I currently have two supported languages: English and Spanish. Thus I have two main.strings
files for each language. One in en.lproj
and one in es.lproj
.
What I want now is that the English main.strings
is the default file if a user with a locale other than en
or es
arrives at the application, e.g. de
or fr
.
I know I can set it manually for each string in the code with the defaultString
parameter:
NSLocalizedStringWithDefaultValue(key, @"main",[NSBundle mainBundle], defaultString, comment);
But I would prefer to not enter it there again (and have to change it at two places), but rather have the en
main.strings
file as a default for any other "unsupported" locale.