Skip to content

Instantly share code, notes, and snippets.

@axldyb
Created April 22, 2014 07:28
Show Gist options
  • Save axldyb/11168565 to your computer and use it in GitHub Desktop.
Save axldyb/11168565 to your computer and use it in GitHub Desktop.
// 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