在iOS 4中本地化应用程序图标

在iOS 4中本地化应用程序图标

问题描述:

好的,这个让我发疯了......

Ok, this one is driving me crazy...

我的应用程序图标已经使用InfoPlist.strings本地化,具有特定于语言的CFBundleIconFile值(选择不同每种受支持的语言的图标。)

I've had my app icon localized using InfoPlist.strings with language-specific CFBundleIconFile values (selecting different icon for each of the supported languages).

从iOS 4开始,这种方法不再有效,而且我很难找到一种方法。

Since iOS 4 this method no longer works, and I'm struggling to find one that does.

Apple文档声明它应该足以将正确的Icon.png文件放在appropripate language.lproj文件夹中,但这似乎不适用于应用程序图标(其他一切都得到本地化就好了) )。

Apple docs state that it should be enough to put correct Icon.png files in the appropripate language.lproj folders, but this doesn't seem to work for app icons (everything else gets localized just fine).

我想知道是否有人发现任何有效的解决方案?

I wonder if someone has found any solution that works?

谢谢。

我没有尝试过不同语言的不同图标,但我尝试了不同语言的同一个应用程序的不同显示名称。所以,我不确定这个解决方案,但你可以尝试一下。这就是我做的:

I have not tried with different icons for different languages, but I have tried different display name for same app in different languages. So, I am not sure about this solution but you can give it a try. Here is what I did:


  1. 本地化我的InfoPlist.strings文件,使用我想要翻译我的应用程序的所有语言。

  2. 然后我在他们各自的语言中为每个代码添加了以下代码。
    英语:

  1. Localised my InfoPlist.strings file, in all the languages in which I wanted to translate my app.
  2. then I added following code to each of them in their respective languages. For English:

CFBundleDisplayName=england;
CFBundleName=英格兰;

"CFBundleDisplayName" = "england"; "CFBundleName" = "england";

法语:

"CFBundleDisplayName" = "france";

CFBundleName=france;

"CFBundleName" = "france";

您可以在此处尝试使用图标文件属性。
嗯,我仍然不确定..我希望这会奏效。

You can try using "icon files" property here. Well I am still not sure.. I hope this would work.