Module messages

Module messages 

Source

Functions§

clear_output_interceptor
Clear the output interceptor.
get_message
Get a customized message for a key, if present.
intercept
Apply the interceptor to a given category/text if one is set.
load_messages_from_json
message_or_default
Return a customized message if present, otherwise the provided default.
reset_message
Remove a customized message for a key (falls back to default when used).
set_message
Set or override a message value for a given key.
set_output_interceptor
Set a global output interceptor. The interceptor receives a category and text and returns the (possibly transformed) text to print.