diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-10-05 13:22:48 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-10-05 13:27:32 -0700 |
commit | 98f2f7e24abb28f352c6afceb50f53c3b71ee78a (patch) | |
tree | 8b9574f8451a231585272abcd50b77ad192b7da1 | |
parent | 858423df30eae637905a49743d21d27c82f113e8 (diff) | |
download | fatcat-scholar-98f2f7e24abb28f352c6afceb50f53c3b71ee78a.tar.gz fatcat-scholar-98f2f7e24abb28f352c6afceb50f53c3b71ee78a.zip |
web: mark more strings for translation
-rw-r--r-- | fatcat_scholar/templates/search.html | 4 | ||||
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/fatcat_scholar/templates/search.html b/fatcat_scholar/templates/search.html index 6d90e91..21d209f 100644 --- a/fatcat_scholar/templates/search.html +++ b/fatcat_scholar/templates/search.html @@ -76,8 +76,8 @@ {% endif %} </div> <p>Computer said: <code>{{ search_error.message }}</code> - <p>Query parsing is currently very naive. Sometimes you can fix this - problem by adding quotes around terms or entire phrases. + <p>{% trans trimmed %}Query parsing is currently very naive. Sometimes you can fix this + problem by adding quotes around terms or entire phrases.{% endtrans %} </div> </div> {% elif hits and hits.results %} diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 8d2567e..3f2826f 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -297,17 +297,17 @@ {% macro search_pagination(hits, top) %} {% if hits.offset > 0 %} <button class="text-button" form="search_form" type="submit" name="offset" value="{{ hits.offset - hits.limit }}" style="margin-right: 2em;"> - <a>« Previous</a> + <a>« {% trans %}Previous{% endtrans %}</a> </button> {% else %} - <span style="color:gray; margin-right: 2em;">« Previous</span> + <span style="color:gray; margin-right: 2em;">« {% trans %}Previous{% endtrans %}</span> {% endif %} <i>Showing results {{ hits.offset }} — {{ hits.offset + hits.limit }} out of {{ "{:,}".format(hits.count_found) }} results</i> {% if hits.offset + hits.limit < hits.count_found %} <button class="text-button" form="search_form" type="submit" name="offset" value="{{ hits.offset + hits.limit }}" style="margin-left: 2em;"> - <a>Next »</a> + <a>{% trans %}Next{% endtrans %} »</a> {% else %} - <span style="color:gray; margin-left: 2em;">Next »</span> + <span style="color:gray; margin-left: 2em;">{% trans %}Next{% endtrans %} »</span> {% endif %} </button> {% endmacro %} |