CFBundleLocalizations changes the orientation

I`m about to release me book app which is in both English and Norwegian, and I want to have two different titles under the icon. to make this possible I use the CFBundleLocalizations in build.settings, but when I add the CFBundleLocalizations the orientation changes from landscape to portrait even if I have the orientation command set to landscape in the build .settings

Here is my build.setting:

-- build.settings settings = { plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.analytics.flurry"] = { -- required publisherId = "com.coronalabs", }, }, android = { usesPermissions = { "android.permission.RECORD\_AUDIO", "android.permission.WRITE\_EXTERNAL\_STORAGE", }, }, orientation = { default = "landscapeRight", supported = { "landscapeLeft", "landscapeRight" } }, iphone = { plist= { -- CFBundleLocalizations = { "en", "no", } UIApplicationExitsOnSuspend = false, UIHiddenStatusBar="YES", CFBundleIconFile="Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-120.png", "Icon-60.png", "Icon-60@2x.png", }, ["URL types"] = { item = { ["URL Schemes"] = { ["Item 0"] = "fbXXXXXXXX" }, --replace XXXXXXXXXX with your Facebook App ID } } }, }, }

If I remove the “–” in front of the CFBundleLocalizations, the orientation changes

All help will be much appreciated as this is about the only thing remaining before I can release the app.

The only thing I see is that there’s a missing “,” at the end of that line.

Should be:

CFBundleLocalizations = { “en”, “no” },

Not sure if that’s the reason for the orientation change though…

Thank you so much for your reply Ingemar, I`ll look into your suggestion the minute I get home from my day job :slight_smile:

I can confirm that the absence of the “,” causes an orientation change.

I took one of my projects that has localization and removed the “,” from the end of the CFBundleLocalizations line and my app changed orientation as you’ve described.

Now I’m confident that adding the “,” at the end of your CFBundleLocalizations line will fix the problem.

The only thing I see is that there’s a missing “,” at the end of that line.

Should be:

CFBundleLocalizations = { “en”, “no” },

Not sure if that’s the reason for the orientation change though…

Thank you so much for your reply Ingemar, I`ll look into your suggestion the minute I get home from my day job :slight_smile:

I can confirm that the absence of the “,” causes an orientation change.

I took one of my projects that has localization and removed the “,” from the end of the CFBundleLocalizations line and my app changed orientation as you’ve described.

Now I’m confident that adding the “,” at the end of your CFBundleLocalizations line will fix the problem.