如何本地化应用程序图标?

时间:2022-07-23 02:48:27

I am comfortable with localizing strings and images within the app. But I am having a lot of difficulty trying to localize the app icon for my supported languages (english and german).

我很乐意在应用程序中本地化字符串和图像。但是我在尝试本地化支持的语言(英语和德语)的应用程序图标时遇到了很多困难。

Is this even possible? According to the Apple documentation, you can:

这有可能吗?根据Apple文档,您可以:

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.”

iOS应用程序应该是国际化的,并且为它支持的每种语言都有一个language.lproj文件夹。除了提供应用程序自定义资源的本地化版本之外,您还可以通过在特定于语言的项目目录中放置具有相同名称的文件来本地化应用程序图标并启动映像。但是,即使您提供本地化版本,也应始终在应用程序包的顶层包含这些文件的默认版本。默认版本用于特定本地化不可用的情况。有关本地化资源的更多信息,请参阅“Bundles中的本地化资源”。

I have tried to do this with no luck. There doesn't seem to be any helpful resources?

我试图这样做没有运气。似乎没有任何有用的资源?

Other things I've tried:

我试过的其他事情:

Localized App Icons with Retina Display for iOS

适用于iOS的Retina显示的本地化应用程序图标

https://iphonedevsdk.vanillaforums.com/forum/iphone-sdk-development/77660-i-have-problem-localizing-application-icon.html

Has anyone successfully achieved a localized app icon?

有没有人成功实现过本地化的应用图标?

2 个解决方案

#1


19  

Since iOS 4.0, this simply doesn't seem to be possible anymore. As of 2015, the documentation has been updated and now only states that Launch Images can be localized (but does not mention App Icons anymore).

从iOS 4.0开始,这似乎不再可能了。截至2015年,文档已更新,现在只声明启动图像可以本地化(但不再提及应用程序图标)。

The fact that this isn't working has been confirmed by an an Apple employee on the devforums (login required) in 2010: https://devforums.apple.com/message/330960

2010年,一位Apple员工在devforums(需要登录)上证实了这一点无效的事实:https://devforums.apple.com/message/330960

Bugreports have been submitted for several years, but nothing has changed. I suppose Apple wants you to use the same icon for your app all over the world – or create separate apps for specific markets.

Bugreports已经提交了几年,但没有任何改变。我想Apple希望您在全球范围内为您的应用程序使用相同的图标 - 或者为特定市场创建单独的应用程序。

#2


0  

  1. Move an icon from xcassets to a folder in your project;
  2. 将图标从xcassets移动到项目中的文件夹;

  3. Select the icon in the folder;
  4. 选择文件夹中的图标;

  5. You will see in the Inspector "Localize" button;
  6. 您将在Inspector中看到“Localize”按钮;

  7. Select Localize and choose a language.
  8. 选择“本地化”并选择一种语言。

It works for me! 如何本地化应用程序图标?

这个对我有用!

#1


19  

Since iOS 4.0, this simply doesn't seem to be possible anymore. As of 2015, the documentation has been updated and now only states that Launch Images can be localized (but does not mention App Icons anymore).

从iOS 4.0开始,这似乎不再可能了。截至2015年,文档已更新,现在只声明启动图像可以本地化(但不再提及应用程序图标)。

The fact that this isn't working has been confirmed by an an Apple employee on the devforums (login required) in 2010: https://devforums.apple.com/message/330960

2010年,一位Apple员工在devforums(需要登录)上证实了这一点无效的事实:https://devforums.apple.com/message/330960

Bugreports have been submitted for several years, but nothing has changed. I suppose Apple wants you to use the same icon for your app all over the world – or create separate apps for specific markets.

Bugreports已经提交了几年,但没有任何改变。我想Apple希望您在全球范围内为您的应用程序使用相同的图标 - 或者为特定市场创建单独的应用程序。

#2


0  

  1. Move an icon from xcassets to a folder in your project;
  2. 将图标从xcassets移动到项目中的文件夹;

  3. Select the icon in the folder;
  4. 选择文件夹中的图标;

  5. You will see in the Inspector "Localize" button;
  6. 您将在Inspector中看到“Localize”按钮;

  7. Select Localize and choose a language.
  8. 选择“本地化”并选择一种语言。

It works for me! 如何本地化应用程序图标?

这个对我有用!