aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-22 11:48:31 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-22 11:48:31 -0800
commit32f28fc380f3149ecbb5ddf433d82e378645b406 (patch)
tree0853f73928901da91a778c7fdc928c56a6ceef6f /fatcat_scholar
parentfd595a2ba6037721797713db891ceb4431a2735d (diff)
downloadfatcat-scholar-32f28fc380f3149ecbb5ddf433d82e378645b406.tar.gz
fatcat-scholar-32f28fc380f3149ecbb5ddf433d82e378645b406.zip
html: more i18n template coverage, and less whitespace
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/home.html3
-rw-r--r--fatcat_scholar/templates/search_macros.html6
2 files changed, 3 insertions, 6 deletions
diff --git a/fatcat_scholar/templates/home.html b/fatcat_scholar/templates/home.html
index 9d7b59b..999b043 100644
--- a/fatcat_scholar/templates/home.html
+++ b/fatcat_scholar/templates/home.html
@@ -33,8 +33,7 @@
<div class="ui centered grid">
<div class="ui sixteen wide mobile twelve wide computer column" style="text-align: center; font-weight: bold;">
<a name="alphanotice" href="{{ lang_prefix }}/help#bugs" style="color: black;">
- {% trans %}This service is in "alpha". It has several bugs, experiences
- downtime, and has not been officially announced.{% endtrans %}
+ {% trans %}This service is in "alpha". It has several bugs, experiences downtime, and has not been officially announced.{% endtrans %}
</a>
</div>
</div>
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 %}
<i class="external alternate icon"></i>
{% 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 = ("<code>" + paper.fulltext.file_mimetype + "</code>")|safe %}
- The file type is {{ mimetype }}.
- {% endtrans %}
+ {% trans mimetype = ("<code>" + paper.fulltext.file_mimetype + "</code>")|safe %}The file type is {{ mimetype }}.{% endtrans %}
{% endif %}
{% if paper.fulltext.release_ident and (paper.biblio.release_ident != paper.fulltext.release_ident) %}