Created
April 22, 2014 07:28
-
-
Save axldyb/11168565 to your computer and use it in GitHub Desktop.
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
// Overriding NSLocalizedString to use NSLocalizedStringFromTableInBundle instead | |
#define currentLanguageBundle [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:[[NSLocale preferredLanguages] objectAtIndex:0] ofType:@"lproj"]] | |
#ifdef NSLocalizedString | |
#undef NSLocalizedString | |
#endif | |
#define NSLocalizedString(key, comment) NSLocalizedStringFromTableInBundle(key, nil, currentLanguageBundle, comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment