Fix issue with creating empty messages.pot file, and fix issue with locale.