Fix profile localization (issue #4599)