Skip to content

Commit 0220f7e

Browse files
authored
fix Stray 'None' in Tutorial Entries (#625)
1 parent 22756b6 commit 0220f7e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

databags/translate.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ speaking_after_title = , giving a presentation entitled
9595
keynoting_before_title = will be keynoting
9696
keynoting_after_title = , giving a presentation entitled
9797
tutorial_before_title = will be presenting a tutorial at
98-
tutorial_ater_title = entitled
98+
tutorial_after_title = entitled
9999
sprint_helping = will be at the sprints, and will be more than willing to help First Time Contributors earn their own shiny
100100
sprint_helping_plural = will be at the sprints, and will be more than willing to help First Time Contributors earn their own shiny
101101

templates/event.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ <h1>{{ this.title }} ({{ this.event_type|title }})</h1>
3434
{% endblock %}
3535
{% block main %}
3636
{% if this.event_type == "talk" %}
37-
<p>{{ this.speaker|join(t_and)}} {{ t_speaking_before_title }} {{ this.title }}{{ t_speaking_after_title }} "<a href="{{ this.url }}">{{ this.talk_title }}</a>".
37+
<p>{{ this.speaker|join(t_and)}} {{ t_speaking_before_title }} {{ this.title }} {{ t_speaking_after_title }} "<a href="{{ this.url }}">{{ this.talk_title }}</a>".
3838
{% elif this.event_type == "keynote" %}
39-
<p>{{ this.speaker|join(t_and)}} {{ t_keynoting_before_title }} {{ this.title }}{{ t_keynoting_after_title }} "<a href="{{ this.url }}">{{ this.talk_title }}</a>".
39+
<p>{{ this.speaker|join(t_and)}} {{ t_keynoting_before_title }} {{ this.title }} {{ t_keynoting_after_title }} "<a href="{{ this.url }}">{{ this.talk_title }}</a>".
4040
{% elif this.event_type == "tutorial" %}
41-
<p>{{ this.speaker|join(t_and)}} {{ t_tutorial_before_title }} {{ this.title }}{{ t_tutorial_after_title }} "<a href="{{ this.url }}">{{ this.talk_title }}</a>".
41+
<p>{{ this.speaker|join(t_and)}} {{ t_tutorial_before_title }} {{ this.title }} {{ t_tutorial_after_title }} "<a href="{{ this.url }}">{{ this.talk_title }}</a>".
4242
{% elif this.event_type == "sprint" %}
4343
<p>{{ t_running_sprint }} {{ this.title }}.</p>
4444
<p>{{ this.speaker|join(t_and) }} {% if this.speaker|length > 1 %}{{ t_sprint_helping_plural }}{% else %}{{ t_sprint_helping }}{% endif %} <a href="{{ '/contributing/challenge-coins/'|url(alt=this.alt) }}">{{ t_challenge_coin }}</a>.

templates/macros/translation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{% macro transbag(bag_name, alt, key, alt_default='en') %}
2-
{{ bag(bag_name, alt, key)|default(bag(bag_name, alt_default, key), true) }}
2+
{{ bag(bag_name, alt, key)|default(bag(bag_name, alt_default, key), true)|default("", true)}}
33
{% endmacro %}

0 commit comments

Comments
 (0)