Merge pull request #4635 from MaxMorais/patch-2

Add localization in the on_submit event