From 32f28fc380f3149ecbb5ddf433d82e378645b406 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 22 Jan 2021 11:48:31 -0800 Subject: html: more i18n template coverage, and less whitespace --- fatcat_scholar/templates/search_macros.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fatcat_scholar/templates/search_macros.html') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 1fbfde6..a63d4ea 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -108,7 +108,7 @@ {% else %} {% endif %} - {% set default_domain = "Publisher / doi.org" %} + {% set default_domain = _("Publisher / doi.org") %} {% if paper._obj and paper._obj.biblio %} {{ paper._obj.biblio.doi_link_domain(default_domain) }} {% else %} @@ -293,9 +293,7 @@ {% endif %} {% if paper.fulltext.file_mimetype %} - {% trans mimetype = ("" + paper.fulltext.file_mimetype + "")|safe %} - The file type is {{ mimetype }}. - {% endtrans %} + {% trans mimetype = ("" + paper.fulltext.file_mimetype + "")|safe %}The file type is {{ mimetype }}.{% endtrans %} {% endif %} {% if paper.fulltext.release_ident and (paper.biblio.release_ident != paper.fulltext.release_ident) %} -- cgit v1.2.3