为什么我不能在我的iOS应用程序中添加本地化? [英] Why can't I add localization to my iOS app?

查看:217
本文介绍了为什么我不能在我的iOS应用程序中添加本地化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试添加本地化。我已经阅读了Apple和raywenderlich.com的所有本地化/国际化指南。我用NSLocalizedString宏标记了我的所有代码,我使用了genstrings来创建Localizable.strings。但不知怎的,我错过了一些重要的步骤。

I'm trying to add a localization. I've read all those localization/internationalization guides from Apple and raywenderlich.com. I've marked all my code with NSLocalizedString macro, I've used genstrings to create Localizable.strings. But somehow I'm missing some important step.

当我尝试将本地化添加到我的Localizable.strings时,我只能限于英语。

When I try to add localization to my Localizable.strings I'm somehow restricted to English only.

当我尝试通过编辑器 - >添加本地化向项目添加本地化时,所有语言选项都被禁用。

When I try to add localization to project via "Editor"->"Add Localization" all language options are disabled.

任何人都有任何想法,为什么我只限于英语?我错过了什么?

Does anybody have any thoughts as to why am I restricted to English only? What have I missed?

我试图将本地化添加到具有相同结果的其他项目中。 :(

I've tried to add localization to other projects with the same result. :(

推荐答案

您需要先将本地化添加到项目中。单击项目文件,确保项目,而不是在中间窗格中选择目标,然后选择信息屏幕。有一个名为本地化的区域,您可以在其中添加语言。然后您应该能够本地化您的资源。

You need to first add your localizations to your project. Click on the project file, ensure that the project, not the target, is selected in the middle pane and then choose the "Info" screen. There's a area called "Localizations" where you can add languages. You should then be able to localize your resources.

这篇关于为什么我不能在我的iOS应用程序中添加本地化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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