Add ability to provide custom paths for locale files.

Refs #5129

I'll add tests once idea is approved.