Localize OS X bundle name

I have to create a .bundle bundle in OS X and I need to localize the name for varius region.

I try to use Info.Plis.strings using CFBundleName and CFBundleDisplayName but in finder my bundle still have the original english name.


How I can localize in Finder the name of a .bundle file that I create in xCode?


Thank for the help

I'm not sure that the Finder localizes the names of .bundle bundles, but I don't see why it wouldn't.


Be careful about the name of that file. It's not "Info.Plis.strings", it's InfoPlist.strings.


Also, show the exact values of CFBundleName, CFBundleDisplayName, and CFBundleDevelopmentRegion from the main Info.plist file, the name of your .lproj subfolder (e.g. pt_BR.lproj), the CFBundleDisplayName value from your InfoPlist.strings file, the name of your .bundle directory on disk (e.g. Foo.bundle), and the output of "defaults read -g AppleLocale" and "defaults read -g AppleLanguages".

>try to use Info.Plis.strings using CFBundleName and CFBundleDisplayName


Yes, it would help if you can you show that part of Info.plist, thanks.


Apple has said this about that in the past:


Before displaying a localized name for your bundle, the Finder compares the value of this key against the actual name of your bundle in the file system. If the two names match, the Finder proceeds to display the localized name from the appropriate InfoPlist.strings file of your bundle. If the names do not match, the Finder displays the file-system name.

Here the Info.plist and the InfoPlist.string localized in Italian language

The bundle created is named "Sections Views.bundle" and in Finder I alway see "Sections Views"

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>BuildMachineOSBuild</key>
	<string>22E261</string>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleDisplayName</key>
	<string>Sections Views</string>
	<key>CFBundleExecutable</key>
	<string>Sections Views</string>
	<key>CFBundleIdentifier</key>
	<string>it.iparos.SectionsViews</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>Sections Views</string>
	<key>CFBundlePackageType</key>
	<string>BNDL</string>
	<key>CFBundleShortVersionString</key>
	<string>10.0</string>
	<key>CFBundleSupportedPlatforms</key>
	<array>
		<string>MacOSX</string>
	</array>
	<key>CFBundleVersion</key>
	<string>1</string>
	<key>DTCompiler</key>
	<string>com.apple.compilers.llvm.clang.1_0</string>
	<key>DTPlatformBuild</key>
	<string></string>
	<key>DTPlatformName</key>
	<string>macosx</string>
	<key>DTPlatformVersion</key>
	<string>13.3</string>
	<key>DTSDKBuild</key>
	<string>22E245</string>
	<key>DTSDKName</key>
	<string>macosx13.3</string>
	<key>DTXcode</key>
	<string>1430</string>
	<key>DTXcodeBuild</key>
	<string>14E222b</string>
	<key>LSApplicationCategoryType</key>
	<string></string>
	<key>LSHasLocalizedDisplayName</key>
	<true/>
	<key>LSMinimumSystemVersion</key>
	<string>10.14.6</string>
</dict>
</plist>
  InfoPlist.strings
  IPaRos Prospetti

  Created by Paolo on 19/04/23.
  
*/
"CFBundleDisplayName" = "IPaRos Prospetti";
Localize OS X bundle name
 
 
Q