多语言iOS应用程序中的启动画面

时间:2022-09-10 20:25:05

I am working on an app which is in 12 languages. Each language will have different splash screen. I have tried almost all possible ways to add splash screen images (Default.png) and it is working fine in all the cases. But, when I try to upload it on App store, it is giving me below error(attaching screenshot):-

多语言iOS应用程序中的启动画面

After that, I tried other possible solutions, but none of them worked for me. The main problem is showing in below image:-

多语言iOS应用程序中的启动画面

When I try to select any image from browse pop-up, it won't display in above list and displays same message ("No image specified"). I have added all the images in my bundle.

多语言iOS应用程序中的启动画面
Could anyone please guide me where I am doing mistake?
Note:- I am using Xcode 5.1.

我正在开发一个12种语言的应用程序。每种语言都有不同的启动画面。我已经尝试了几乎所有可能的方法来添加启动画面图像(Default.png),它在所有情况下都运行良好。但是,当我尝试在App Store上传它时,它给我下面的错误(附加屏幕截图): - 之后,我尝试了其他可能的解决方案,但它们都没有为我工作。主要问题如下图所示: - 当我尝试从浏览弹出窗口中选择任何图像时,它将不会显示在上面的列表中并显示相同的消息(“未指定图像”)。我已经在我的包中添加了所有图像。谁能指导我在哪里做错了?注意: - 我正在使用Xcode 5.1。

4 个解决方案

#1


4  

Here's how to localize your Launch.xib screen:

以下是本地化Launch.xib屏幕的方法:

  1. Create InfoPlist.strings file. (File,New,Resource,Strings)
  2. 创建InfoPlist.strings文件。 (文件,新建,资源,字符串)
  3. Localize it and select your languages
  4. 本地化并选择您的语言
  5. For e.g. the Spanish version, add your launch screen key and name for the Spanish version of your Launch screen

    对于例如西班牙语版本,为启动屏幕的西班牙语版本添加启动屏幕键和名称

    "UILaunchStoryboardName" = "Launch_es";

    “UILaunchStoryboardName”=“Launch_es”;

  6. Copy your existing Launch.xib to Launch_es.xib, and change the text and/or images to the Spanish translations or Spanish-named images.

    将现有的Launch.xib复制到Launch_es.xib,并将文本和/或图像更改为西班牙语翻译或西班牙语命名的图像。

#2


3  

This addresses the problem. Is there a way to have a different Default.png (splash image) for different languages/locales in iOS?

这解决了这个问题。有没有办法在iOS中为不同的语言/区域设置使用不同的Default.png(启动图像)?

Pretty much put different images in each localization folder.

几乎在每个本地化文件夹中放置不同的图像。

#3


0  

I had the same error. I fixed it by renaming all the splash images (eg: iphone_5_en, iphone_5_it, etc...) and thent I localized the infoPlist.strings file. In the infoPlist.strings file i changed the value of the splash image keys UILaunchImageFile and UILaunchImageFile~ipad.

我有同样的错误。我通过重命名所有的初始图像(例如:iphone_5_en,iphone_5_it等等)修复了它,并且我没有本地化infoPlist.strings文件。在infoPlist.strings文件中,我更改了启动图像键UILaunchImageFile和UILaunchImageFile~ipad的值。

#4


0  

In some cases when you want to localize your app for one of the languages, you could use localized InfoPlist.strings. Note the name is case sensitive!

在某些情况下,当您想要为其中一种语言本地化您的应用时,您可以使用本地化的InfoPlist.strings。请注意,名称区分大小写!

多语言iOS应用程序中的启动画面

You could create this file InfoPlist.strings -> localize -> change languages.

您可以创建此文件InfoPlist.strings - > localize - >更改语言。

Inside of this file for each localization you could add next Localizable properties:

在每个本地化的文件内,您可以添加下一个可本地化的属性:

"CFBundleDisplayName" = "AppName";    
"CFBundleName" = "AppName";  
"UILaunchStoryboardName" = "Launch Screen";

localized:

本地化:

"CFBundleDisplayName" = "arAppName";      
"CFBundleName" = "arAppName";   
"UILaunchStoryboardName" = "Launch Screen_ar";

When the app launches, this data will be used for the launch screen and app name properties.

应用程序启动时,此数据将用于启动屏幕和应用程序名称属性。

"UILaunchStoryboardName" = "Launch Screen_arabic";

After that, you can create arLaunchScreen, enLaunchScreen, etc.

之后,您可以创建arLaunchScreen,enLaunchScreen等。

#1


4  

Here's how to localize your Launch.xib screen:

以下是本地化Launch.xib屏幕的方法:

  1. Create InfoPlist.strings file. (File,New,Resource,Strings)
  2. 创建InfoPlist.strings文件。 (文件,新建,资源,字符串)
  3. Localize it and select your languages
  4. 本地化并选择您的语言
  5. For e.g. the Spanish version, add your launch screen key and name for the Spanish version of your Launch screen

    对于例如西班牙语版本,为启动屏幕的西班牙语版本添加启动屏幕键和名称

    "UILaunchStoryboardName" = "Launch_es";

    “UILaunchStoryboardName”=“Launch_es”;

  6. Copy your existing Launch.xib to Launch_es.xib, and change the text and/or images to the Spanish translations or Spanish-named images.

    将现有的Launch.xib复制到Launch_es.xib,并将文本和/或图像更改为西班牙语翻译或西班牙语命名的图像。

#2


3  

This addresses the problem. Is there a way to have a different Default.png (splash image) for different languages/locales in iOS?

这解决了这个问题。有没有办法在iOS中为不同的语言/区域设置使用不同的Default.png(启动图像)?

Pretty much put different images in each localization folder.

几乎在每个本地化文件夹中放置不同的图像。

#3


0  

I had the same error. I fixed it by renaming all the splash images (eg: iphone_5_en, iphone_5_it, etc...) and thent I localized the infoPlist.strings file. In the infoPlist.strings file i changed the value of the splash image keys UILaunchImageFile and UILaunchImageFile~ipad.

我有同样的错误。我通过重命名所有的初始图像(例如:iphone_5_en,iphone_5_it等等)修复了它,并且我没有本地化infoPlist.strings文件。在infoPlist.strings文件中,我更改了启动图像键UILaunchImageFile和UILaunchImageFile~ipad的值。

#4


0  

In some cases when you want to localize your app for one of the languages, you could use localized InfoPlist.strings. Note the name is case sensitive!

在某些情况下,当您想要为其中一种语言本地化您的应用时,您可以使用本地化的InfoPlist.strings。请注意,名称区分大小写!

多语言iOS应用程序中的启动画面

You could create this file InfoPlist.strings -> localize -> change languages.

您可以创建此文件InfoPlist.strings - > localize - >更改语言。

Inside of this file for each localization you could add next Localizable properties:

在每个本地化的文件内,您可以添加下一个可本地化的属性:

"CFBundleDisplayName" = "AppName";    
"CFBundleName" = "AppName";  
"UILaunchStoryboardName" = "Launch Screen";

localized:

本地化:

"CFBundleDisplayName" = "arAppName";      
"CFBundleName" = "arAppName";   
"UILaunchStoryboardName" = "Launch Screen_ar";

When the app launches, this data will be used for the launch screen and app name properties.

应用程序启动时,此数据将用于启动屏幕和应用程序名称属性。

"UILaunchStoryboardName" = "Launch Screen_arabic";

After that, you can create arLaunchScreen, enLaunchScreen, etc.

之后,您可以创建arLaunchScreen,enLaunchScreen等。