Fix version access while refreshing translations
Relax locale code validation to just a format check

fixes #6930