diff --git a/reports/locale/pt_BR/LC_MESSAGES/django.po b/reports/locale/pt_BR/LC_MESSAGES/django.po index ab8a269..a9a0729 100644 --- a/reports/locale/pt_BR/LC_MESSAGES/django.po +++ b/reports/locale/pt_BR/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-03-09 17:01-0300\n" +"POT-Creation-Date: 2017-03-16 15:36-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,70 +17,193 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: reports/forms.py:8 + +#: forms.py:23 +msgid "Kind Of Resource" +msgstr "Tipo de recurso" + +#: forms.py:24 +msgid "Tag" +msgstr "Tag" + +#: forms.py:36 msgid "Topics to select data from" -msgstr "" +msgstr "Topics de onde os dados serão retirados" -#: reports/forms.py:25 +#: forms.py:52 msgid "All" -msgstr "" +msgstr "Todos" + +#: forms.py:61 +msgid "The initial date can't be after the end one." +msgstr "A data inicial não pode ser depois da final" + +#: forms.py:66 +msgid "This date should be right or after " +msgstr "Esta data deve ser igual ou após" -#: reports/templates/reports/create.html:21 -#: reports/templates/reports/report.html.py:20 -#: reports/templates/reports/view.html:33 +#: forms.py:72 +msgid "This date should be right or before " +msgstr "Esta data deve ser igual ou anterior à" + +#: templates/reports/_form.html:4 +msgid "General Parameters" +msgstr "Parâmetros Gerais" + +#: templates/reports/_form.html:27 +msgid "Data Source" +msgstr "Fonte de dados" + +#: templates/reports/_form.html:60 +msgid "Interaction with resources" +msgstr "Interação com recursos" + +#: templates/reports/create.html:27 templates/reports/view.html:33 msgid "Analytics" msgstr "" -#: reports/templates/reports/create.html:31 -#: reports/templates/reports/report.html.py:30 -#: reports/templates/reports/view.html:43 +#: templates/reports/create.html:37 templates/reports/view.html:43 msgid "Interaction Data" -msgstr "" +msgstr "Dados de Interação" -#: reports/templates/reports/create.html:34 -#: reports/templates/reports/report.html.py:33 -#: reports/templates/reports/view.html:46 +#: templates/reports/create.html:40 templates/reports/view.html:46 msgid "Report Card" -msgstr "" +msgstr "Boletim" -#: reports/templates/reports/create.html:37 -#: reports/templates/reports/report.html.py:36 -#: reports/templates/reports/view.html:49 +#: templates/reports/create.html:43 templates/reports/view.html:49 msgid "Participation" -msgstr "" +msgstr "Participação" -#: reports/templates/reports/view.html:56 +#: templates/reports/view.html:56 msgid "Subject" -msgstr "" +msgstr "Assunto" -#: reports/templates/reports/view.html:57 +#: templates/reports/view.html:57 msgid "Topic" -msgstr "" +msgstr "Tópico" -#: reports/templates/reports/view.html:58 +#: templates/reports/view.html:58 msgid "Initial Date" -msgstr "" +msgstr "Data inicial" -#: reports/templates/reports/view.html:59 +#: templates/reports/view.html:59 msgid "End Date" -msgstr "" +msgstr "Data final" -#: reports/templates/reports/view.html:60 +#: templates/reports/view.html:60 msgid "new search" -msgstr "" +msgstr "Nova Busca" -#: reports/templates/reports/view.html:66 +#: templates/reports/view.html:66 msgid "register(s)" +msgstr "registro(s)" + +#: templates/reports/view.html:68 +msgid "Interactions Data" +msgstr "Dados de interação" + +#: views.py:67 +msgid "Report created successfully" +msgstr "Report criado com sucesso!" + +#: views.py:168 +msgid "Number of help posts created by the user." +msgstr "Número de postagens de dúvidas criadas no mural da disciplina." + +#: views.py:174 +msgid "Amount of comments on help posts created by the student." msgstr "" +"Número de comentários criados para as próprias postagens de dúvidas no mural " +"da disciplina." -#: reports/templates/reports/view.html:68 -msgid "Variable Descriptions" +#: views.py:179 +msgid "Amount of comments made by the student on teachers help posts." msgstr "" +"Número de comentários às postagens de dúvidas no mural da disciplina criadas " +"pelo professor." -#: reports/templates/reports/view.html:72 -msgid "Interactions Data" +#: views.py:183 +msgid "Amount of comments made by the student on other students help posts." msgstr "" +"Número de comentários às postagens de dúvidas no mural da disciplina criadas " +"por outros estudantes." -#: reports/views.py:47 -msgid "Report created successfully" +#: views.py:194 +msgid "Number of help posts created by the user that the teacher commented on." +msgstr "" +"Número de comentários às postagens de dúvidas no mural da disciplina criadas " +"por outros estudantes" + +#: views.py:202 +msgid "Number of help posts created by the user others students commented on." +msgstr "" +" Número de postagens de dúvidas criadas no mural da disciplina que foram " +"comentadas por outros estudantes." + +#: views.py:205 +msgid "Number of student visualizations on the mural of the subject." +msgstr "Número de visualizações do mural da disciplina." + +#: views.py:217 +msgid "Number of access to mural between 6 a.m to 12a.m. ." +msgstr "" +"Número de acessos ao ambiente virtual da disciplina no horário de 06h às 12h." + +#: views.py:221 +msgid "Number of access to mural between 0 p.m to 6p.m. ." +msgstr "" +"Número de acessos ao ambiente virtual da disciplina no horário de 12h às 18h." + +#: views.py:224 +msgid "Number of access to mural between 6 p.m to 12p.m. ." +msgstr "" +"Número de acessos ao ambiente virtual da disciplina no horário de 18h às 24h." + +#: views.py:228 +msgid "Number of access to mural between 0 a.m to 6a.m. ." msgstr "" +"Número de acessos ao ambiente virtual da disciplina no horário de 24h às 06h." + +#: views.py:233 +msgid "sunday" +msgstr "domingo" + +#: views.py:233 +msgid "monday" +msgstr "segunda-feira" + +#: views.py:233 +msgid "tuesday" +msgstr "terça-feira" + +#: views.py:233 +msgid "wednesday" +msgstr "quarta-feira" + +#: views.py:233 +msgid "thursday" +msgstr "quinta-feira" + +#: views.py:233 +msgid "friday" +msgstr "sexta-feira" + +#: views.py:233 +msgid "saturday" +msgstr "sábado" + +#: views.py:236 views.py:239 +msgid "Number of access to the subject on " +msgstr "Número de acesso ao subject no " + +#: views.py:242 +msgid "Number of distinct days the user access the subject. " +msgstr "Número de dias distintos que acessou o ambiente virtual da disciplina." + +#: views.py:243 +msgid "Class" +msgstr "Classe" + +#: views.py:244 +msgid "Performance" +msgstr "Desempenho" diff --git a/reports/views.py b/reports/views.py index d01fe56..b554645 100644 --- a/reports/views.py +++ b/reports/views.py @@ -233,14 +233,15 @@ class ViewReportView(LoginRequiredMixin, generic.TemplateView): day_names = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"] distinct_days = 0 for day_num in day_numbers: - interactions['Number of access to the subject on '+ day_names[day_num]] = Log.objects.filter(action="access", resource="subject", + interactions[_('Number of access to the subject on ')+ day_names[day_num]] = Log.objects.filter(action="access", resource="subject", user_id= student.id, context__contains = {'subject_id' : subject.id}, datetime__week_day = day_num).count() #to save the distinct days the user has accessed - if interactions['Number of access to the subject on '+ day_names[day_num]] > 0: + if interactions[_('Number of access to the subject on ')+ day_names[day_num]] > 0: distinct_days += 1 - interactions[_('Number of distinct days the user access the subject')] = distinct_days - + interactions[_('Number of distinct days the user access the subject. ')] = distinct_days + interactions[_("Class")] = "" + interactions[_("Performance")] = "" for value in interactions.values(): data[student].append(value) -- libgit2 0.21.2