Fix errors.

Fixed problem with locale.js as well as small typo/problem in translation.