Commit 8bd00c4c62567a302fb5fe9eb99347b767f7e83c

Authored by fbormann
1 parent 502256a8

translated all report messages and headers

reports/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-03-09 17:01-0300\n"
  11 +"POT-Creation-Date: 2017-03-16 15:36-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -17,70 +17,193 @@ msgstr &quot;&quot;
17 17 "Content-Type: text/plain; charset=UTF-8\n"
18 18 "Content-Transfer-Encoding: 8bit\n"
19 19 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
20   -#: reports/forms.py:8
  20 +
  21 +#: forms.py:23
  22 +msgid "Kind Of Resource"
  23 +msgstr "Tipo de recurso"
  24 +
  25 +#: forms.py:24
  26 +msgid "Tag"
  27 +msgstr "Tag"
  28 +
  29 +#: forms.py:36
21 30 msgid "Topics to select data from"
22   -msgstr ""
  31 +msgstr "Topics de onde os dados serão retirados"
23 32  
24   -#: reports/forms.py:25
  33 +#: forms.py:52
25 34 msgid "All"
26   -msgstr ""
  35 +msgstr "Todos"
  36 +
  37 +#: forms.py:61
  38 +msgid "The initial date can't be after the end one."
  39 +msgstr "A data inicial não pode ser depois da final"
  40 +
  41 +#: forms.py:66
  42 +msgid "This date should be right or after "
  43 +msgstr "Esta data deve ser igual ou após"
27 44  
28   -#: reports/templates/reports/create.html:21
29   -#: reports/templates/reports/report.html.py:20
30   -#: reports/templates/reports/view.html:33
  45 +#: forms.py:72
  46 +msgid "This date should be right or before "
  47 +msgstr "Esta data deve ser igual ou anterior à"
  48 +
  49 +#: templates/reports/_form.html:4
  50 +msgid "General Parameters"
  51 +msgstr "Parâmetros Gerais"
  52 +
  53 +#: templates/reports/_form.html:27
  54 +msgid "Data Source"
  55 +msgstr "Fonte de dados"
  56 +
  57 +#: templates/reports/_form.html:60
  58 +msgid "Interaction with resources"
  59 +msgstr "Interação com recursos"
  60 +
  61 +#: templates/reports/create.html:27 templates/reports/view.html:33
31 62 msgid "Analytics"
32 63 msgstr ""
33 64  
34   -#: reports/templates/reports/create.html:31
35   -#: reports/templates/reports/report.html.py:30
36   -#: reports/templates/reports/view.html:43
  65 +#: templates/reports/create.html:37 templates/reports/view.html:43
37 66 msgid "Interaction Data"
38   -msgstr ""
  67 +msgstr "Dados de Interação"
39 68  
40   -#: reports/templates/reports/create.html:34
41   -#: reports/templates/reports/report.html.py:33
42   -#: reports/templates/reports/view.html:46
  69 +#: templates/reports/create.html:40 templates/reports/view.html:46
43 70 msgid "Report Card"
44   -msgstr ""
  71 +msgstr "Boletim"
45 72  
46   -#: reports/templates/reports/create.html:37
47   -#: reports/templates/reports/report.html.py:36
48   -#: reports/templates/reports/view.html:49
  73 +#: templates/reports/create.html:43 templates/reports/view.html:49
49 74 msgid "Participation"
50   -msgstr ""
  75 +msgstr "Participação"
51 76  
52   -#: reports/templates/reports/view.html:56
  77 +#: templates/reports/view.html:56
53 78 msgid "Subject"
54   -msgstr ""
  79 +msgstr "Assunto"
55 80  
56   -#: reports/templates/reports/view.html:57
  81 +#: templates/reports/view.html:57
57 82 msgid "Topic"
58   -msgstr ""
  83 +msgstr "Tópico"
59 84  
60   -#: reports/templates/reports/view.html:58
  85 +#: templates/reports/view.html:58
61 86 msgid "Initial Date"
62   -msgstr ""
  87 +msgstr "Data inicial"
63 88  
64   -#: reports/templates/reports/view.html:59
  89 +#: templates/reports/view.html:59
65 90 msgid "End Date"
66   -msgstr ""
  91 +msgstr "Data final"
67 92  
68   -#: reports/templates/reports/view.html:60
  93 +#: templates/reports/view.html:60
69 94 msgid "new search"
70   -msgstr ""
  95 +msgstr "Nova Busca"
71 96  
72   -#: reports/templates/reports/view.html:66
  97 +#: templates/reports/view.html:66
73 98 msgid "register(s)"
  99 +msgstr "registro(s)"
  100 +
  101 +#: templates/reports/view.html:68
  102 +msgid "Interactions Data"
  103 +msgstr "Dados de interação"
  104 +
  105 +#: views.py:67
  106 +msgid "Report created successfully"
  107 +msgstr "Report criado com sucesso!"
  108 +
  109 +#: views.py:168
  110 +msgid "Number of help posts created by the user."
  111 +msgstr "Número de postagens de dúvidas criadas no mural da disciplina."
  112 +
  113 +#: views.py:174
  114 +msgid "Amount of comments on help posts created by the student."
74 115 msgstr ""
  116 +"Número de comentários criados para as próprias postagens de dúvidas no mural "
  117 +"da disciplina."
75 118  
76   -#: reports/templates/reports/view.html:68
77   -msgid "Variable Descriptions"
  119 +#: views.py:179
  120 +msgid "Amount of comments made by the student on teachers help posts."
78 121 msgstr ""
  122 +"Número de comentários às postagens de dúvidas no mural da disciplina criadas "
  123 +"pelo professor."
79 124  
80   -#: reports/templates/reports/view.html:72
81   -msgid "Interactions Data"
  125 +#: views.py:183
  126 +msgid "Amount of comments made by the student on other students help posts."
82 127 msgstr ""
  128 +"Número de comentários às postagens de dúvidas no mural da disciplina criadas "
  129 +"por outros estudantes."
83 130  
84   -#: reports/views.py:47
85   -msgid "Report created successfully"
  131 +#: views.py:194
  132 +msgid "Number of help posts created by the user that the teacher commented on."
  133 +msgstr ""
  134 +"Número de comentários às postagens de dúvidas no mural da disciplina criadas "
  135 +"por outros estudantes"
  136 +
  137 +#: views.py:202
  138 +msgid "Number of help posts created by the user others students commented on."
  139 +msgstr ""
  140 +" Número de postagens de dúvidas criadas no mural da disciplina que foram "
  141 +"comentadas por outros estudantes."
  142 +
  143 +#: views.py:205
  144 +msgid "Number of student visualizations on the mural of the subject."
  145 +msgstr "Número de visualizações do mural da disciplina."
  146 +
  147 +#: views.py:217
  148 +msgid "Number of access to mural between 6 a.m to 12a.m. ."
  149 +msgstr ""
  150 +"Número de acessos ao ambiente virtual da disciplina no horário de 06h às 12h."
  151 +
  152 +#: views.py:221
  153 +msgid "Number of access to mural between 0 p.m to 6p.m. ."
  154 +msgstr ""
  155 +"Número de acessos ao ambiente virtual da disciplina no horário de 12h às 18h."
  156 +
  157 +#: views.py:224
  158 +msgid "Number of access to mural between 6 p.m to 12p.m. ."
  159 +msgstr ""
  160 +"Número de acessos ao ambiente virtual da disciplina no horário de 18h às 24h."
  161 +
  162 +#: views.py:228
  163 +msgid "Number of access to mural between 0 a.m to 6a.m. ."
86 164 msgstr ""
  165 +"Número de acessos ao ambiente virtual da disciplina no horário de 24h às 06h."
  166 +
  167 +#: views.py:233
  168 +msgid "sunday"
  169 +msgstr "domingo"
  170 +
  171 +#: views.py:233
  172 +msgid "monday"
  173 +msgstr "segunda-feira"
  174 +
  175 +#: views.py:233
  176 +msgid "tuesday"
  177 +msgstr "terça-feira"
  178 +
  179 +#: views.py:233
  180 +msgid "wednesday"
  181 +msgstr "quarta-feira"
  182 +
  183 +#: views.py:233
  184 +msgid "thursday"
  185 +msgstr "quinta-feira"
  186 +
  187 +#: views.py:233
  188 +msgid "friday"
  189 +msgstr "sexta-feira"
  190 +
  191 +#: views.py:233
  192 +msgid "saturday"
  193 +msgstr "sábado"
  194 +
  195 +#: views.py:236 views.py:239
  196 +msgid "Number of access to the subject on "
  197 +msgstr "Número de acesso ao subject no "
  198 +
  199 +#: views.py:242
  200 +msgid "Number of distinct days the user access the subject. "
  201 +msgstr "Número de dias distintos que acessou o ambiente virtual da disciplina."
  202 +
  203 +#: views.py:243
  204 +msgid "Class"
  205 +msgstr "Classe"
  206 +
  207 +#: views.py:244
  208 +msgid "Performance"
  209 +msgstr "Desempenho"
... ...
reports/views.py
... ... @@ -233,14 +233,15 @@ class ViewReportView(LoginRequiredMixin, generic.TemplateView):
233 233 day_names = ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"]
234 234 distinct_days = 0
235 235 for day_num in day_numbers:
236   - interactions['Number of access to the subject on '+ day_names[day_num]] = Log.objects.filter(action="access", resource="subject",
  236 + interactions[_('Number of access to the subject on ')+ day_names[day_num]] = Log.objects.filter(action="access", resource="subject",
237 237 user_id= student.id, context__contains = {'subject_id' : subject.id}, datetime__week_day = day_num).count()
238 238 #to save the distinct days the user has accessed
239   - if interactions['Number of access to the subject on '+ day_names[day_num]] > 0:
  239 + if interactions[_('Number of access to the subject on ')+ day_names[day_num]] > 0:
240 240 distinct_days += 1
241 241  
242   - interactions[_('Number of distinct days the user access the subject')] = distinct_days
243   -
  242 + interactions[_('Number of distinct days the user access the subject. ')] = distinct_days
  243 + interactions[_("Class")] = ""
  244 + interactions[_("Performance")] = ""
244 245 for value in interactions.values():
245 246 data[student].append(value)
246 247  
... ...