如何在iOS应用中删除对英语的支持? [英] How do I remove support for English in my iOS app?
问题描述
我将 en.lproj
重命名为 sv.lproj
。然后我将瑞典资源添加到项目中并删除了英语资源。
I renamed en.lproj
to sv.lproj
. I then added the Swedish resources to the project and removed the English resources.
问题是应用仍然认为它支持英语,即 [[NSBundle mainBundle] localizations]
返回 en
和 sv
。
The problem is that the app still "thinks" that it supports English, i.e. [[NSBundle mainBundle] localizations]
returns both en
and sv
.
我删除了对 en
和英文
的每一个引用我可以在项目文件和信息plist中找到它,但它仍然支持英语。
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.
推荐答案
首先检查一下:
- 列表项目
- 在Xcode中打开项目> = 4.0.2
- 单击项目文件
- 选择右侧项目标题下的项目
- 检查本地化表。
- List item
- Open project in Xcode >= 4.0.2
- Click on project file
- Select item under Project title on the right
- Check Localizations table.
编辑:如果有人遇到同样的问题,请添加最后的步骤来解决我的问题。 / Erik B
Adding the final steps to solve my problem in case anyone has the same problem. /Erik B
- 选择要复制的本地化(英语)
- 点击
+
并选择您希望应用程序使用的语言(瑞典语) - 选择要删除的本地化(英语)
- 点击
-
并删除文件
- Select the localization you want to duplicate (English)
- Click
+
and select the language you want you're app to use (Swedish) - Select the localization you want to remove (English)
- Click
-
and delete the files
这就是它的全部内容。现在,您的应用只会使用瑞典语或您选择的任何语言。
That's all there's to it. Now your app will only use Swedish or whatever language you chose.
这篇关于如何在iOS应用中删除对英语的支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!