IOS: launch image multiple language
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.
- In project summary pane in Xcode (talking about Xcode 4.2) add launch images for one or both orientations as normally.
- Launch images will appear in your project files list. Select one of them.
- 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).
- 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.
- 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.
Localize launch image just for english?
What I did was go into my actual project folder and put the english version of my launch image into a folder called "Launch Image (English)". Then I put the version for the rest of the languages in a folder called "Launch Image (International)" (both images have the exact same name). Then I went into Xcode and attached both folders into the resources section. Then I highlighted each image, clicked on localization in the Utility pane, and for the english version I selected english obviously, and for the other version I selected spanish (then I put a check mark in the check box of each other language in the Utility pane). Then it worked!
IOS: multiple language xcode 5 for launch image
SOLVED!!!!
Set in plist file "Launch image" in "Default"
and have two file for launch image in the project as
Default-Landscape@2x~ipad and Default-Landscape@~ipad
that you can localize as another file...
Is there a way to have a different Default.png (splash image) for different languages/locales in iOS?
Yes, it's possible. Pretty much the same way you localize all your resources.
You just need to provide a Default.png image and then enable all the languages you're interested in. The result is that you'll get a copy of the image for each language into the respective folders. Then edit (or overwrite) each image as you need. I have tested it right now and it works fine (on iOS 5 but I believe is the same for older versions). Here is a screenshot for easy reference:
EDIT:
Regarding any doubts about whether or not this is a good practice, this is straight from Apple's documentation:
In addition to including the launch images at the top level of your
bundle, you can also include localized versions of your launch images
in your app’s language-specific project subdirectories. For more
information on localizing resources in your app, see Table 6-2.
IOS: multiple language xcode 5 for launch image
SOLVED!!!!
Set in plist file "Launch image" in "Default"
and have two file for launch image in the project as
Default-Landscape@2x~ipad and Default-Landscape@~ipad
that you can localize as another file...
localized launchScreen.storyboard in XCode 8 are not responding to device language change
Unfortunatelly, you won't be able to achieve this. Launch screens are static and it's content is not a subject to localization.
Refering to the Apple human interface guidelines
Avoid including text on your launch screen. Because launch screens are static, any displayed text won’t be localized.
This piece of storyboard was intended to save you from creating a separate launch image for each screen resolution. iOS doesn't translate launch screen storyboards as it didn't give you a way to provide launch image for each of the supported languages.
However, you can find some workaround in this post.
Related Topics
Swiftui Datepicker Binding Optional Date, Valid Nil
Changing Placeholder Text Color with Swift
Objective-C 101 (Retain VS Assign) Nsstring
When How to Activate/Deactivate Layout Constraints
Correct Implementation of Parent/Child Nsmanagedobjectcontext
Module Compiled with Swift 4.2.1 Cannot Be Imported by the Swift 5.0 Compiler
How to Get Only Images in the Camera Roll Using Photos Framework
How to Convert a Nib-Based Project to a Storyboard-Based
Nscache Doesn't Work with All Images When Loading for the First Time
How to Debug "Terminated Due to Memory Error"
Once Jailbroken, Will iOS Apps Run with Root Privilege
Getting Time Elapsed in Objective-C
How to Display a Uipopoverview as a Annotation to the Map View? (iPad)
Xcode 11 Backward Compatibility: "Uiwindowscene Is Only Available in iOS 13 or Newer"