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
690 views
in Technique[技术] by (71.8m points)

localization - How to localize bundle display name in iPhone app?

How can I localize bundle display name of an iPhone app? The name displayed in iPhone main screen under app icon. I wish a single binary bundle package which will be displayed multilingually.

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

Here's some instructions:

  • Create a new empty file called InfoPlist.strings
  • Open up the Navigator (cmd-opt-0) and select the first pane
  • Click the plus for a localization
  • Xcode (4.3) goes a bit funny and deselects your file. It's placed it into a localization folder (probably called en.lproj in the item's original folder. Re-select it in the Project Navigator.
  • Your file now has (probably) English in the Localization list. Click the plus button to add another language.

It's generally good to start with all the items you want to localize in the same folder, that way when they get localized, Xcode doesn't create a whole bunch of en.lproj and ja.lproj files all over your project. Call it something like "Localized Resources".

You can localize the app name now by adding the localized name to each file like this (for the French localized file):

"CFBundleDisplayName" = "Bonjour";

Localize Localize Two


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

...