How to localize name of iOS application
Asked Answered
B

2

18

I was trying to localize my iOS App. And can't do this.

  1. In info.plist I have:

    Bundle Name = $(PRODUCT_NAME)
    Bundle Display Name = $(PRODUCT_NAME)
    
  2. Created a infoPlist.strings file

  3. Localized this file.

  4. In each localized file I wrote:

    "CFBundleDisplayName" = "My_App_Name";
    "CFBundleName" = "My_App_Name";
    
  5. Added a Bool to info.plist named "Application has localized display name" and changed it to YES.

I have changed the iPhone language for infoPlist.strings localizations, but this doesn't take effect. App name doesn't change from the name, that I wrote at the project creating.

Belle answered 8/1, 2015 at 19:59 Comment(2)
Did you delete the app before trying the new localization? I think the localized name will only be applied during install.Hansel
I check (before and after you say) with App deletion from iPhone and simulator. It's not a reason...Belle
B
16

The reason for bundle name doesn't localize was that I name localize file "infoPlist.strings". It should be "InfoPlist.strings" (I in upper case like in Info.plist).

Belle answered 15/1, 2015 at 21:1 Comment(0)
S
3

enter image description here

In my case I had to localize (English, deprecated). InfoPlist.strings(Base) was.. not used.

Adding "CFBundleName" = "My_App_Name"; in InfoPlist.string is enough.

Schwejda answered 20/4, 2020 at 9:33 Comment(1)
Also check that your InfoPlist.strings is marked as Target Membership of your Target.Parfait

© 2022 - 2024 — McMap. All rights reserved.