fixes
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 27 Sep 2011 11:14:33 +0000 (13:14 +0200)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 27 Sep 2011 11:14:33 +0000 (13:14 +0200)
apps/quiz/locale/pl/LC_MESSAGES/django.po
apps/quiz/views.py
koedquiz/locale/pl/LC_MESSAGES/django.mo
koedquiz/locale/pl/LC_MESSAGES/django.po
koedquiz/templates/home.html

index 94ad015..903a3fb 100644 (file)
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: Quiz 0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-09-26 10:15+0200\n"
+"POT-Creation-Date: 2011-09-27 13:14+0200\n"
 "PO-Revision-Date: 2011-09-26 10:16+0100\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -15,7 +15,8 @@ msgstr ""
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
 
 #: forms.py:9
 msgid "Please select an option"
@@ -37,19 +38,19 @@ msgstr "rezultat"
 msgid "results"
 msgstr "rezultaty"
 
-#: models.py:61
+#: models.py:62
 msgid "question"
 msgstr "pytanie"
 
-#: models.py:62
+#: models.py:63
 msgid "questions"
 msgstr "pytania"
 
-#: models.py:91
+#: models.py:92
 msgid "answer"
 msgstr "odpowiedź"
 
-#: models.py:92
+#: models.py:93
 msgid "answers"
 msgstr "odpowiedzi"
 
@@ -57,18 +58,15 @@ msgstr "odpowiedzi"
 msgid "Send answer"
 msgstr "Wyślij odpowiedź"
 
-#: templates/quiz/question_detail.html:33
-#: templates/quiz/result_detail.html:24
+#: templates/quiz/question_detail.html:33 templates/quiz/result_detail.html:24
 msgid "Back to last question"
 msgstr "Wróć do poprzedniego pytania"
 
-#: templates/quiz/question_detail.html:38
-#: templates/quiz/result_detail.html:28
+#: templates/quiz/question_detail.html:38 templates/quiz/result_detail.html:28
 msgid "Back to my test"
 msgstr "Wróć do testu"
 
-#: templates/quiz/question_detail.html:40
-#: templates/quiz/result_detail.html:33
+#: templates/quiz/question_detail.html:40 templates/quiz/result_detail.html:33
 msgid "Start from the beginning"
 msgstr "Zacznij od początku"
 
index 830798d..18a268f 100644 (file)
@@ -51,10 +51,9 @@ def result(request, slug=None):
         cur_index = ticket.index(request.path)
         if cur_index:
             previous_url = ticket[cur_index - 1]
-    else:
+    elif ticket:
         valid_url = ticket[-1]
 
-
     result = get_object_or_404(Quiz.current().result_set, slug=slug)
     return render(request, "quiz/result_detail.html", locals())
 
index be99f3b..44920cd 100644 (file)
Binary files a/koedquiz/locale/pl/LC_MESSAGES/django.mo and b/koedquiz/locale/pl/LC_MESSAGES/django.mo differ
index dbc6fe5..0e3fd10 100644 (file)
@@ -7,8 +7,8 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-09-26 10:17+0200\n"
-"PO-Revision-Date: 2011-09-26 10:17+0100\n"
+"POT-Creation-Date: 2011-09-27 13:12+0200\n"
+"PO-Revision-Date: 2011-09-27 13:13+0100\n"
 "Last-Translator: Radek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Language: \n"
@@ -18,6 +18,8 @@ msgstr ""
 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
 
 #: templates/home.html:15
-msgid "Start quiz!"
-msgstr "Rozpocznij quiz!"
+msgid "Start the test!"
+msgstr "Rozpocznij test!"
 
+#~ msgid "Start quiz!"
+#~ msgstr "Rozpocznij quiz!"
index 78dd39a..b4c1d20 100644 (file)
@@ -12,6 +12,6 @@
 {{ quiz.description|safe }}
 </div>
 
-<a class='big-button' href="{{ quiz.get_absolute_url }}">{% trans "Start quiz!" %}</a>
+<a class='big-button' href="{{ quiz.get_absolute_url }}">{% trans "Start the test!" %}</a>
 
 {% endblock %}