Reputation: 235
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 Dutch and French?
Thanks in advance,
Lewion
Upvotes: 5
Views: 1571
Reputation: 16941
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).
Upvotes: 0
Reputation: 171734
[[NSUserDefaults standardUserDefaults]
setObject:[NSDictionary
dictionaryWithObject:[NSArray arrayWithObjects:@"nl", nil]
forKey:@"AppleLanguages"]];
That will make Dutch the default language.
Upvotes: 1
Reputation: 9364
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.
Upvotes: 1