PHP exception messages should not pass through __() translation functions, as it doesn't make sense to translate those messages (and translators won't understand what the string means, unless they're also a programmer). For example, see this line:
throw new \exception(sprintf(__('Refused to unset overload property: `%1$s`.', 'comment-mail'), $property));
We need to go through the codebase and strip out the translation functions from these exceptions.
PHP exception messages should not pass through
__()
translation functions, as it doesn't make sense to translate those messages (and translators won't understand what the string means, unless they're also a programmer). For example, see this line:We need to go through the codebase and strip out the translation functions from these exceptions.