Do not mess up template source for locale. Refs #378
Merge pull request #381 from kenn/locale_source_fix

Fix template source for locale