diff options
Diffstat (limited to 'src/jwebmail/render_mail.py')
-rw-r--r-- | src/jwebmail/render_mail.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jwebmail/render_mail.py b/src/jwebmail/render_mail.py index 0e5406c..804b200 100644 --- a/src/jwebmail/render_mail.py +++ b/src/jwebmail/render_mail.py @@ -143,7 +143,9 @@ def mime_render(maintype, subtype, content, path): renderer = MIMERenderSubs.get((maintype, subtype)) or MIMERenderSubs.get(maintype) if not renderer: - return f'<p class="jwm-body-unsupported">Unsupported MIME type of <code>{maintype}/{subtype}</code>.</p>\n' + typ = f"<code>{maintype}/{subtype}</code>" + msg = gettext("Unsupported MIME type of {mime_type}.").format(mime_type=typ) + return f'<p class="jwm-body-unsupported">{msg}</p>\n' return renderer(subtype, content, path) |