[英]Localization in Xcode 5
I have around 1000 strings from storyboards and .m files which are converted for French Language. 我有大约1000个来自故事板和.m文件的字符串,这些文件已转换为法语。 I need to add more strings to the same project. 我需要向同一项目添加更多字符串。 How do I update the strings file for my project? 如何为我的项目更新字符串文件?
Thanks 谢谢
Usually people put all localization is in Localizable.strings file. 通常人们把所有本地化都放在Localizable.strings文件中。 If you want to add more string simply add "KEY" = "TRANSLATION";
如果要添加更多字符串,只需添加"KEY" = "TRANSLATION";
to that file and use NSLocalizedString(key, comment)
in your project where it is needed. 到该文件,并在需要它的项目中使用NSLocalizedString(key, comment)
。
If you want to localize storyboard and/or nib files then you have to enable Base Internationalization in project settings. 如果要本地化故事板和/或Nib文件,则必须在项目设置中启用“ 基本国际化” 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.