NSLocalizedString 总是回退为英语
我有一个英语和法语翻译的项目。过去一切都工作得很好。 现在由于某种原因,语言总是回退到英语。
我尝试删除 English.lproj 和 French.lproj 文件夹,用 genstrings 重新生成它们:仍然是同样的问题
我也尝试从设备中删除应用程序,清理目标并再次部署,但没有结果。
设备的语言没有改变,因为它始终设置为法语。
PS:我的问题与此非常相似,只是我的项目曾经运行良好:
iPhone:即使设置了另一个语言,NSLocalizedString也会从英语.strings文件中读取
有人知道我能做什么吗?
感谢您的帮助, 文森特
I have a project with english and french translation. Everything used to work perfectly fine.
Now for some reason the language always fallback to english.
I tried to delete the English.lproj and French.lproj folders, regenerate them with genstrings : still same issue
I also tried to delete the app from the device, clean the target and deploy again, no results.
The language of the device didn't change since it has always been set to french.
P.S: My problem is very similar to this one, except that my project used to work fine :
iPhone: NSLocalizedString reading from English .strings file even when another lang is set
Does anybody have any idea of what i could do ?
Thanks for your help,
Vincent
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要遵循几个细节,包括将本地化文件拖动到项目中的位置。
查看本教程以获取分步说明:
http://www.icanlocalize.com/site/tutorials/iphone-应用程序本地化指南/
There are several details that you need to follow, including where in the project you drag the localized files.
Have a look at this tutorial for a step-by-step explanation:
http://www.icanlocalize.com/site/tutorials/iphone-applications-localization-guide/