Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search: mark more strings for translation #4438

Merged
merged 1 commit into from Oct 31, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions readthedocs/templates/search/elastic_search.html
Expand Up @@ -17,15 +17,15 @@

<div class="navigable">
<ul>
<li class="{% if type == 'project' %}active{% endif %}"><a href="?{% url_replace request 'type' 'project' %}">Projects</a></li>
<li class="{% if type == 'file' %}active{% endif %}"><a href="?{% url_replace request 'type' 'file' %}">Files</a></li>
<li class="{% if type == 'project' %}active{% endif %}"><a href="?{% url_replace request 'type' 'project' %}">{% trans 'Projects' %}</a></li>
<li class="{% if type == 'file' %}active{% endif %}"><a href="?{% url_replace request 'type' 'file' %}">{% trans 'Files' %}</a></li>

<hr>

{% if type == 'project' %}

{% if facets.language %}
<h5> Language </h5>
<h5>{% trans 'Language' %}</h5>
{% for name, count in facets.language.items %}
<li class="{% if language == name %}active{% endif %} language-list">
{% if language == name %}
Expand All @@ -44,7 +44,7 @@ <h5> Language </h5>
{% if type == 'file' %}

{% if facets.project %}
<h5> Projects </h5>
<h5>{% trans 'Projects' %}</h5>
{% for name, count in facets.project.items %}
<li class="{% if project == name %}active{% endif %} project-list">
{% if project == name %}
Expand All @@ -61,7 +61,7 @@ <h5> Projects </h5>

{% if facets.version %}

<h5>Version</h5>
<h5>{% trans 'Version' %}</h5>
{% for name, count in facets.version.items %}
<li class="{% if version == name %}active{% endif %} version-list">
{% if version == name %}
Expand All @@ -79,7 +79,7 @@ <h5>Version</h5>

{% if facets.taxonomy %}

<h5>Taxonomy</h5>
<h5>{% trans 'Taxonomy' %}</h5>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed. as we never did Taxonomy and it will be removed

{% for name, count in facets.taxonomy.items %}
<li class="{% if taxonomy == name %}active{% endif %}">
{% if taxonomy == name %}
Expand All @@ -105,7 +105,7 @@ <h5>Taxonomy</h5>

</ul>
<div>
<h2>Search</h2>
<h2>{% trans 'Search' %}</h2>
<!-- BEGIN search form -->
<div class="wide-search-bar">
<div class="wide-search-bar-wrapper clearfix">
Expand Down