Localize name of .bundle bundle

I create an external module for a program that need externals ad .bundle files. I create my Xcode project and set the name of target to MyExternal In info setting I set:

Bundle name -> $(PRODUCT_NAME)
Bundle display name -> $(PRODUCT_NAME)
Application has localized display name -> YES

Then I add InfoPlist strings for Italian and English language and I set for Italian language this:

"CFBundleName" = "Prova";
"CFBundleDisplayName" = "Prova";

Building the project the name of the created bundle remain MyExternal.bundle

I try the same step for an App and I see that doing the same setting the app name are localized in Italian language correctly.

It is not possible to localize a name of a .bundle file?

Is there a way to obtain a localization of the name of a .bundle file?

Building the project the name of the created bundle remain MyExternal.bundle

You’re talking about the name being displayed in the Finder, right?

Is there a way to obtain a localization of the name of a .bundle file?

Programatically, I’d do this by creating an NSBundle from its URL and then getting localizedInfoDictionary.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Can you explain how I can do that? What mean creating an NSBundle form its URL? How to get the LocalizedInfoDictionary?

Thanks

What mean creating an NSBundle form its URL?

Calling the +[NSBundle bundleWithURL:] class method.

How to get the LocalizedInfoDictionary?

Using the localizedInfoDictionary property.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

So I build my External.bundle in xCode and I have in finder the file named MyExternal.bundle and I see in finder the name “MyExternal” and need that in finder in OSX in Italian Language to see the name “Il mio modulo esterno” what kind of programmatelo task I need to do? What I what is to see the name of the bundle localized in finder window. If I create an .app I can set xCode to localize finder name but for bundle I can’t

If the Finder is not picking up the localised name of the bundle in the same way it would for an app, I don’t think there’s a way to achieve this result.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Localize name of .bundle bundle
 
 
Q