Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone Localization without English

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

like image 986
Lewion Avatar asked Nov 05 '22 09:11

Lewion


2 Answers

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.

like image 160
Max Seelemann Avatar answered Nov 09 '22 11:11

Max Seelemann


 [[NSUserDefaults standardUserDefaults] 
      setObject:[NSDictionary 
                  dictionaryWithObject:[NSArray arrayWithObjects:@"nl", nil]
                  forKey:@"AppleLanguages"]];

That will make Dutch the default language.

like image 23
Philippe Leybaert Avatar answered Nov 09 '22 11:11

Philippe Leybaert