CFCopyLocalizedString
Searches the default strings file Localizable.strings for the string associated with the specified key.
Declaration
#define CFCopyLocalizedString(key, comment)Parameters
- key:
The development language version of the string. This string is used as the search key to locate the localized version of the string.
- comment:
A comment to provide the translators with contextual information necessary for proper translation.
Return Value
The localized version of the requested string. Returns key if no value corresponding to key is found. Ownership follows the The Create Rule.
Discussion
This is a macro variant of CFBundleCopyLocalizedString(_:_:_:_:) for use with the genstrings tool.
See Also
Managing Localizations
CFBundleCopyBundleLocalizations(_:)CFBundleCopyLocalizedString(_:_:_:_:)CFBundleCopyLocalizationsForPreferences(_:_:)CFBundleCopyLocalizationsForURL(_:)CFBundleCopyPreferredLocalizationsFromArray(_:)CFCopyLocalizedStringFromTableCFCopyLocalizedStringFromTableInBundleCFCopyLocalizedStringWithDefaultValue