Self hosted FLOSS fitness/workout, nutrition and weight tracker
Render CC license from a custom tag, update translations
Roland Geider8c02be4d00ab
diff --git a/exercises/locale/de/LC_MESSAGES/django.mo b/exercises/locale/de/LC_MESSAGES/django.moindex dbbba4893..e58663af9 100644Binary files a/exercises/locale/de/LC_MESSAGES/django.mo and b/exercises/locale/de/LC_MESSAGES/django.mo differdiff --git a/exercises/locale/de/LC_MESSAGES/django.po b/exercises/locale/de/LC_MESSAGES/django.poindex 5cdd60aea..9a52de1a5 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: 2013-01-17 23:01+0100\n"+"POT-Creation-Date: 2013-01-19 00:24+0100\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <[email protected]>\n"@@ -74,39 +74,39 @@ msgstr "Übungskommentar bearbeiten"msgid "Add exercise comment"msgstr "Übungskommentar hinzufügen"-#: views.py:215+#: views.py:205msgid "Reps"msgstr ""-#: views.py:237+#: views.py:227msgid "Add exercise"msgstr "Neue Übung hinzufügen"-#: views.py:266 views.py:377+#: views.py:256 views.py:367#, python-formatmsgid "Edit %s"msgstr "%s bearbeiten"-#: views.py:286+#: views.py:276msgid "This will delete the exercise from all workouts."msgstr """Das Löschen der Übung wird sie auch aus allen Trainingsplänen entfernen."-#: views.py:292+#: views.py:282#, python-formatmsgid "Delete exercise %s?"msgstr "%s Übung wirklich löschen?"-#: views.py:355 templates/overview.html:175 templates/overview.html.py:176+#: views.py:345 templates/overview.html:175 templates/overview.html.py:176#: templates/overview.html:177msgid "Add category"msgstr "Kategorie hinzufügen"-#: views.py:394+#: views.py:384msgid "This will also delete all exercises in this category."msgstr "Das wird auch alle Übungen in der Kategorie löschen."-#: views.py:400+#: views.py:390#, python-formatmsgid "Delete category %s?"msgstr "Kategorie %s löschen?"@@ -115,32 +115,36 @@ msgstr "Kategorie %s löschen?"msgid "Search results"msgstr "Suchergebnisse"-#: templates/muscle_overview.html:8 templates/muscle_overview.html.py:60+#: templates/muscle_overview.html:8 templates/muscle_overview.html.py:64msgid "Muscle overview"msgstr ""-#: templates/muscle_overview.html:61+#: templates/muscle_overview.html:65msgid "Hover with the mouse over the muscles to show corresponding exercises."msgstr """Mit der Maus über die Muskeln fahren, um die entsprechenden Übungen zu zeigen"-#: templates/muscle_overview.html:66 templates/view.html:111+#: templates/muscle_overview.html:70 templates/view.html:111msgid "Muscles"msgstr "Muskeln"-#: templates/muscle_overview.html:80+#: templates/muscle_overview.html:83msgid "Front"msgstr "Vorderseite"-#: templates/muscle_overview.html:82+#: templates/muscle_overview.html:85msgid "Back"msgstr "Hinterseite"-#: templates/muscle_overview.html:101 templates/overview.html:8+#: templates/muscle_overview.html:105 templates/overview.html:8#: templates/overview.html.py:58msgid "Exercises"msgstr "Übungen"+#: templates/muscle_overview.html:115+msgid "No exercises that mainly train this muscle"+msgstr "Keine Übungen, die hauptsächlich diesen Muskel tranieren"+#: templates/overview.html:65msgid "No categories."msgstr "Keine Kategorien."@@ -213,24 +217,8 @@ msgstr ""#: templates/view.html:113msgid "The diagram shows the most used muscles on this exercise"-msgstr "Das diagram zeigt die meistbeanspruchten Muskeln"+msgstr "Das Diagramm zeigt die meistbeanspruchten Muskeln"#: templates/view.html:119msgid "Main muscles"-msgstr "Hauptmuskeln"--#: templates/view.html:215-msgid "Free license"-msgstr "Freie Lizenz"--#: templates/view.html:221 templates/view.html.py:222-msgid "CC-BY-SA"-msgstr ""--#: templates/view.html:223-msgid ""-"This content is licenced under a Creative Commons Attribution Share-Alike,\n"-"(CC-BY-SA 3.0) license"-msgstr ""-"Dieser Inhalt ist unter der Creative Commons Namensnennung, Weitergabe unter "-"gleichen Bedingungen (CC-BY-SA 3.0) lizensiert"+msgstr "Hauptmuskeln"\ No newline at end of filediff --git a/exercises/templates/view.html b/exercises/templates/view.htmlindex c42c7d39b..62d80ed38 100644--- a/exercises/templates/view.html+++ b/exercises/templates/view.html@@ -212,15 +212,6 @@ weight_log_chart({{json|safe}}, "{{svg_uuid}}", "{{reps}}")</p>{% endif %}-<h3>{% trans "Free license" %}</h3>-<p>-<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.{{language.short_name}}">- <img src="{% static 'images/cc-by-sa-88x31.png' %}"- width="88"- height="31"- alt="{% trans 'CC-BY-SA' %}"- title="{% trans 'CC-BY-SA' %}">- {% blocktrans %}This content is licenced under a Creative Commons Attribution Share-Alike,-(CC-BY-SA 3.0) license{% endblocktrans %}</a>-</p>+{% cc_by_sa_sidebar language %}+{% endblock %}diff --git a/manager/locale/de/LC_MESSAGES/django.mo b/manager/locale/de/LC_MESSAGES/django.moindex f4cc551d6..34de8ee0c 100644Binary files a/manager/locale/de/LC_MESSAGES/django.mo and b/manager/locale/de/LC_MESSAGES/django.mo differdiff --git a/manager/locale/de/LC_MESSAGES/django.po b/manager/locale/de/LC_MESSAGES/django.poindex 088e4ea18..8da27733e 100644--- a/manager/locale/de/LC_MESSAGES/django.po+++ b/manager/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-12-29 22:51+0100\n"+"POT-Creation-Date: 2013-01-19 00:25+0100\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <[email protected]>\n"@@ -54,7 +54,7 @@ msgstr ""msgid "Creation date"msgstr "Datum"-#: models.py:46 models.py:92+#: models.py:46 models.py:92 templates/workout/overview.html:17msgid "Description"msgstr "Beschreibung"@@ -96,6 +96,7 @@ msgstr "Übungstag"#: models.py:115 models.py:143 templates/template.html:101#: templates/template.html.py:103 templates/day/log.html:44+#: templates/mobile/template.html:98 templates/mobile/template.html.py:100msgid "Exercises"msgstr "Übungen"@@ -120,16 +121,17 @@ msgid "Exercise"msgstr "Übung"#: models.py:171 pdf.py:57 pdf.py:67 templates/index.html:12-#: templates/index.html.py:18 templates/workout/overview.html:21+#: templates/index.html.py:18 templates/workout/overview.html:29#: templates/workout/view.html:6 templates/workout/view.html.py:35msgid "Workout"msgstr "Trainingsplan"#: models.py:176 pdf.py:132 templates/template.html:113+#: templates/mobile/template.html:109msgid "Weight"msgstr "Gewicht"-#: models.py:177 pdf.py:131+#: models.py:177 pdf.py:131 templates/workout/overview.html:18msgid "Date"msgstr "Datum"@@ -166,7 +168,7 @@ msgstr "Trainingsplan für %s"msgid "Nr."msgstr ""-#: pdf.py:132 views.py:1123 templates/day/log.html:58+#: pdf.py:132 views.py:1121 templates/day/log.html:58#: templates/tags/render_weight_log.html:28msgid "Reps"msgstr "Wdh."@@ -181,50 +183,50 @@ msgstr ""msgid "Created on the <b>%s</b>"msgstr "Erstellt am <b>%s</b>"-#: views.py:141+#: views.py:139msgid "Rest day"msgstr "Ruhetag"-#: views.py:199 views.py:202 views.py:290 templates/user/login.html:72+#: views.py:197 views.py:200 views.py:288 templates/user/login.html:72#: templates/user/login.html.py:73msgid "Register"msgstr "Registrieren"-#: views.py:239+#: views.py:237#, fuzzymsgid "Sample workout"msgstr "Trainingsplan löschen"-#: views.py:243+#: views.py:241msgid "Sample day"msgstr "Beispieltag"-#: views.py:353 views.py:363 views.py:744 views.py:939+#: views.py:351 views.py:361 views.py:742 views.py:937msgid "Success"msgstr "Erfolg"-#: views.py:486+#: views.py:484msgid "Copy workout"msgstr "Trainingsplan kopieren"-#: views.py:514+#: views.py:512msgid "Delete workout"msgstr "Trainingsplan löschen"-#: views.py:525 templates/workout/view.html:135+#: views.py:523 templates/workout/view.html:135#: templates/workout/view.html.py:136 templates/workout/view.html:137msgid "Edit workout"msgstr "Trainingsplan bearbeiten"-#: views.py:574+#: views.py:572msgid "Edit workout day"msgstr "Trainingstag bearbeiten"-#: views.py:583+#: views.py:581msgid "Add workout day"msgstr "Trainingstag hinzufügen"-#: views.py:973+#: views.py:971#, python-formatmsgid "Edit log entry for %s"msgstr "Eintrag für %s editieren"@@ -269,12 +271,12 @@ msgstr "Löschen"msgid "Workout list"msgstr "Liste der Trainingspläne"-#: templates/index.html:39 templates/workout/overview.html:34+#: templates/index.html:39 templates/workout/overview.html:42msgid "No workouts found."msgstr "Keine Trainingspläne gefunden."#: templates/index.html:39 templates/index.html.py:77-#: templates/workout/overview.html:34+#: templates/workout/overview.html:42msgid "Use link to add one."msgstr "Benutzen Sie den Verweis zum Hinzufügen."@@ -307,8 +309,8 @@ msgid "Your current weight is: "msgstr "Ihr aktuelles Gewicht ist: "#: templates/index.html:97 templates/index.html.py:98 templates/index.html:99-#: templates/workout/overview.html:49 templates/workout/overview.html.py:50-#: templates/workout/overview.html:51+#: templates/workout/overview.html:57 templates/workout/overview.html.py:58+#: templates/workout/overview.html:59msgid "Add workout"msgstr "Trainingsplan hinzufügen"@@ -326,9 +328,9 @@ msgstr """bearbeiten, um ein Ziel oder Beschreibung zu setzen."#: templates/index.html:126 templates/template.html:158-#: templates/day/log.html:102 templates/user/preferences.html:41-#: templates/workout/log.html:84 templates/workout/overview.html:43-#: templates/workout/view.html:116+#: templates/day/log.html:102 templates/mobile/template.html:149+#: templates/user/preferences.html:41 templates/workout/log.html:84+#: templates/workout/overview.html:51 templates/workout/view.html:116msgid "Options"msgstr "Optionen"@@ -337,107 +339,115 @@ msgstr "Optionen"msgid "My preferences"msgstr "Meine Einstellungen"-#: templates/template.html:88 templates/user/login.html:6+#: templates/template.html:88 templates/mobile/template.html:58+#: templates/mobile/template.html.py:85 templates/user/login.html:6#: templates/user/login.html.py:15 templates/user/login.html:31msgid "Login"msgstr "Anmelden"-#: templates/template.html:90+#: templates/template.html:90 templates/mobile/template.html:60+#: templates/mobile/template.html.py:87msgid "Dashboard"msgstr "Übersicht"-#: templates/template.html:95+#: templates/template.html:95 templates/mobile/template.html:66+#: templates/mobile/template.html.py:92msgid "Workouts"msgstr "Trainingspläne"-#: templates/template.html:104+#: templates/template.html:104 templates/mobile/template.html:101msgid "Muscle overview"msgstr "Muskelübersicht"-#: templates/template.html:115+#: templates/template.html:115 templates/mobile/template.html:111msgid "Weight overview"msgstr "Gewichtsübersicht"-#: templates/template.html:116+#: templates/template.html:116 templates/mobile/template.html:112msgid "Add weight entry"msgstr ""-#: templates/template.html:124+#: templates/template.html:124 templates/mobile/template.html:69+#: templates/mobile/template.html.py:120msgid "Nutrition"msgstr "Ernährung"-#: templates/template.html:127+#: templates/template.html:127 templates/mobile/template.html:123msgid "Nutrition plans"msgstr "Ernährungspläne"-#: templates/template.html:129+#: templates/template.html:129 templates/mobile/template.html:125msgid "Ingredient overview"msgstr "Zutatenübersicht"-#: templates/template.html:138+#: templates/template.html:138 templates/mobile/template.html:134msgid "About this software"msgstr "Über diese Software"-#: templates/template.html:140+#: templates/template.html:140 templates/mobile/template.html:75+#: templates/mobile/template.html.py:136msgid "Features"msgstr "Funktionen"-#: templates/template.html:142 templates/user/demo.html:7-#: templates/user/demo.html.py:10+#: templates/template.html:142 templates/mobile/template.html:138+#: templates/user/demo.html:7 templates/user/demo.html.py:10msgid "Demo account"msgstr "Demo Account"-#: templates/template.html:144+#: templates/template.html:144 templates/mobile/template.html:140msgid "Report problem"msgstr "Probleme berichten"-#: templates/template.html:147+#: templates/template.html:147 templates/mobile/template.html:142msgid "Developers"msgstr "Entwickler"-#: templates/template.html:148+#: templates/template.html:148 templates/mobile/template.html:143msgid "Get the code"msgstr "Quellcode"-#: templates/template.html:149+#: templates/template.html:149 templates/mobile/template.html:144msgid "License"msgstr "Lizenz"-#: templates/template.html:150+#: templates/template.html:150 templates/mobile/template.html:145msgid "Changelog"msgstr "Änderungsprotokoll"-#: templates/template.html:165 templates/user/preferences.html:47-#: templates/user/preferences.html.py:48 templates/user/preferences.html:49+#: templates/template.html:165 templates/mobile/template.html:154+#: templates/user/preferences.html:47 templates/user/preferences.html.py:48+#: templates/user/preferences.html:49msgid "Logout"msgstr "Ausloggen"-#: templates/template.html:169+#: templates/template.html:169 templates/mobile/template.html:157msgid "Languages"msgstr "Sprachen"#: templates/template.html:177 templates/template.html.py:178-#: templates/template.html:179+#: templates/template.html:179 templates/mobile/template.html:164+#: templates/mobile/template.html.py:165 templates/mobile/template.html:167msgid "German"msgstr ""#: templates/template.html:186 templates/template.html.py:187-#: templates/template.html:188+#: templates/template.html:188 templates/mobile/template.html:173+#: templates/mobile/template.html.py:174 templates/mobile/template.html:176msgid "English"msgstr ""-#: templates/template.html:215+#: templates/template.html:216msgid """You are using a temporary account, this user will be deleted after some time."msgstr """Sie sind mit einem Demonutzer angemeldet. Dieser wird nach einigen Tagen ""gelöscht."-#: templates/template.html:235 templates/template.html.py:236+#: templates/template.html:236 templates/template.html.py:237msgid "Released under the Affero GPL"msgstr "Unter der Affero GPL veröffentlicht"-#: templates/template.html:242+#: templates/template.html:243 templates/mobile/template.html:202msgid "Layout based on <a href='http://www.yaml.de'>YAML</a>"msgstr "Layout basiert auf <a href='http://www.yaml.de'>YAML</a>"@@ -463,6 +473,22 @@ msgstr "Zurück zum Trainingsplan"msgid "Save"msgstr ""+#: templates/mobile/template.html:51+msgid "Menu"+msgstr ""++#: templates/mobile/template.html:179+msgid "Site version"+msgstr ""++#: templates/mobile/template.html:181+msgid "Desktop"+msgstr ""++#: templates/mobile/template.html:184+msgid "Mobile"+msgstr ""+#: templates/set/edit.html:10 templates/set/edit.html.py:29#: templates/setting/edit.html:17 templates/tags/render_day.html:42#: templates/tags/render_day.html.py:47 templates/tags/render_day.html:67@@ -479,6 +505,27 @@ msgstr "Abbrechen"msgid "Set details"msgstr "Details für Satz"+#: templates/tags/cc-by-sa-sidebar.html:4+msgid "Free license"+msgstr "Freie Lizenz"++#: templates/tags/cc-by-sa-sidebar.html:10+#: templates/tags/cc-by-sa-sidebar.html:11+msgid "CC-BY-SA"+msgstr ""++#: templates/tags/cc-by-sa-sidebar.html:14+msgid ""+"This content is available under a Creative Commons\n"+"Attribution Share-Alike license."+msgstr ""+"Dieser Inhalt ist unter der Creative Commons Namensnennung, Weitergabe "+"unter gleichen Bedingungen lizensiert."++#: templates/tags/cc-by-sa-sidebar.html:16+msgid "Link:"+msgstr ""+#: templates/tags/pagination.html:10 templates/tags/pagination.html.py:12msgid "previous"msgstr "zurück"@@ -772,7 +819,7 @@ msgstr """Wiederholungen, aber verschiedene Gewichte, wird nur der Eintrag mit dem ""höheren Gewicht in das Diagramm eingefügt."-#: templates/workout/overview.html:6 templates/workout/overview.html.py:11+#: templates/workout/overview.html:5 templates/workout/overview.html.py:10msgid "Your workouts"msgstr "Ihre Trainingspläne"@@ -840,7 +887,4 @@ msgstr "Eine Kopie des Trainingsplans machen."#: templates/workout/view.html:171 templates/workout/view.html.py:172msgid "Delete this workout"-msgstr "Trainingsplan löschen"--#~ msgid "Download"-#~ msgstr "Runterladen"+msgstr "Trainingsplan löschen"\ No newline at end of filediff --git a/manager/templatetags/manager_extras.py b/manager/templatetags/manager_extras.pyindex dc4548b24..ca2dacc47 100644--- a/manager/templatetags/manager_extras.py+++ b/manager/templatetags/manager_extras.py@@ -46,3 +46,12 @@ def yaml_form_field(field, css_class = 'ym-fbox-text'):return {'field': field,'css_class': css_class}++[email protected]_tag('tags/cc-by-sa-sidebar.html')+def cc_by_sa_sidebar(language):+ """+ Renders a form field in a <tr> with all necessary CSS+ """++ return {'language': language}diff --git a/nutrition/templates/ingredient_overview.html b/nutrition/templates/ingredient_overview.htmlindex db3313ec7..6a4048cf9 100644--- a/nutrition/templates/ingredient_overview.html+++ b/nutrition/templates/ingredient_overview.html@@ -46,15 +46,5 @@</p>{% endif %}-<h3>{% trans "Free license" %}</h3>-<p>-<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.{{language.short_name}}">- <img src="{% static 'images/cc-by-sa-88x31.png' %}"- width="88"- height="31"- alt="{% trans 'CC-BY-SA' %}"- title="{% trans 'CC-BY-SA' %}">- {% blocktrans %}This content is licenced under a Creative commons share-alike,-(CC-BY-SA 3.0) license{% endblocktrans %}</a>-</p>+{% cc_by_sa_sidebar language %}{% endblock %}diff --git a/nutrition/templates/view_ingredient.html b/nutrition/templates/view_ingredient.htmlindex 65a472355..63a226725 100644--- a/nutrition/templates/view_ingredient.html+++ b/nutrition/templates/view_ingredient.html@@ -1,6 +1,7 @@{% extends "base.html" %}{% load i18n %}{% load staticfiles %}+{% load manager_extras %}{% block title %}{{ingredient.name}}{% endblock %}@@ -102,16 +103,6 @@</p>{% endif %}-<h3>{% trans "Free license" %}</h3>-<p>-<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.{{language.short_name}}">- <img src="{% static 'images/cc-by-sa-88x31.png' %}"- width="88"- height="31"- alt="{% trans 'CC-BY-SA' %}"- title="{% trans 'CC-BY-SA' %}">- {% blocktrans %}This content is licenced under a Creative commons share-alike,-(CC-BY-SA 3.0) license{% endblocktrans %}</a>-</p>+{% cc_by_sa_sidebar language %}{% endblock %}