---
title: CFCopyLocalizedString
framework: corefoundation
role: symbol
role_heading: Macro
path: corefoundation/cfcopylocalizedstring
---

# CFCopyLocalizedString

Searches the default strings file Localizable.strings for the string associated with the specified key.

## Declaration

```occ
#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

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

Discussion This is a macro variant of CFBundleCopyLocalizedString(_:_:_:_:) for use with the genstrings tool.

## See Also

### Managing Localizations

- [CFBundleCopyBundleLocalizations(_:)](corefoundation/cfbundlecopybundlelocalizations(_:).md)
- [CFBundleCopyLocalizedString(_:_:_:_:)](corefoundation/cfbundlecopylocalizedstring(_:_:_:_:).md)
- [CFBundleCopyLocalizationsForPreferences(_:_:)](corefoundation/cfbundlecopylocalizationsforpreferences(_:_:).md)
- [CFBundleCopyLocalizationsForURL(_:)](corefoundation/cfbundlecopylocalizationsforurl(_:).md)
- [CFBundleCopyPreferredLocalizationsFromArray(_:)](corefoundation/cfbundlecopypreferredlocalizationsfromarray(_:).md)
- [CFCopyLocalizedStringFromTable](corefoundation/cfcopylocalizedstringfromtable.md)
- [CFCopyLocalizedStringFromTableInBundle](corefoundation/cfcopylocalizedstringfromtableinbundle.md)
- [CFCopyLocalizedStringWithDefaultValue](corefoundation/cfcopylocalizedstringwithdefaultvalue.md)
