From 3ba3839ecd7924dc2f25295754d7a257c2542b23 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 May 2020 17:54:59 -0700 Subject: better translation marking; add some basic de and zh Current translations are just from Google Translate --- fatcat_scholar/templates/search_macros.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 b1ccc69..ec5a73c 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -33,7 +33,7 @@ {% elif paper.biblio.release_type in ("book", "chapter", "dataset") %} [{{ _(paper.biblio.release_type) }}] {% elif not paper.biblio.release_type %} - [media?] + [{{ _("media?") }}] {% else %} [{{ _(paper.biblio.release_type) }}] {% endif %} @@ -89,7 +89,7 @@ {% elif paper.biblio.release_stage and paper.biblio.release_stage != "published" %} [{{ paper.biblio.release_stage }}] {% elif not paper.biblio.release_stage %} - [unpublished?] + [{{ _("unpublished?") }}] {% endif %} {# ### ABSTRACT / QUERY HIGHLIGHT #} @@ -132,7 +132,7 @@
{# colors to use: olive, brown, grey, pink, red, etc #} {% for tag in paper.tags %} - {{ tag }} + {{ _(tag) }} {% endfor %} {# TODO: remove doc for ES 7.x-style lack of type #} @@ -176,7 +176,7 @@ {% endmacro %} {% macro query_option(options, selected) -%} -{{ options.label }} +{{ _(options.label) }}