Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
355 views
in Technique[技术] by (71.8m points)

iphone - Localization of Default.png is not working

I wonder if anyone has encountered the same problem and how they solve it.

I want to localize Default.png so I do the following steps which from what I understand should be the correct way (please correct me if I'm wrong).

  1. Select Default.png in xcode
  2. Command-I to Get Info
  3. Click on Make File Localizable
  4. Go back to General Tab (why Apple, why?)
  5. Click on Add Localization
  6. Enter es for Spanish according to this:
  7. In finder I replace the Default.png in the es.lproj folder

I have tried in both the simulator and on an iPhone with changing the language between English and Spanish, but I only get the original file. Other localizations like app name and strings works just fine, but not this one...

I'm on xcode 3.2.3

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I'd thought I'd add the answer for localizing Launch.xib.

  1. Create InfoPlist.strings file. (File,New,Resource,Strings)

  2. Localize it and select your languages

  3. For e.g. the Spanish version, add your launch screen key and name for the Spanish version of your Launch screen

    "UILaunchStoryboardName" = "Launch_es";

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...