leverdeterre / LanguagesManager

An easy way to control manually the language in your application
MIT License
62 stars 11 forks source link

Current lang after LanguagesManagerLanguageDidChangeNotification #8

Open lanserxt opened 9 years ago

lanserxt commented 9 years ago

Looks like LanguagesManagerLanguageDidChangeNotification notification is triggered before the _currentLanguage is set on - (BOOL)setLanguage:(NSString)language forLogin:(NSString )login

self.bundle = [NSBundle bundleWithPath:path]; //Triggering - (void)setBundle:(NSBundle *)bundle
self.currentLanguage = language;
leverdeterre commented 9 years ago

I see this point, have you find a way to fix this ?

lanserxt commented 9 years ago

Locally have switched those lines to look like: self.currentLanguage = language; self.bundle = [NSBundle bundleWithPath:path];

Working...