Skip to content

Instantly share code, notes, and snippets.

@QuatschSalat
Last active December 30, 2015 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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