Localization CFBundleDisplayName not working on device

I tried to localize the application name using CFBundleDisplayName.

I made localized InfoPlist.strings in two different languages.
One line file says:
  CFBundleDisplayName = "x11111" and another:
  CFBundleDisplayName = "y22222"

And in the info.plist file, I added the property "Application requires iPhone environment" and set the boolean to YES. And in info.plist, "Display Name Bundle", I used "x11111".

Localization worked fine on the simulator, but when tested on the device, it did not work. On the device, the name that I used for "Display Name Bundle" in info.plist can only be displayed.

By the way, I'm using cocos2d for a project.

Anything I missed or did wrong?

+5
source share
1 answer

If your localization files were provided to you and you need to add them, be sure to add them correctly based on each file. In Xcode, when adding files, pay attention to how you add them. Here's what they should look like in the Xcode Project Navigator.

I added them by selecting all the folders that did not add them correctly for the project.

enter image description here

0
source

All Articles