add missing $locale definition and check against resetting the current information when translate is called with the already set locale
closes #371