在 iOS 本地化中使用符号链接
各位,
我会做一些实验,但我认为询问“官方消息”是个好主意。
我有一个针对波斯语(“fa”)本地化的应用程序。然而,波斯语实际上有 3 个“品牌”:波斯语 (fa)、波斯语-伊朗 (fa-IR) 和波斯语-阿富汗 (fa-AF)。现在,感谢 先前的问题,我可以设置正确的日历。然而,我的本地化的另一个方面是我有一系列用于本地化的 24 位 PNG 图像。
这些都不小。我想将 fa 图像重新用于其他两个(不太常见)图像。
我可以符号链接到它们吗?符号链接会带入设备吗?
。 。 有人吗? 。 。 布勒?
Folks,
I'll do some experimenting, but I think it's a good idea to ask for the "official word."
I have an app that is localized for Farsi ('fa'). However, there are actually 3 "brands" of Farsi: Farsi (fa), Farsi-Iran (fa-IR) and Farsi-Afghanistan (fa-AF). Now, thanks to a prior question, I can set the proper calendar. However, another aspect of my localization is that I have a series of 24-bit PNG images that are used for localizations.
These are not small. I'd like to re-use the fa images for the other two (less common) ones.
Can I symlink to them? Will the symlinks carry into the device?
.
.
Anyone?
.
.
Bueller?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须测试这是否真的有效,但我希望如果您仅将文件包含在“fa”中并将它们排除在“fa-IR”和“fa-AF”之外,那么运行时应该足够智能以使用如果在“fa-IR”或“fa-AF”中运行时找不到图像,则使用“fa”中的图像,而不是默认说“en”。
You have to test if this really works, but I would expect that if you include the files only in 'fa' and leave them out of 'fa-IR' and 'fa-AF' that the runtime should be smart enough to use the image from 'fa' if it can't find one when running in 'fa-IR' or in 'fa-AF', instead of defaulting to say 'en'.