def render_message_to_string(subject_template, message_template, param_dict, language=None):
 language = (language or settings.LANGUAGE_CODE)
 with override_language(language):
  return get_subject_and_message(subject_template, message_template, param_dict)

def render_message_to_string ( subject_template , message_template , param_dict , language = None ) : language = ( language or settings . LANGUAGE_CODE ) with override_language ( language ) : return get_subject_and_message ( subject_template , message_template , param_dict )
render a mail subject and message templates using the parameters from param_dict and the given language .