xib文件的iPhone本地化 [英] iPhone localization for xib files

查看:140
本文介绍了xib文件的iPhone本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是熟悉xib文件的本地化,并想知道是否有办法通过直接引用plist来本地化xib中的字符串...

I am just getting familiar with the localization of xib files and was wondering if there's a way of localizing the strings within the xib by refering to the plists directly...

欣赏一些想法..

推荐答案

如果你不想直接本地化.xib文件,你可以提取它们包含在.strings文件中的文本,并且在翻译.strings文件后,将它们注入到.xib文件中以生成本地化版本。这些提取/注入操作是使用 ibtool 实用程序完成的。

If you don't want to localize the .xib files directly, you can extract the text they contain into .strings files and, once the .strings files are translated, inject them back into your .xib file to produce localized versions. These extract/inject operations are done using the ibtool utility.

我找到了有关如何执行此操作的详细说明此网站

I found detailed instructions on how to do this on this website.

这篇关于xib文件的iPhone本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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