Skip to content

Commit

Permalink
i18n: Translate theme text variable (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Apr 21, 2021
1 parent 312c76e commit 4b2620a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pydata_sphinx_theme/_templates/navbar-nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ generate_nav_html("navbar", maxdepth=1, collapse=True, includehidden=True, titles_only=True) }}
{% for external_link in theme_external_links %}
<li class="nav-item">
<a class="nav-link nav-external" href="{{ external_link.url }}">{{ external_link.name }}<i class="fas fa-external-link-alt"></i></a>
<a class="nav-link nav-external" href="{{ external_link.url }}">{{ _(external_link.name) }}<i class="fas fa-external-link-alt"></i></a>
</li>
{% endfor %}
</ul>
2 changes: 1 addition & 1 deletion pydata_sphinx_theme/search-field.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form class="bd-search d-flex align-items-center" action="{{ pathto('search') }}" method="get">
<i class="icon fas fa-search"></i>
<input type="search" class="form-control" name="q" id="search-input" placeholder="{{ theme_search_bar_text }}" aria-label="{{ theme_search_bar_text }}" autocomplete="off" >
<input type="search" class="form-control" name="q" id="search-input" placeholder="{{ _(theme_search_bar_text) }}" aria-label="{{ theme_search_bar_text }}" autocomplete="off" >
</form>

0 comments on commit 4b2620a

Please sign in to comment.