I am creating a macOS app compiled for 10.12. My computer is in english, my region is Portugal.
The app is created in 3 languages: english (the development one, default), portuguese brazil and portuguese portugal.
I want to localize the app name.
I have created a InfoPlist.strings
file with the following keys for english:
"CFBundleDisplayName" = "My App";
"CFBundleName" = "My App";
"CFBundleExecutable" = "My App";
and for portuguese br and pt
"CFBundleDisplayName" = "Minha App";
"CFBundleName" = "Minha App";
"CFBundleExecutable" = "Minha App";
I have added these keys to the Info.plist
CFBundleDisplayName = $(PRODUCT_NAME)
CFBundleExecutable = $(PRODUCT_NAME)
CFBundleName = $(PRODUCT_NAME)
CFBundleIdentifier = $(PRODUCT_BUNDLE_IDENTIFIER)
LSHasLocalizedDisplayName = YES
inside Building Settings I have
Product Name = My App
I go to Product > Scheme > Edit Scheme > Run > Options and I set Application Language
to english and run the app.
Xcode generates an app with the name My App.app
that is correct and expected.
I return to the options and set the language to Portuguese and Xcode continues to generate an app called My App.app
instead of Minha App.app
.
How do I force Xcode to localize the app name shown in Finder.