![]() |
CFBundleCopyLocalizedString | Header: CFBundle.h |
Obtains a localized string from a bundle's strings file.
CFStringRef CFBundleCopyLocalizedString ( CFBundleRef bundle, CFStringRef key, CFStringRef value, CFStringRef tableName );
A reference value of type CFBundleRef indicating the bundle whose strings file you wish to access.
A reference value of type CFStringRef containg the key for the localized string you wish to retrieve. This key will be used to look up the localized string in the strings file. Typically the key is identical to the value of the localized string in the development language.
A reference value of type CFStringRef containg a comment which might assist the translator. As used by the localized string macros and the genstrings tool, this value becomes an annotation in the generated strings file.
A reference value of type CFStringRef containg the name of the strings file you wish to search.
A value of type CFStringRef which contains the localized string.
This is the base function from which the other localized string macros are derived. In general you should not use this function because the "genstrings" development tool only recognizes the macro version of this call when generating strings files. See the CFBundle conceptual documentation for details on how to use these macros.