Skip to content

Commit

Permalink
make story category titles translatable (fix #338)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmapeel2 authored and jcharaoui committed Mar 12, 2024
1 parent 4241262 commit b937bf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/outreach-stories.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<div class="row">
<div class="container d-flex justify-content-center flex-wrap mb-3">
{% for id, item in bag('story-categories').items() %}
<div class="p-2"><a class="btn btn-outline-primary" href="#{{ id }}">{{ item.title }}</a></div>
<div class="p-2"><a class="btn btn-outline-primary" href="#{{ id }}">{{ _(item.title) }}</a></div>
{% endfor %}
</div>
</div>
{% for id, item in bag('story-categories').items() %}
<div class="row">
<div class="container text-center">
<a name="{{ id }}" class="anchor"></a>
<h2 class="text-primary text-center mx-auto my-3">{{ item.title }}</h2>
<h2 class="text-primary text-center mx-auto my-3">{{ _(item.title) }}</h2>
</div>
</div>
<div class="container py-3 story-cards">
Expand Down
2 changes: 1 addition & 1 deletion templates/outreach-story.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{{ this.body }}
<p class="font-italic">{{ _("{} is a pseudonym. This is an anonymous story submitted by a Tor user.").format(this.title) }}</p>
{%- for cat in this.category %}
<a class="btn btn-outline-primary small mt-3" href="../#{{ cat }}">{{ bag('story-categories')[cat].title }}</a>
<a class="btn btn-outline-primary small mt-3" href="../#{{ cat }}">{{ _(bag('story-categories')[cat].title) }}</a>
{%- endfor %}
</div>
</div>
Expand Down

0 comments on commit b937bf5

Please sign in to comment.