Self hosted FLOSS fitness/workout, nutrition and weight tracker
Translate equipment names in exercise detail view
Roland Geider1f722192d9fb
diff --git a/wger/exercises/templates/exercise/view.html b/wger/exercises/templates/exercise/view.htmlindex a33fbe966..09559ea3b 100644--- a/wger/exercises/templates/exercise/view.html+++ b/wger/exercises/templates/exercise/view.html@@ -80,7 +80,12 @@ included in the database.{% endblocktrans %}<p><strong>{% trans "Category" %}:</strong> {% trans exercise.category.name %}</p>{% if exercise.equipment.all %}- <p><strong>{% trans "Equipment" %}:</strong> {{ exercise.equipment.all|join:", " }}</p>+ <p><strong>{% trans "Equipment" %}:</strong>+ {% for equipment in exercise.equipment.all %}+ {% trans equipment.name %}+ {% if not forloop.last %}, {% endif %}+ {% endfor %}+ </p>{% endif %}<div>{{ exercise.description|safe }}</div>@@ -219,7 +224,6 @@ included in the database.{% endblocktrans %}{% endfor %}{% endwith %}</div>-{% endif %}{% endwith %}diff --git a/wger/exercises/templates/mobile/exercise/view.html b/wger/exercises/templates/mobile/exercise/view.htmlindex 73a170678..4e028db3c 100644--- a/wger/exercises/templates/mobile/exercise/view.html+++ b/wger/exercises/templates/mobile/exercise/view.html@@ -67,7 +67,12 @@ included in the database.{% endblocktrans %}<p><strong>{% trans "Category" %}:</strong> {% trans exercise.category.name %}</p>{% if exercise.equipment.all %}- <p><strong>{% trans "Equipment" %}:</strong> {{ exercise.equipment.all|join:", " }}</p>+ <p><strong>{% trans "Equipment" %}:</strong>+ {% for equipment in exercise.equipment.all %}+ {% trans equipment.name %}+ {% if not forloop.last %}, {% endif %}+ {% endfor %}+ </p>{% endif %}<div>{{ exercise.description|safe }}</div>