Skip to content

Instantly share code, notes, and snippets.

@QuatschSalat
Last active December 30, 2015 05:48
Show Gist options
  • Save QuatschSalat/7784565 to your computer and use it in GitHub Desktop.
Save QuatschSalat/7784565 to your computer and use it in GitHub Desktop.
This small gist helps you to access localized strings. Instead of typing a long function name, you can define your preferred (shorter or longer) one.
// We use a shorter function to access localized strings
#define AMLocalized(key) NSLocalizedString(key, nil)
// Or even shorter
#define _(key) NSLocalizedString(key, nil)
// You can use every allowed function name you want
#define Franz(key) NSLocalizedString(key, nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment