Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Use a better title for the exercise edit page

Roland Geiderfbe0a6811b56
diff --git a/exercises/locale/de/LC_MESSAGES/django.mo b/exercises/locale/de/LC_MESSAGES/django.mo
index f85e7de32..d24fd49d5 100644
Binary files a/exercises/locale/de/LC_MESSAGES/django.mo and b/exercises/locale/de/LC_MESSAGES/django.mo differ
diff --git a/exercises/locale/de/LC_MESSAGES/django.po b/exercises/locale/de/LC_MESSAGES/django.po
index c8ada64d7..c7bdb260d 100644
--- a/exercises/locale/de/LC_MESSAGES/django.po
+++ b/exercises/locale/de/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-10-01 09:07+0200\n"
+"POT-Creation-Date: 2012-10-17 17:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -46,7 +46,7 @@ msgstr "Kategorie"
msgid "Description"
msgstr "Beschreibung"
-#: models.py:84 templates/view.html:102
+#: models.py:84 templates/view.html:105
msgid "Muscles"
msgstr "Muskeln"
@@ -66,9 +66,8 @@ msgstr "Ein Kommenter über die korrekte Durchführung der Übung "
msgid "Category details"
msgstr "Kategoriedetails"
-#: templates/edit_category.html:16 templates/edit_exercise.html:27
-#: templates/overview.html:108 templates/view.html:67
-#: templates/view.html.py:134 templates/view.html:136
+#: templates/edit_category.html:16 templates/overview.html:114
+#: templates/view.html:67 templates/view.html.py:166 templates/view.html:168
msgid "Edit"
msgstr ""
@@ -76,16 +75,17 @@ msgstr ""
msgid "New category"
msgstr "Neue Kategorie"
-#: templates/edit_category.html:30 templates/edit_exercise.html:45
-#: templates/view.html:57 templates/view.html.py:88
+#: templates/edit_category.html:30 templates/edit_exercise.html:51
+#: templates/view.html:57 templates/view.html.py:86
msgid "Save"
msgstr ""
-#: templates/edit_exercise.html:16
-msgid "Exercise details"
-msgstr "Übungsdetails"
+#: templates/edit_exercise.html:19 templates/edit_exercise.html.py:33
+#, python-format
+msgid "Edit %(exercisename)s"
+msgstr "%(exercisename)s bearbeiten"
-#: templates/edit_exercise.html:29
+#: templates/edit_exercise.html:21 templates/edit_exercise.html.py:35
msgid "New exercise"
msgstr "Neue Übung"
@@ -93,70 +93,70 @@ msgstr "Neue Übung"
msgid "Search results"
msgstr "Suchergebnisse"
-#: templates/overview.html:8 templates/overview.html.py:76
+#: templates/overview.html:8 templates/overview.html.py:82
msgid "Exercises"
msgstr "Übungen"
-#: templates/overview.html:54
+#: templates/overview.html:60
msgid "Confirm"
msgstr "Bestätigen"
-#: templates/overview.html:57
+#: templates/overview.html:63
msgid "Cancel"
msgstr "Abbrechen"
-#: templates/overview.html:78
+#: templates/overview.html:84
msgid "Really delete exercise?"
msgstr "Übung wirklich löschen?"
-#: templates/overview.html:81
+#: templates/overview.html:87
msgid "Deleting the exercise will also delete it from all workouts."
msgstr ""
"Das Löschen der Übung wird sie auch aus allen Trainingsplänen entfernen."
-#: templates/overview.html:82
+#: templates/overview.html:88
msgid "Are you sure?"
msgstr "Sind Sie sicher?"
-#: templates/overview.html:91
+#: templates/overview.html:97
msgid "No categories."
msgstr "Keine Kategorien."
-#: templates/overview.html:91
+#: templates/overview.html:97
msgid "Use link to create one"
msgstr "Benutzen Sie den Verweis zum Hinzufügen"
-#: templates/overview.html:112 templates/view.html:66
-#: templates/view.html.py:144 templates/view.html:145
+#: templates/overview.html:118 templates/view.html:66
+#: templates/view.html.py:176 templates/view.html:177
msgid "Delete"
msgstr ""
-#: templates/overview.html:122
+#: templates/overview.html:128
msgid ""
"No exercises in this category. Add or edit an exercise and set its category"
msgstr ""
"Keine Übungen in dieser Kategorie. Editiere oder füge eine neue Übung hinzu "
"und setze die Kategorie"
-#: templates/overview.html:143 templates/view.html:127
+#: templates/overview.html:149 templates/view.html:159
msgid "Options"
msgstr ""
-#: templates/overview.html:151 templates/overview.html.py:152
-#: templates/overview.html:153
+#: templates/overview.html:157 templates/overview.html.py:158
+#: templates/overview.html:159
msgid "Add new exercise"
msgstr "Neue Übung hinzufügen"
-#: templates/overview.html:162 templates/overview.html.py:163
-#: templates/overview.html:164
+#: templates/overview.html:168 templates/overview.html.py:169
+#: templates/overview.html:170
msgid "Add category"
msgstr "Kategorie hinzufügen"
-#: templates/overview.html:169
+#: templates/overview.html:175
msgid "Search"
msgstr ""
-#: templates/overview.html:182
+#: templates/overview.html:188
msgid "Use the search box to search the name of any exercise."
msgstr "Benutzen Sie die Suchmaske um nach Übungsnamen zu suchen."
@@ -165,13 +165,13 @@ msgid "All comments for this exercise"
msgstr "Alle Kommentare für diese Übung"
#: templates/view.html:74
-msgid "Sorry, no comments for this exercise yet!"
-msgstr "Tut mir leid, keine Kommentare für diese Übung!"
+msgid "No comments for this exercise"
+msgstr "Keine Kommentare für diese Übung"
-#: templates/view.html:82
+#: templates/view.html:80
msgid "Add new comment"
msgstr "Kommentar hinzufügen"
-#: templates/view.html:104
+#: templates/view.html:107
msgid "The diagram shows the most used muscles on this exercise"
msgstr "Das diagram zeigt die meistbeanspruchten Muskeln"
diff --git a/exercises/templates/edit_exercise.html b/exercises/templates/edit_exercise.html
index 351a737c7..16729d5ad 100644
--- a/exercises/templates/edit_exercise.html
+++ b/exercises/templates/edit_exercise.html
@@ -13,9 +13,13 @@ init_tinymce();
<!--
Title
-->
-{% block title %}{% trans "Exercise details" %}{% endblock %}
-
-
+{% block title %}
+ {% if exercise.id %}
+ {% blocktrans with exercisename=exercise.name %}Edit {{exercisename}}{% endblocktrans %}
+ {% else %}
+ {% trans "New exercise" %}
+ {% endif %}
+{% endblock %}
<!--
@@ -23,8 +27,9 @@ init_tinymce();
-->
{% block content %}
-<h2>{% if exercise.id %}
- {% trans "Edit" %} {{ exercise.name }}
+<h2>
+ {% if exercise.id %}
+ {% blocktrans with exercisename=exercise.name %}Edit {{exercisename}}{% endblocktrans %}
{% else %}
{% trans "New exercise" %}
{% endif %}