如何在Xcode 4.4中添加本地化语言? [英] How to add localization language to Xcode 4.4?

查看:167
本文介绍了如何在Xcode 4.4中添加本地化语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

参考本指南: 如何使用Xcode 4本地化我的应用程序?

我注意到在本地化下,我的Xcode 4.4没有显示[+]按钮:

I noticed that under Localization, my Xcode 4.4 shows no [+] button:

如何将语言添加到本地化列表?

注意:我没有使用IB.我纯粹需要一个带有翻译字符串的本地化字符串文件来进行游戏.

Note: I'm not using IB. I purely need a localized strings file with translated strings for a game.

到目前为止,我的解决方法是:我手动创建了de.lproj文件夹,将字符串文件复制到de.lproj中,将其添加到Xcode中,并且Xcode确实将文件识别为德语. Xcode还将德语添加到本地化"列表中.我想知道是否有更简单的方法(从Xcode内部)代替复制&手动添加文件?

My workaround so far: I created the de.lproj folders manually, copied the strings file into de.lproj, added it to Xcode and Xcode did recognize the file as german. Xcode also added German to the Localization list. I'm wondering if there is an easier way to do this (from within Xcode) instead of copying & adding the files manually?

推荐答案

从项目导航器中选择项目,以打开项目编辑器.从项目编辑器的左侧选择您的项目.单击编辑器顶部的信息"按钮.您应该会看到一个本地化列表以及一个添加本地化的按钮.单击添加按钮,然后选择一种语言.将打开一个工作表,让您选择要本地化的文件.

Select your project from the project navigator to open the project editor. Select your project from the left side of the project editor. Click the Info button at the top of the editor. You should see a list of localizations along with a button to add a localization. Click the Add button and choose a language. A sheet will open that lets you choose what files to localize.

这篇关于如何在Xcode 4.4中添加本地化语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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