Clean up/update translation code and made language selectable in the settings dialog