0

I have been using the Today Widget in my Swift program and have not had any issues, until I started using iOS 11 beta. Since then the Bundle Display Name is not getting localized. Within my Info.Plist I have:

<key>CFBundleDisplayName</key>
<string>NSLocalizedString(CFBundleDisplayName, nil)</string>

And in my InfoPlist.Strings files I have

"CFBundleDisplayName" = "Recent Chats";

If I display the widget on anything before iOS 11 beta, the String is localized properly, however when I use an iOS 11 beta device, the String NSLocalizedString(CFBundleDisplayName, nil) is displayed.

Does anyone know of a change in iOS 11 beta or bug that could be causing this issue?

Mike Walker
  • 2,944
  • 8
  • 30
  • 62

1 Answers1

0

Did you test on ios 11 simulator or real device? If you test on simulator, Please change simulator language from Settings>General>Language&Region in simulator.

Another interesting thing which i realize that if you use base.lproj as only English version and there is no such a English localization, when simulator language is changed to Enlish(U.S) or English(U.K), InfoPlist.Strings (Base) value is not shown.

Gokhan Turkben
  • 101
  • 1
  • 3
  • 9
  • I actually tested on a simulator and actual device. Changing the language did help in finding the issue. I had to put the default string in the `Info.plist` and not the `NSLocalizedString` text. – Mike Walker Sep 07 '17 at 14:37