From: Guillaume Pellerin Date: Thu, 10 Dec 2015 12:06:00 +0000 (+0100) Subject: add french translation, partially fix template paths X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=dafd6f5a0b219d0fee52284ef3d7e8d6feecac06;p=django_quiz.git add french translation, partially fix template paths --- diff --git a/quiz/locale/fr/LC_MESSAGES/django.mo b/quiz/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 0000000..8f76d4a Binary files /dev/null and b/quiz/locale/fr/LC_MESSAGES/django.mo differ diff --git a/quiz/locale/fr/LC_MESSAGES/django.po b/quiz/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 0000000..a08a563 --- /dev/null +++ b/quiz/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,456 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-12-10 11:48+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" + +#: models.py:30 models.py:37 models.py:53 models.py:83 models.py:545 +#: templates/progress.html:19 templates/quiz/quiz_detail.html:9 +#: templates/quiz/quiz_list.html:13 templates/quiz/sitting_detail.html:10 +msgid "Category" +msgstr "Catégorie" + +#: models.py:38 +msgid "Categories" +msgstr "Catégories" + +#: models.py:48 models.py:58 models.py:550 +msgid "Sub-Category" +msgstr "Sous-catégorie" + +#: models.py:59 +msgid "Sub-Categories" +msgstr "Sous-Catégories" + +#: models.py:69 templates/quiz/quiz_list.html:12 +msgid "Title" +msgstr "Titre" + +#: models.py:73 +msgid "Description" +msgstr "" + +#: models.py:74 +msgid "a description of the quiz" +msgstr "" + +#: models.py:78 +msgid "a user friendly url" +msgstr "" + +#: models.py:79 +msgid "user friendly url" +msgstr "" + +#: models.py:87 +msgid "Random Order" +msgstr "" + +#: models.py:88 +msgid "Display the questions in a random order or as they are set?" +msgstr "" + +#: models.py:93 +msgid "Max Questions" +msgstr "" + +#: models.py:94 +msgid "Number of questions to be answered on each attempt." +msgstr "" + +#: models.py:98 +msgid "" +"Correct answer is NOT shown after question. Answers displayed at the end." +msgstr "" + +#: models.py:100 +msgid "Answers at end" +msgstr "" + +#: models.py:104 +msgid "" +"If yes, the result of each attempt by a user will be stored. Necessary for " +"marking." +msgstr "" + +#: models.py:107 +msgid "Exam Paper" +msgstr "" + +#: models.py:111 +msgid "" +"If yes, only one attempt by a user will be permitted. Non users cannot sit " +"this exam." +msgstr "" + +#: models.py:114 +msgid "Single Attempt" +msgstr "" + +#: models.py:118 +msgid "Percentage required to pass exam." +msgstr "" + +#: models.py:122 +msgid "Displayed if user passes." +msgstr "" + +#: models.py:123 +msgid "Success Text" +msgstr "" + +#: models.py:126 +msgid "Fail Text" +msgstr "" + +#: models.py:127 +msgid "Displayed if user fails." +msgstr "" + +#: models.py:131 +msgid "Draft" +msgstr "" + +#: models.py:132 +msgid "" +"If yes, the quiz is not displayed in the quiz list and can only be taken by " +"users who can edit quizzes." +msgstr "" + +#: models.py:152 models.py:372 models.py:541 +#: templates/quiz/sitting_list.html:14 +msgid "Quiz" +msgstr "" + +#: models.py:153 +msgid "Quizzes" +msgstr "" + +#: models.py:192 models.py:370 templates/quiz/sitting_detail.html:13 +#: templates/quiz/sitting_list.html:13 +msgid "User" +msgstr "" + +#: models.py:195 templates/progress.html:60 +#: templates/quiz/sitting_detail.html:15 templates/quiz/sitting_list.html:16 +msgid "Score" +msgstr "" + +#: models.py:200 +msgid "User Progress" +msgstr "" + +#: models.py:201 +msgid "User progress records" +msgstr "" + +#: models.py:261 +msgid "error" +msgstr "" + +#: models.py:261 +msgid "category does not exist or invalid score" +msgstr "" + +#: models.py:375 +msgid "Question Order" +msgstr "" + +#: models.py:378 +msgid "Question List" +msgstr "" + +#: models.py:381 +msgid "Incorrect questions" +msgstr "" + +#: models.py:383 +msgid "Current Score" +msgstr "" + +#: models.py:386 +msgid "Complete" +msgstr "" + +#: models.py:389 +msgid "User Answers" +msgstr "" + +#: models.py:392 +msgid "Start" +msgstr "" + +#: models.py:394 +msgid "End" +msgstr "" + +#: models.py:399 +msgid "Can see completed exams." +msgstr "" + +#: models.py:557 +msgid "Figure" +msgstr "" + +#: models.py:561 +msgid "Enter the question text that you want displayed" +msgstr "" + +#: models.py:563 models.py:575 templates/question.html:47 +#: templates/quiz/sitting_detail.html:21 +msgid "Question" +msgstr "" + +#: models.py:567 +msgid "Explanation to be shown after the question has been answered." +msgstr "" + +#: models.py:570 templates/question.html:32 templates/result.html:21 +#: templates/result.html.py:87 +msgid "Explanation" +msgstr "Explication" + +#: models.py:576 +msgid "Questions" +msgstr "" + +#: templates/base.html:7 +msgid "Example Quiz Website" +msgstr "" + +#: templates/correct_answer.html:6 +msgid "You answered the above question incorrectly" +msgstr "Vous avez répondu à la question incorrectement" + +#: templates/correct_answer.html:16 +msgid "This is the correct answer" +msgstr "C'est la bonne réponse" + +#: templates/correct_answer.html:23 +msgid "This was your answer." +msgstr "C'était votre réponse." + +#: templates/progress.html:6 +msgid "Progress Page" +msgstr "" + +#: templates/progress.html:7 +msgid "User Progress Page" +msgstr "" + +#: templates/progress.html:13 +msgid "Question Category Scores" +msgstr "" + +#: templates/progress.html:20 +msgid "Correctly answererd" +msgstr "Réponse bonne" + +#: templates/progress.html:21 +msgid "Incorrect" +msgstr "" + +#: templates/progress.html:50 +msgid "Previous exam papers" +msgstr "" + +#: templates/progress.html:52 +msgid "Below are the results of exams that you have sat." +msgstr "Voici les résultats de votre quiz." + +#: templates/progress.html:59 +msgid "Quiz Title" +msgstr "" + +#: templates/progress.html:61 +msgid "Possible Score" +msgstr "" + +#: templates/question.html:13 templates/result.html:13 +msgid "The previous question" +msgstr "La question précédente" + +#: templates/question.html:22 +msgid "Your answer was" +msgstr "Votre réponse était" + +#: templates/question.html:47 +msgid "of" +msgstr "sur" + +#: templates/question.html:52 +msgid "Question category" +msgstr "" + +#: templates/question.html:74 +msgid "Check" +msgstr "Soumettre" + +#: templates/result.html:7 +msgid "Exam Results for" +msgstr "Résultats du quiz pour" + +#: templates/result.html:32 +msgid "Exam results" +msgstr "Résultats du quiz" + +#: templates/result.html:34 +msgid "Exam title" +msgstr "Titre du quiz" + +#: templates/result.html:38 +msgid "You answered" +msgstr "Vous avez répondu correctement à" + +#: templates/result.html:38 +msgid "questions correctly out of" +msgstr "questions sur" + +#: templates/result.html:38 +msgid "giving you" +msgstr "ce qui vous donne" + +#: templates/result.html:38 +msgid "percent correct" +msgstr "pourcent de bonnes réponses" + +#: templates/result.html:48 +msgid "Review the questions below and try the exam again in the future" +msgstr "" + +#: templates/result.html:52 +msgid "" +"The result of this exam will be stored in your progress section so you can " +"review and monitor your progression" +msgstr "" + +#: templates/result.html:66 +msgid "Your session score is" +msgstr "Votre score est" + +#: templates/result.html:66 +msgid "out of a possible" +msgstr "impossible" + +#: templates/result.html:84 +msgid "Your answer" +msgstr "Votre réponse" + +#: templates/single_complete.html:13 +msgid "You have already sat this exam and only one sitting is permitted" +msgstr "" + +#: templates/single_complete.html:15 +msgid "This exam is only accessible to signed in users" +msgstr "" + +#: templates/view_quiz_category.html:3 +msgid "Quizzes related to" +msgstr "" + +#: templates/view_quiz_category.html:6 +msgid "Quizzes in the" +msgstr "" + +#: templates/view_quiz_category.html:6 +msgid "category" +msgstr "" + +#: templates/view_quiz_category.html:20 +msgid "There are no quizzes" +msgstr "" + +#: templates/quiz/category_list.html:3 templates/quiz/quiz_list.html:3 +#: templates/quiz/sitting_list.html:3 +msgid "All Quizzes" +msgstr "" + +#: templates/quiz/category_list.html:6 +msgid "Category list" +msgstr "" + +#: templates/quiz/quiz_detail.html:11 +msgid "You will only get one attempt at this quiz" +msgstr "" + +#: templates/quiz/quiz_detail.html:16 +msgid "Start quiz" +msgstr "" + +#: templates/quiz/quiz_list.html:6 +msgid "List of quizzes" +msgstr "" + +#: templates/quiz/quiz_list.html:14 +msgid "Exam" +msgstr "" + +#: templates/quiz/quiz_list.html:15 +msgid "Single attempt" +msgstr "" + +#: templates/quiz/quiz_list.html:31 templates/quiz/sitting_list.html:42 +msgid "View details" +msgstr "" + +#: templates/quiz/quiz_list.html:41 +msgid "There are no available quizzes" +msgstr "" + +#: templates/quiz/sitting_detail.html:5 +msgid "Result of" +msgstr "" + +#: templates/quiz/sitting_detail.html:5 +msgid "for" +msgstr "" + +#: templates/quiz/sitting_detail.html:9 +msgid "Quiz title" +msgstr "" + +#: templates/quiz/sitting_detail.html:14 templates/quiz/sitting_list.html:15 +msgid "Completed" +msgstr "" + +#: templates/quiz/sitting_detail.html:22 +msgid "User answer" +msgstr "" + +#: templates/quiz/sitting_detail.html:41 +msgid "incorrect" +msgstr "" + +#: templates/quiz/sitting_detail.html:43 +msgid "Correct" +msgstr "" + +#: templates/quiz/sitting_detail.html:49 +msgid "Toggle whether correct" +msgstr "" + +#: templates/quiz/sitting_list.html:6 +msgid "List of complete exams" +msgstr "" + +#: templates/quiz/sitting_list.html:28 +msgid "Filter" +msgstr "" + +#: templates/quiz/sitting_list.html:52 +msgid "There are no matching quizzes" +msgstr "" diff --git a/quiz/locale/it/LC_MESSAGES/django.mo b/quiz/locale/it/LC_MESSAGES/django.mo index 926bc4c..375da5c 100644 Binary files a/quiz/locale/it/LC_MESSAGES/django.mo and b/quiz/locale/it/LC_MESSAGES/django.mo differ diff --git a/quiz/views.py b/quiz/views.py index 5e6819c..9ab5bfb 100644 --- a/quiz/views.py +++ b/quiz/views.py @@ -56,7 +56,7 @@ class CategoriesListView(ListView): class ViewQuizListByCategory(ListView): model = Quiz - template_name = 'view_quiz_category.html' + template_name = 'quiz/view_quiz_category.html' def dispatch(self, request, *args, **kwargs): self.category = get_object_or_404( @@ -80,7 +80,7 @@ class ViewQuizListByCategory(ListView): class QuizUserProgressView(TemplateView): - template_name = 'progress.html' + template_name = 'quiz/progress.html' @method_decorator(login_required) def dispatch(self, request, *args, **kwargs): @@ -134,14 +134,14 @@ class QuizMarkingDetail(QuizMarkerMixin, DetailView): class QuizTake(FormView): form_class = QuestionForm - template_name = 'question.html' + template_name = 'quiz/question.html' def dispatch(self, request, *args, **kwargs): - self.quiz = get_object_or_404(Quiz, url=self.kwargs['quiz_name']) + self.quiz = get_object_or_404(Quiz, url=kwargs['quiz_name']) if self.quiz.draft and not request.user.has_perm('quiz.change_quiz'): raise PermissionDenied - self.logged_in_user = self.request.user.is_authenticated() + self.logged_in_user = request.user.is_authenticated() if self.logged_in_user: self.sitting = Sitting.objects.user_sitting(request.user, @@ -150,7 +150,7 @@ class QuizTake(FormView): self.sitting = self.anon_load_sitting() if self.sitting is False: - return render(request, 'single_complete.html') + return render(request, 'quiz/single_complete.html') return super(QuizTake, self).dispatch(request, *args, **kwargs) @@ -242,7 +242,7 @@ class QuizTake(FormView): if self.quiz.exam_paper is False: self.sitting.delete() - return render(self.request, 'result.html', results) + return render(self.request, 'quiz/result.html', results) def anon_load_sitting(self): if self.quiz.single_attempt is True: @@ -351,7 +351,7 @@ class QuizTake(FormView): del self.request.session[self.quiz.anon_q_data()] - return render(self.request, 'result.html', results) + return render(self.request, 'quiz/result.html', results) def anon_session_score(session, to_add=0, possible=0): diff --git a/true_false/locale/fr/LC_MESSAGES/django.po b/true_false/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 0000000..ad1a4f5 --- /dev/null +++ b/true_false/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,35 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-12-10 11:58+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" + +#: models.py:11 +msgid "Tick this if the question is true. Leave it blank for false." +msgstr "" + +#: models.py:14 +msgid "Correct" +msgstr "" + +#: models.py:42 +msgid "True/False Question" +msgstr "" + +#: models.py:43 +msgid "True/False Questions" +msgstr ""