Refactored loading of text domain