IOS:添加语言为Localizable.strings [英] IOS: Add languages as Localizable.strings

查看:504
本文介绍了IOS:添加语言为Localizable.strings的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想本地化我的应用,并将法语和西班牙语添加到英语以外的目标属性

I want to localize my app, and I add French and Spanish to the target properties other than English

但是,这些语言没有显示在文件检查器中以供选择。只有'英语'和称为'基础'的东西。

But, those languages are not showing inside the file inspector to select. Only 'English' and Something called 'Base'.

任何帮助?

推荐答案

如果您转到项目的信息窗格,您将看到一个面板,其中显示您的部署目标,配置以及您支持的当前本地化(包括使用基础国际化的复选标记)。 基础国际化,顺便说一句,允许您拥有一个具有不同字符串的故事板文件填充故事板中的字符串字段的文件。 适用于iOS 6和更新

If you go to the "Info" pane of your project, you'll see a panel that shows your Deployment Target, Configurations and also the current localizations that you support (including a checkmark for "Use Base Internationalization"). Base Internationalization, b.t.w., allows you to have a single storyboard file that has different string files populating the string fields in the storyboard. It works for iOS 6 and newer.

当你开始时,它可能如下所示:

When you start, it might look like this:

这里我添加了印地语作为语言的可能性:

Here I've added Hindi as a language possibility:

当你完成后,你可以选择复选框:

And when you're done, you have the checkbox to choose from:

这篇关于IOS:添加语言为Localizable.strings的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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