8

I have a multiple language app. My problem is launch image, what's the way to use a launch image according to language of device. Is there something in info.plist file?

CopsOnRoad
  • 237,138
  • 77
  • 654
  • 440
cyclingIsBetter
  • 17,447
  • 50
  • 156
  • 241

2 Answers2

13

The solution is to localize Default.png like any other resource in your project. Select Default.png from project list in Xcode, on the right pane find "Localization" and simply add new localizations. After that you can change the files to be different for all localizations.

  1. In project summary pane in Xcode (talking about Xcode 4.2) add launch images for one or both orientations as normally.
  2. Launch images will appear in your project files list. Select one of them.
  3. Expand Utilities (the pane on the right), you will see following groups: "Indentity and Type", "Image Properties", "Localization", ... . In localization group click "+" button. You can now add new localization (for example Spanish).
  4. After that on the left of your file in project list you will see an expand button. Click the button to show files for all localizations.
  5. Your localized Default.png files will appear in .lproj directories in project directory. You can for example manually swipe the file in en.lproj to change english launch image.
Artur Ozierański
  • 1,177
  • 7
  • 18
  • can you explain how to do it? – cyclingIsBetter Feb 23 '12 at 10:56
  • it's all ok but in point 4, now if i expand file I see three file (example english, spanish, frech); but these three file are all identical; I want that every file is different, and it change according to language; then I want to change file for english and franch (for example) – cyclingIsBetter Feb 23 '12 at 11:17
  • right click on one of that files, choose "Show in finder", you will go to .lproj directory. Now you can change your file. After that clean your build, because Xcode may not catch the changes. – Artur Ozierański Feb 23 '12 at 11:21
  • I followed all the steps but my translated images are not being used. Even after I clean the build... – Code Monkey May 14 '13 at 08:21
  • 2
    This approach works great while developing and testing the app using Xcode. When uploading binary to itunesconnect.com it goes from "upload received" to "invalid binary" in exactly 2 minutes. And then I receive an email "iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. ..." explaining that I need to provide launch images in a correct way like I haven't specified them at all. – AndroC Sep 06 '13 at 15:01
  • @ancajic I have the same symptoms: works perfectly on both simulators and test devices, however after submission I get `iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5` which is very misleading to say the least. Have you find a solution? – Benjamin Toueg Oct 06 '14 at 12:16
1

Apple's HIG document advises that developers use launch images that don't have any text whatsoever. Take the contacts app for instance, it simply displays an empty UI so the user believes the app to be launching quicker.

So I suggest following this approach and removing any traces of language from the launch images.

Tom Walters
  • 15,366
  • 7
  • 57
  • 74
  • But if you have an app with totally custom interface, and for example splash screen with app logo and name, it is good for launch image to look like a first frame of splash screen. Then if you are localizing your app name for example, you could also localize Default.png in the same way like any other resource. – Artur Ozierański Feb 23 '12 at 10:45
  • I agree it seems odd that this isn't an option, but once again Apple suggests not having a splash screen. Even if you have a custom UI, just remove all the text and use that as your launch image. – Tom Walters Feb 23 '12 at 10:47
  • 1
    I understand Apple suggestions, and always try to follow that as much as it is possible, but some times I'm making some exceptions like that. My company has several apps in store with this kind of practices and it was not any trouble with submission to App Store. – Artur Ozierański Feb 23 '12 at 10:52
  • Ok after some Googling it looks like you may actually be able to do this, check out the documentation here: http://developer.apple.com/library/ios/DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html – Tom Walters Feb 23 '12 at 10:52