Self hosted FLOSS fitness/workout, nutrition and weight tracker
Small corrections to text sed on workout PDF
Roland Geidercb33a93159fb
diff --git a/manager/locale/de/LC_MESSAGES/django.mo b/manager/locale/de/LC_MESSAGES/django.moindex 04fa69ff6..7890c3372 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 5909d8309..22ce845c9 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-10-01 18:18+0200\n"+"POT-Creation-Date: 2012-10-02 09:17+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"@@ -112,12 +112,12 @@ msgstr ""msgid "Rest day"msgstr "Ruhetag"-#: views.py:363 templates/index.html:15 templates/index.html.py:21-#: templates/workout/overview.html:20+#: views.py:353 views.py:363 templates/index.html:15+#: templates/index.html.py:21 templates/workout/overview.html:20msgid "Workout"msgstr "Trainingsplan"-#: views.py:364+#: views.py:364 views.py:575msgid "Workout Manager"msgstr "Trainingsplan Manager"@@ -148,12 +148,8 @@ msgstr "Gewicht"#: views.py:569#, python-format-msgid "Printed on the <b>%s</b>"-msgstr "Gedruckt am <b>%s</b>"--#: views.py:575-msgid "Created with Workout Manager"-msgstr "Erstellt mit Trainingsplanmanager"+msgid "Created on the <b>%s</b>"+msgstr "Erstellt am <b>%s</b>"#: views.py:654 views.py:664 views.py:885 views.py:1092msgid "Success"@@ -394,7 +390,7 @@ msgid """Images show combined muscles as trained by the exercises on the workout."msgstr """Das Bild zeigt die kombinierten Muskeln, wie sie von den Übungen traniert "-"werden"+"werden."#: templates/workout/view.html:97msgid ""diff --git a/manager/views.py b/manager/views.pyindex 0ce73e81a..bbf7c7d2d 100644--- a/manager/views.py+++ b/manager/views.py@@ -350,7 +350,7 @@ def pdf_workout(request, id):# Create the HttpResponse object with the appropriate PDF headers.response = HttpResponse(mimetype='application/pdf')- response['Content-Disposition'] = 'attachment; filename=workout.pdf'+ response['Content-Disposition'] = 'attachment; filename=%s.pdf' % _('Workout')# Create the PDF object, using the response object as its "file."doc = SimpleDocTemplate(response,@@ -566,13 +566,13 @@ def pdf_workout(request, id):# Print dateP = Paragraph('<para align="left">%(created)s</para>' %- {'created' : _("Printed on the <b>%s</b>") % workout.creation_date.strftime("%d.%m.%Y")},+ {'created' : _("Created on the <b>%s</b>") % workout.creation_date.strftime("%d.%m.%Y")},styleSheet["Normal"])elements.append(P)# A little advertisementP = Paragraph('<para align="left">%(created)s - v%(version)s</para>' %- {'created' : _("Created with Workout Manager"),+ {'created' : _("Workout Manager"),'version': get_version()},styleSheet["Normal"])elements.append(P)