I have an app that's only supported in Dutch and French. English is not an available language for this app. If I want to use localizable strings, the default always gets set on English. I want this to be dutch. So what I did was use the English localizable strings file and fill it up with dutch words. Only problem I have is that it shows English as a supported Language in the App Store. Is there any way to change the default Localizable Strings file to Dutch so that the only two languages that show up are Dut开发者_开发百科ch and French?
Thanks in advance,
Lewion
You should rename the folder where your dutch files lay in from en.lproj
to nl.lproj
. Everything should still work then but the language will get recognized correctly. You may have to tell Xcode about the new location of the files.
[[NSUserDefaults standardUserDefaults]
setObject:[NSDictionary
dictionaryWithObject:[NSArray arrayWithObjects:@"nl", nil]
forKey:@"AppleLanguages"]];
That will make Dutch the default language.
Create Dutch and French by standard means and delete English.lproj from the app after building, for example as a build phase, as described here (2nd paragraph).
精彩评论