The fixes we've used -- this time to the right branch

We have badgeos integrated to our Learndash-based LMS which is used in about 100 schools across Finland and these are the fixes we've used.

We needed to fix a multisite switching bug and added a bit of localization support. 

This time to the right branch. I hope I'm doing this right. :)