Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localizing CFBundleTypeName strings




Le 30 mai 08 à 20:09, Eric Gorr a écrit :

In my info.plist file, I have an array of 20+ CFBundleDocumentTypes.

For each of these, there is a CFBundleTypeName.

I would like to be able to localize this string.

The document at:

http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/ConfigFiles.html

or

http://tinyurl.com/5drafu

states:

-----
If your information property list file contains values that might be displayed to the user, you should provide localized values for those properties. To deliver localized values, you create an InfoPlist.strings file in each language-specific resource directory of your bundle. Inside this strings file, you specify the key for each property you wish to localize along with the appropriate translated value.
-----


and uses CFBundleDisplayName and NSHumanReadableCopyright as examples.

However, again, there multiple CFBundleTypeName strings that I need to localize. It is unclear to me how I can refer to a specific CFBundleTypeName inside of a particular CFBundleDocumentType.

Anyone know if this is possible? Assuming it is possible, how does one do it?

Thank you.


In your main Info.plist::
CFBundleTypeName: MyBundleType

In your InfoPlist.strings file:

MyBundleType = "Localized Type";


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Localizing CFBundleTypeName strings (From: Eric Gorr <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.