本地化UITextView [英] Localize a UITextView

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

问题描述

如何本地化UITextView? 我看到了很多有关UITextField的示例,但没有看到UITextView的示例.

How do I localize a UITextView? I saw a lot of examples for a UITextField but none for UITextView.

我需要在about部分中本地化我的应用程序描述.

I need to localize my application's description in the about section.

推荐答案

如果您已将描述直接写到XIB的UITextView中,则需要复制XIB(只需使用Xcode的本地化工具),然后复制并将翻译后的文本粘贴到新的XIB中.

If you've written the description directly into a UITextView in the XIB, you will need to duplicate the XIB (just use Xcode's localization tool) and then copy and paste the translated text into the new XIB.

如果有多个XIB,或者您需要将文本发送给翻译者,则只需在所有XIB上使用GENSTRINGS.参见此处: http://kb.applingua .com/2011/07/extracting-strings-from-y-m-class-files/

If there are several XIBs or you need to send the text to translators, just use GENSTRINGS on all the XIBs. See here: http://kb.applingua.com/2011/07/extracting-strings-from-your-m-class-files/

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

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