Customize the default transient message after clicking a form button

Is there a way to customize the transient message, Action completed, after a form button (Cancel, Save, etc) is clicked?  For example, can we change the message to "Action canceled" after the Cancel button is clicked?

Thanks.

  Discussion posts and replies are publicly visible