Last active
December 30, 2015 05:48
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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