How Do You Use Variables In The Notifications When They Use Language Variables?

Hi, so I noticed the content of some language variables have variables that get assigned to it. For example, there's a language variable with this content:

The status of your order has been changed to [status].

How do I use this if I want to use fn_set_notification and a language variable with another variable inside it?


fn_set_notification('N', __('notice'), str_replace('[status]', $new_status, __('your_language_variable')));