Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localize iPhone App name in Xcode 4

Tags:

When I select the Info.plist file so that the App name can be localized and try to build the project, the build fails with an error saying that the Info.plist file cannot be found.

If I change the Info.plist file path to PROJECTNAME/en.lproj/Info.plist it builds, but the App's name is not localized; if I run on a Portugues iPhone it has the English name.

Why?

Thanks,

RL

like image 853
Rui Lopes Avatar asked Aug 02 '11 21:08

Rui Lopes


People also ask

Can you change the name of app in Xcode?

If you want to change the name, that will be displayed on your screen, right under your icon, in Xcode 4, go to Targets → Info → Bundle Display Name and change it to whatever you want.


2 Answers

Add InfoPlist.strings to your project and localize it. Put this in different languages:

"CFBundleDisplayName" = "App Name"; 
like image 163
akashivskyy Avatar answered Sep 28 '22 01:09

akashivskyy


Here is a solution I found tonight / localized app names / xcode 4.5:

  • First change the name of you app: Folder Supporting Files InfoPlist.strings (Portuguese)
  • By selecting InfoPlist.strings (Portuguese), its content will appear in the window right next to it.
  • Put that code inside:

    "CFBundleDisplayName" = "Title in Portuguese";  "CFBundleName" = "Title in Portuguese"; 
  • Then SAVE the file.

  • Go to the iOS simulator, and change language to anything but Portuguese. This will permit to reset the app icon.
  • Run your app.
  • Change your iOS language to Portuguese. You should then see the Portuguese name.
like image 21
SDrolet Avatar answered Sep 28 '22 02:09

SDrolet