How do I remove support for English in my iOS app?

╄→гoц情女王★ 提交于 2019-12-06 06:08:51

问题


I renamed en.lproj to sv.lproj. I then added the Swedish resources to the project and removed the English resources.

The problem is that the app still "thinks" that it supports English, i.e. [[NSBundle mainBundle] localizations] returns both en and sv.

I've removed every reference to en and English that I could find in the project file and the info plist, but it still supports English.

I'm running out of ideas, so please help me. There must be a ton of people that written apps that doesn't support English. Still I haven't been able to find anything useful on Google.


回答1:


First of all check this:

  1. List item
  2. Open project in Xcode >= 4.0.2
  3. Click on project file
  4. Select item under Project title on the right
  5. Check Localizations table.

EDIT: Adding the final steps to solve my problem in case anyone has the same problem. /Erik B

  1. Select the localization you want to duplicate (English)
  2. Click + and select the language you want you're app to use (Swedish)
  3. Select the localization you want to remove (English)
  4. Click - and delete the files

That's all there's to it. Now your app will only use Swedish or whatever language you chose.




回答2:


First go to project details (first entry in the project navigator) and click on your project to see the global settings. Look what is written under "Localizations". If there is still "English" you have to check for every file what is in the file inspector under Localization. Remove every English localization.



来源:https://stackoverflow.com/questions/7204608/how-do-i-remove-support-for-english-in-my-ios-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!