diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-05-21 17:54:59 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-05-21 17:55:21 -0700 |
commit | 3ba3839ecd7924dc2f25295754d7a257c2542b23 (patch) | |
tree | d7246c44d8cf192da65eb9a14a2006bbed66feee /fatcat_scholar/templates/search_macros.html | |
parent | d12d03bd241d93ffc624747f9f60fdf7fbe18f14 (diff) | |
download | fatcat-scholar-3ba3839ecd7924dc2f25295754d7a257c2542b23.tar.gz fatcat-scholar-3ba3839ecd7924dc2f25295754d7a257c2542b23.zip |
better translation marking; add some basic de and zh
Current translations are just from Google Translate
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 10 |
1 files changed, 5 insertions, 5 deletions
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 %} - <span style="color: red;">[media?]</span> + <span style="color: red;">[{{ _("media?") }}]</span> {% else %} [{{ _(paper.biblio.release_type) }}] {% endif %} @@ -89,7 +89,7 @@ {% elif paper.biblio.release_stage and paper.biblio.release_stage != "published" %} <b style="color: red;"><code>[{{ paper.biblio.release_stage }}]</code></b> {% elif not paper.biblio.release_stage %} - <b style="color: red;"><code>[unpublished?]</code></b> + <b style="color: red;"><code>[{{ _("unpublished?") }}]</code></b> {% endif %} {# ### ABSTRACT / QUERY HIGHLIGHT #} @@ -132,7 +132,7 @@ <div style="margin-top: 0.2em;"> {# colors to use: olive, brown, grey, pink, red, etc #} {% for tag in paper.tags %} - <span class="ui label small">{{ tag }}</span> + <span class="ui label small">{{ _(tag) }}</span> {% endfor %} {# TODO: remove doc for ES 7.x-style lack of type #} <a href="{{ settings.ELASTICSEARCH_BACKEND }}/_doc/{{ settings.ELASTICSEARCH_FULLTEXT_INDEX }}/{{ paper.key }}"> @@ -176,7 +176,7 @@ {% endmacro %} {% macro query_option(options, selected) -%} -<span style="color: rgba(0,0,0,0.4);">{{ options.label }}</span> +<span style="color: rgba(0,0,0,0.4);">{{ _(options.label) }}</span> <div class="ui link list" style="margin-top: 0.3em;"> {% if selected %} <input form="search_form" type="hidden" name="{{ options.slug }}" value="{{ selected }}"> @@ -188,7 +188,7 @@ {% else %} <span> {% endif %} - {{ opt.label }} + {{ _(opt.label) }} </span> </button> <br> |