是否可以本地化应用程序图标和 Default.png?

发布于 2024-09-05 23:04:27 字数 67 浏览 1 评论 0原文

是否可以本地化应用程序图标和 Default.png 文件?我是否只需将它们放入相应的语言文件夹中还是必须执行其他操作?

Is it possible to localize the app icon and Default.png files? Do I just drop them in the respective language folders or must I do something else?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风流物 2024-09-12 23:04:27

根据我的评论,其他地方有答案,但您可以在 iPhone 应用程序编程指南的国际化您的应用程序部分。例如,有一个示例说明如何在应用程序包中构建语言文件。

As per my comment, there's an answer elsewhere, but you can read more in the Internationalizing Your Application section of the iPhone Application Programming Guide. There's an example of how to structure your language files in your app bundle, for example.

小兔几 2024-09-12 23:04:27

正确答案是无法本地化应用图标。

iOS 应用程序应该国际化并具有
它支持的每种语言的 language.lproj 文件夹。此外
提供应用程序自定义资源的本地化版本,
还可以本地化您的应用程序图标和启动图像
将同名文件放置在特定于语言的项目中
目录。然而,即使您提供本地化版本,您
应始终包含这些文件的默认版本
您的应用程序包的顶层。默认版本用于
特定本地化不可用的情况。了解更多
有关本地化资源的信息,请参阅“本地化资源”
捆绑。”

https://developer.apple.com/ Library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html

Apple 文档经常更新/更改。这是目前正确的链接。另外,我实际上还没有尝试本地化应用程序图标/默认图像,但苹果说它有效,所以为什么不呢:-)

同样的问题在 stackoverflow 上出现了很多次。

The correct answer is that it is not possible to localize the app icon.

An iOS application should be internationalized and have a
language.lproj folder for each language it supports. In addition to
providing localized versions of your application’s custom resources,
you can also localize your application icons and launch images by
placing files with the same name in your language-specific project
directories. Even if you provide localized versions, however, you
should always include a default version of these files at the
top-level of your application bundle. The default version is used in
situations where a specific localization is not available. For more
information about localized resources, see “Localized Resources in
Bundles.”

https://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html

Apple docs update/change frequently. This is the correct link at this point in time. Also, I haven't actually tried localizing the app icon/default images, but Apple says it works so why not :-)

This same question appears numerous times on stackoverflow.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文