Localization fixes

Finally got around to share our fixes upstream. 

Included are a fix to loading the textdomain and added localization support.