{% macro render_attachment_info(obj) -%} {% if not obj.attachment_count %} {# i18n: No attachments #} {% trans 'Attachments' %}None{% endtrans %} {% else %} {% trans count=obj.attachment_count -%} {{ count }} file {%- pluralize -%} {{ count }} files {%- endtrans %} {% endif %} {%- endmacro %}