如何在iOS应用中删除对英语的支持? [英] How do I remove support for English in my iOS app?

查看:228
本文介绍了如何在iOS应用中删除对英语的支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 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.

推荐答案

首先检查一下:


  1. 列表项目

  2. 在Xcode中打开项目> = 4.0.2

  3. 单击项目文件

  4. 选择右侧项目标题下的项目

  5. 检查本地化表。

  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.

编辑:如果有人遇到同样的问题,请添加最后的步骤来解决我的问题。 / Erik B

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


  1. 选择要复制的本地化(英语)

  2. 点击 + 并选择您希望应用程序使用的语言(瑞典语)

  3. 选择要删除的本地化(英语)

  4. 点击 - 并删除文件

  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.

这篇关于如何在iOS应用中删除对英语的支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆