diff --git a/locale/pt_BR/LC_MESSAGES/django.mo b/locale/pt_BR/LC_MESSAGES/django.mo index ba7fd0e..fc00c50 100644 Binary files a/locale/pt_BR/LC_MESSAGES/django.mo and b/locale/pt_BR/LC_MESSAGES/django.mo differ diff --git a/locale/pt_BR/LC_MESSAGES/django.po b/locale/pt_BR/LC_MESSAGES/django.po index 546f975..e45ca59 100644 --- a/locale/pt_BR/LC_MESSAGES/django.po +++ b/locale/pt_BR/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 2.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-03-15 18:40-0300\n" +"POT-Creation-Date: 2024-08-13 18:17-0300\n" "PO-Revision-Date: 2024-02-09 16:44-0300\n" "Last-Translator: Éder Porto \n" "Language-Team: PT_BR \n" @@ -46,7 +46,7 @@ msgstr "Nome" #: .\report\templates\report\detail_report.html:78 #: .\report\templates\report\list_reports.html:42 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 -#: .\report\views.py:250 +#: .\report\views.py:254 msgid "Initial date" msgstr "Data inicial" @@ -57,7 +57,7 @@ msgstr "Data inicial" #: .\report\templates\report\detail_report.html:83 #: .\report\templates\report\list_reports.html:43 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 -#: .\report\views.py:250 +#: .\report\views.py:254 msgid "End date" msgstr "Data final" @@ -67,7 +67,7 @@ msgstr "Data final" #: .\report\templates\report\detail_report.html:68 #: .\report\templates\report\list_reports.html:44 .\report\tests_views.py:778 #: .\report\tests_views.py:864 .\report\tests_views.py:937 -#: .\report\views.py:250 +#: .\report\views.py:254 msgid "Area responsible" msgstr "Gestão responsável" @@ -297,7 +297,7 @@ msgstr "Buscar" #: .\agenda\templates\agenda\list_events.html:35 #: .\bug\templates\bug\list_bugs.html:40 .\bug\views.py:50 .\bug\views.py:65 #: .\metrics\templates\metrics\list_metrics_per_project.html:40 -#: .\metrics\templates\metrics\list_metrics_per_project.html:84 +#: .\metrics\templates\metrics\list_metrics_per_project.html:80 #: .\metrics\templates\metrics\list_metrics_reports.html:30 #: .\report\templates\area_activated\list_areas.html:33 #: .\report\templates\funding\list_fundings.html:32 @@ -317,11 +317,11 @@ msgstr "Buscar" #: .\report\tests_views.py:1335 .\report\tests_views.py:1350 #: .\report\tests_views.py:1383 .\report\tests_views.py:1441 #: .\report\tests_views.py:1459 .\report\tests_views.py:1478 -#: .\report\tests_views.py:1497 .\report\views.py:249 .\report\views.py:388 -#: .\report\views.py:418 .\report\views.py:457 .\report\views.py:491 -#: .\report\views.py:518 .\report\views.py:536 .\report\views.py:553 -#: .\report\views.py:570 .\report\views.py:587 .\report\views.py:604 -#: .\report\views.py:621 +#: .\report\tests_views.py:1497 .\report\views.py:253 .\report\views.py:392 +#: .\report\views.py:422 .\report\views.py:461 .\report\views.py:495 +#: .\report\views.py:522 .\report\views.py:540 .\report\views.py:557 +#: .\report\views.py:574 .\report\views.py:591 .\report\views.py:608 +#: .\report\views.py:625 msgid "ID" msgstr "ID" @@ -350,7 +350,7 @@ msgstr "Mudanças feitas com sucesso!" #: .\agenda\views.py:104 .\agenda\views.py:150 .\bug\views.py:28 #: .\bug\views.py:112 .\bug\views.py:129 .\bug\views.py:151 -#: .\report\views.py:52 .\users\tests.py:162 .\users\views.py:22 +#: .\report\views.py:53 .\users\tests.py:162 .\users\views.py:22 msgid "Something went wrong!" msgstr "Algo deu errado!" @@ -383,80 +383,84 @@ msgid "To do" msgstr "A fazer" #: .\bug\models.py:10 +msgid "In evaluation" +msgstr "Em avaliação" + +#: .\bug\models.py:11 msgid "In progress" msgstr "Em progresso" -#: .\bug\models.py:11 +#: .\bug\models.py:12 msgid "Testing" msgstr "Em teste" -#: .\bug\models.py:12 .\metrics\templates\metrics\list_metrics.html:195 +#: .\bug\models.py:13 .\metrics\templates\metrics\list_metrics.html:195 #: .\metrics\templates\metrics\list_metrics_per_project.html:42 -#: .\metrics\templates\metrics\list_metrics_per_project.html:86 +#: .\metrics\templates\metrics\list_metrics_per_project.html:82 #: .\metrics\templates\metrics\list_metrics_reports.html:32 msgid "Done" msgstr "Feito" -#: .\bug\models.py:13 +#: .\bug\models.py:14 msgid "Canceled" msgstr "Cancelado" -#: .\bug\models.py:16 +#: .\bug\models.py:17 msgid "Error" msgstr "Erro" -#: .\bug\models.py:17 +#: .\bug\models.py:18 msgid "Improvement request" msgstr "Melhoria" -#: .\bug\models.py:18 +#: .\bug\models.py:19 msgid "New feature request" msgstr "Nova funcionalidade" -#: .\bug\models.py:19 +#: .\bug\models.py:20 msgid "Question or clarification" msgstr "Dúvida ou clarificação" -#: .\bug\models.py:21 .\bug\templates\bug\detail_bug.html:15 +#: .\bug\models.py:22 .\bug\templates\bug\detail_bug.html:15 #: .\bug\templates\bug\list_bugs.html:41 .\bug\views.py:50 .\bug\views.py:65 msgid "Title" msgstr "Título" -#: .\bug\models.py:22 .\bug\templates\bug\detail_bug.html:20 .\bug\views.py:50 +#: .\bug\models.py:23 .\bug\templates\bug\detail_bug.html:20 .\bug\views.py:50 #: .\bug\views.py:65 .\report\templates\report\administrative.html:64 #: .\report\templates\report\detail_report.html:60 #: .\report\templates\report\list_reports.html:40 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 -#: .\report\views.py:251 +#: .\report\views.py:255 msgid "Description" msgstr "Descrição" -#: .\bug\models.py:23 .\bug\templates\bug\detail_bug.html:42 +#: .\bug\models.py:24 .\bug\templates\bug\detail_bug.html:42 #: .\bug\templates\bug\list_bugs.html:44 .\bug\views.py:50 .\bug\views.py:65 msgid "Type" msgstr "Tipo" -#: .\bug\models.py:24 .\bug\templates\bug\detail_bug.html:38 +#: .\bug\models.py:25 .\bug\templates\bug\detail_bug.html:38 #: .\bug\templates\bug\list_bugs.html:45 .\bug\views.py:50 .\bug\views.py:65 #: .\metrics\templates\metrics\list_metrics_per_project.html:44 -#: .\metrics\templates\metrics\list_metrics_per_project.html:88 +#: .\metrics\templates\metrics\list_metrics_per_project.html:84 msgid "Status" msgstr "Status" -#: .\bug\models.py:25 .\bug\templates\bug\detail_bug.html:24 +#: .\bug\models.py:26 .\bug\templates\bug\detail_bug.html:24 #: .\bug\templates\bug\list_bugs.html:42 .\bug\views.py:50 .\bug\views.py:65 #: .\bug\views.py:66 msgid "Date of report" msgstr "Data de submissão" -#: .\bug\models.py:27 .\bug\templates\bug\detail_bug.html:29 .\bug\views.py:50 +#: .\bug\models.py:28 .\bug\templates\bug\detail_bug.html:29 .\bug\views.py:50 #: .\bug\views.py:65 .\bug\views.py:67 msgid "Update date" msgstr "Data de atualização" -#: .\bug\models.py:35 .\bug\templates\bug\detail_bug.html:47 .\bug\views.py:50 +#: .\bug\models.py:36 .\bug\templates\bug\detail_bug.html:47 .\bug\views.py:50 #: .\bug\views.py:65 .\report\tests_views.py:1012 .\report\tests_views.py:1069 -#: .\report\views.py:420 +#: .\report\views.py:424 msgid "Observation" msgstr "Observação" @@ -523,7 +527,7 @@ msgstr "Respondido com sucesso!" #: .\metrics\models.py:16 .\report\templates\report\detail_report.html:196 #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Project" msgstr "Projeto" @@ -556,16 +560,16 @@ msgid "Objectives" msgstr "Objetivos" #: .\metrics\models.py:68 .\report\tests_views.py:1010 -#: .\report\tests_views.py:1067 .\report\views.py:418 +#: .\report\tests_views.py:1067 .\report\views.py:422 msgid "Activity" msgstr "Atividade" #: .\metrics\models.py:139 #: .\metrics\templates\metrics\list_metrics_per_project.html:41 -#: .\metrics\templates\metrics\list_metrics_per_project.html:85 +#: .\metrics\templates\metrics\list_metrics_per_project.html:81 #: .\report\tests_views.py:1010 .\report\tests_views.py:1067 #: .\report\tests_views.py:1350 .\report\tests_views.py:1383 -#: .\report\views.py:388 .\report\views.py:418 +#: .\report\views.py:392 .\report\views.py:422 msgid "Metric" msgstr "Métrica" @@ -649,12 +653,12 @@ msgstr "" "S.A.R.A. é uma aplicação web para registrar e analisar relatórios de " "atividades qualitativas e quantitativas." -#: .\metrics\templates\metrics\home.html:22 .\report\views.py:61 -#: .\report\views.py:71 +#: .\metrics\templates\metrics\home.html:22 .\report\views.py:65 +#: .\report\views.py:75 msgid "Add report" msgstr "Adicionar relatório" -#: .\metrics\templates\metrics\home.html:23 .\report\views.py:157 +#: .\metrics\templates\metrics\home.html:23 .\report\views.py:161 msgid "List reports" msgstr "Lista de relatórios" @@ -835,7 +839,7 @@ msgstr "Número de participantes" #: .\report\templates\report\detail_report.html:170 #: .\report\templates\report\quantitative.html:30 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 -#: .\report\views.py:252 +#: .\report\views.py:256 msgid "Editors" msgstr "Editores" @@ -845,7 +849,7 @@ msgstr "Editores" #: .\report\templates\report\detail_report.html:176 #: .\report\templates\report\quantitative.html:40 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 -#: .\report\views.py:252 +#: .\report\views.py:256 msgid "Organizers" msgstr "Organizadores(as)" @@ -878,7 +882,7 @@ msgstr "Métricas principais e adicionais" #: .\report\templates\report\detail_report.html:182 #: .\report\templates\report\quantitative.html:50 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 -#: .\report\views.py:253 +#: .\report\views.py:257 msgid "Partnerships activated" msgstr "Parcerias ativadas" @@ -959,7 +963,7 @@ msgstr "Número de páginas criadas ou editadas" #: .\report\templates\report\quantitative.html:12 .\report\tests_views.py:780 #: .\report\tests_views.py:866 .\report\tests_views.py:939 #: .\report\tests_views.py:1011 .\report\tests_views.py:1068 -#: .\report\views.py:252 .\report\views.py:419 +#: .\report\views.py:256 .\report\views.py:423 msgid "Number of participants" msgstr "Número de participantes" @@ -969,7 +973,7 @@ msgstr "Número de participantes" #: .\report\templates\report\detail_report.html:115 #: .\report\templates\report\operations.html:61 #: .\report\templates\report\operations.html:144 .\report\tests_views.py:1352 -#: .\report\tests_views.py:1387 .\report\views.py:390 +#: .\report\tests_views.py:1387 .\report\views.py:394 msgid "Number of resources" msgstr "Número de recursos" @@ -980,7 +984,7 @@ msgstr "Número de recursos" #: .\report\templates\report\quantitative.html:21 .\report\tests_views.py:781 #: .\report\tests_views.py:867 .\report\tests_views.py:940 #: .\report\tests_views.py:1012 .\report\tests_views.py:1069 -#: .\report\views.py:252 .\report\views.py:419 +#: .\report\views.py:256 .\report\views.py:423 msgid "Number of feedbacks" msgstr "Número de respostas" @@ -988,7 +992,7 @@ msgstr "Número de respostas" #: .\metrics\templates\metrics\list_metrics.html:281 #: .\metrics\templates\metrics\translations.html:19 #: .\report\tests_views.py:1011 .\report\tests_views.py:1068 -#: .\report\views.py:418 +#: .\report\views.py:422 msgid "Number of editors" msgstr "Número de editores" @@ -1005,7 +1009,7 @@ msgstr "Número de organizadores" #: .\report\templates\report\operations.html:70 #: .\report\templates\report\operations.html:153 .\report\tests_views.py:1011 #: .\report\tests_views.py:1068 .\report\tests_views.py:1352 -#: .\report\tests_views.py:1387 .\report\views.py:390 .\report\views.py:419 +#: .\report\tests_views.py:1387 .\report\views.py:394 .\report\views.py:423 msgid "Number of partnerships activated" msgstr "Número de parcerias ativadas" @@ -1047,25 +1051,25 @@ msgid "Number of pages" msgstr "Número de páginas" #: .\metrics\templates\metrics\list_metrics_per_project.html:39 -#: .\metrics\templates\metrics\list_metrics_per_project.html:83 +#: .\metrics\templates\metrics\list_metrics_per_project.html:79 #: .\report\templates\report\list_reports.html:41 msgid "Actions" msgstr "Ações" #: .\metrics\templates\metrics\list_metrics_per_project.html:43 -#: .\metrics\templates\metrics\list_metrics_per_project.html:87 +#: .\metrics\templates\metrics\list_metrics_per_project.html:83 msgid "Goal" msgstr "Meta" #: .\metrics\templates\metrics\list_metrics_per_project.html:53 -#: .\metrics\templates\metrics\list_metrics_per_project.html:97 +#: .\metrics\templates\metrics\list_metrics_per_project.html:93 #: .\metrics\templates\metrics\list_metrics_reports.html:39 #: .\report\templates\report\list_reports.html:53 msgid "View" msgstr "Visualizar" #: .\metrics\templates\metrics\list_metrics_reports.html:31 -#: .\report\models.py:215 .\report\views.py:213 +#: .\report\models.py:216 .\report\views.py:217 msgid "Report" msgstr "Relatório" @@ -1084,7 +1088,7 @@ msgstr "Metawiki" #: .\report\templates\report\operations.html:52 #: .\report\templates\report\operations.html:135 .\report\tests_views.py:1012 #: .\report\tests_views.py:1069 .\report\tests_views.py:1352 -#: .\report\tests_views.py:1387 .\report\views.py:390 .\report\views.py:420 +#: .\report\tests_views.py:1387 .\report\views.py:394 .\report\views.py:424 msgid "Number of events" msgstr "Número de eventos" @@ -1108,11 +1112,11 @@ msgstr "Outra métrica" msgid "Occurrence" msgstr "Ocorrência" -#: .\metrics\templatetags\metricstags.py:26 .\metrics\tests.py:525 +#: .\metrics\templatetags\metricstags.py:30 .\metrics\tests.py:525 msgid "Yes" msgstr "Sim" -#: .\metrics\templatetags\metricstags.py:26 .\metrics\tests.py:529 +#: .\metrics\templatetags\metricstags.py:30 .\metrics\tests.py:529 msgid "No" msgstr "Não" @@ -1120,21 +1124,21 @@ msgstr "Não" msgid "Test" msgstr "Teste" -#: .\metrics\views.py:42 +#: .\metrics\views.py:43 msgid "Home" msgstr "Página inicial" -#: .\metrics\views.py:47 +#: .\metrics\views.py:48 msgid "About" msgstr "Sobre" -#: .\metrics\views.py:68 .\metrics\views.py:80 +#: .\metrics\views.py:69 .\metrics\views.py:81 msgid "Show metrics per project" msgstr "Acompanhar métricas por projeto" #: .\report\models.py:19 .\report\tests_views.py:1441 #: .\report\tests_views.py:1459 .\report\tests_views.py:1478 -#: .\report\tests_views.py:1497 .\report\views.py:491 +#: .\report\tests_views.py:1497 .\report\views.py:495 msgid "Funding" msgstr "Financiamento" @@ -1153,7 +1157,7 @@ msgstr "Parceiro" #: .\report\models.py:45 .\report\templates\partners\list_partners.html:21 #: .\report\tests_views.py:1298 .\report\tests_views.py:1309 -#: .\report\views.py:604 +#: .\report\views.py:608 msgid "Partners" msgstr "Parceiros" @@ -1162,7 +1166,7 @@ msgid "Organizer" msgstr "Organizador(a)" #: .\report\models.py:68 .\report\tests_views.py:1324 -#: .\report\tests_views.py:1335 .\report\views.py:621 +#: .\report\tests_views.py:1335 .\report\views.py:625 msgid "Technology" msgstr "Tecnologia" @@ -1177,7 +1181,7 @@ msgstr "Nome da gestão ativada" #: .\report\models.py:80 .\report\tests_views.py:779 #: .\report\tests_views.py:865 .\report\tests_views.py:938 #: .\report\tests_views.py:1138 .\report\tests_views.py:1152 -#: .\report\views.py:250 .\report\views.py:518 +#: .\report\views.py:254 .\report\views.py:522 msgid "Area activated" msgstr "Gestão ativada" @@ -1188,7 +1192,7 @@ msgid "Areas activated" msgstr "Gestões ativadas" #: .\report\models.py:102 .\report\tests_views.py:1231 -#: .\report\tests_views.py:1246 .\report\views.py:570 +#: .\report\tests_views.py:1246 .\report\views.py:574 msgid "Learning area" msgstr "Área de aprendizagem" @@ -1212,7 +1216,7 @@ msgstr "Objetivo de avaliação" msgid "Evaluation objectives" msgstr "Objetivos de avaliação" -#: .\report\models.py:216 .\templates\navbar.html:34 +#: .\report\models.py:217 .\templates\navbar.html:34 msgid "Reports" msgstr "Relatórios" @@ -1222,11 +1226,11 @@ msgstr "Adicionar gestão ativada" #: .\report\templates\area_activated\list_areas.html:35 #: .\report\tests_views.py:1138 .\report\tests_views.py:1152 -#: .\report\views.py:518 +#: .\report\views.py:522 msgid "Contact" msgstr "Contato" -#: .\report\templates\funding\add_funding.html:14 .\report\views.py:119 +#: .\report\templates\funding\add_funding.html:14 .\report\views.py:123 msgid "Add funding" msgstr "Adicionar financiamento" @@ -1234,7 +1238,7 @@ msgstr "Adicionar financiamento" #: .\report\templates\technologies\list_technologies.html:34 #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Value" msgstr "Valor" @@ -1290,14 +1294,14 @@ msgstr "Estratégico" #: .\report\templates\report\update_report.html:24 #: .\report\templates\report\update_report.html:47 .\report\tests_views.py:791 #: .\report\tests_views.py:877 .\report\tests_views.py:950 -#: .\report\views.py:267 +#: .\report\views.py:271 msgid "Learning" msgstr "Aprendizagem" #: .\report\templates\report\administrative.html:5 #: .\report\templates\report\detail_report.html:64 .\report\tests_views.py:778 #: .\report\tests_views.py:864 .\report\tests_views.py:937 -#: .\report\views.py:249 +#: .\report\views.py:253 msgid "Activity associated" msgstr "Atividade associada" @@ -1331,7 +1335,7 @@ msgstr "Título conciso para o relatório" #: .\report\templates\report\administrative.html:71 #: .\report\templates\report\detail_report.html:89 .\report\tests_views.py:780 #: .\report\tests_views.py:866 .\report\tests_views.py:939 -#: .\report\views.py:251 +#: .\report\views.py:255 msgid "Funding associated" msgstr "Financiamento associado" @@ -1342,7 +1346,7 @@ msgstr "Essa atividade está associada com algum financiamento específico?" #: .\report\templates\report\administrative.html:84 #: .\report\templates\report\detail_report.html:96 .\report\tests_views.py:780 #: .\report\tests_views.py:866 .\report\tests_views.py:939 -#: .\report\views.py:251 +#: .\report\views.py:255 msgid "Links" msgstr "Links" @@ -1392,48 +1396,48 @@ msgstr "Relatório nº %(id_)s" #: .\report\templates\report\detail_report.html:123 #: .\report\templates\report\operations.html:79 #: .\report\templates\report\operations.html:162 .\report\tests_views.py:1353 -#: .\report\tests_views.py:1388 .\report\views.py:391 +#: .\report\tests_views.py:1388 .\report\views.py:395 msgid "Number of new partnerships" msgstr "Número de novas parcerias" #: .\report\templates\report\detail_report.html:127 #: .\report\templates\report\operations.html:25 #: .\report\templates\report\operations.html:108 .\report\tests_views.py:1351 -#: .\report\tests_views.py:1385 .\report\views.py:389 +#: .\report\tests_views.py:1385 .\report\views.py:393 msgid "Number of new followers" msgstr "Número de novos seguidores" #: .\report\templates\report\detail_report.html:131 #: .\report\templates\report\operations.html:34 #: .\report\templates\report\operations.html:117 .\report\tests_views.py:1351 -#: .\report\tests_views.py:1385 .\report\views.py:389 +#: .\report\tests_views.py:1385 .\report\views.py:393 msgid "Number of mentions" msgstr "Número de menções" #: .\report\templates\report\detail_report.html:135 #: .\report\templates\report\operations.html:16 #: .\report\templates\report\operations.html:99 .\report\tests_views.py:1350 -#: .\report\tests_views.py:1384 .\report\views.py:388 +#: .\report\tests_views.py:1384 .\report\views.py:392 msgid "Number of people reached through social media" msgstr "Número de pessoas alcançadas pela redes sociais" #: .\report\templates\report\detail_report.html:139 #: .\report\templates\report\operations.html:43 #: .\report\templates\report\operations.html:126 .\report\tests_views.py:1351 -#: .\report\tests_views.py:1386 .\report\views.py:389 +#: .\report\tests_views.py:1386 .\report\views.py:393 msgid "Number of community communications" msgstr "Número de comunicações comunitárias" #: .\report\templates\report\detail_report.html:152 .\report\tests_views.py:792 #: .\report\tests_views.py:878 .\report\tests_views.py:951 -#: .\report\views.py:267 +#: .\report\views.py:271 msgid "Metrics related" msgstr "Métricas associadas" #: .\report\templates\report\detail_report.html:188 #: .\report\templates\report\quantitative.html:63 .\report\tests_views.py:782 #: .\report\tests_views.py:868 .\report\tests_views.py:941 -#: .\report\views.py:253 +#: .\report\views.py:257 msgid "Technologies used" msgstr "Tecnologias usadas" @@ -1670,442 +1674,446 @@ msgstr "Voltar para o relatório quantitativo" msgid "Fill learning report" msgstr "Preencher relatório de aprendizagem" -#: .\report\templates\technologies\add_technology.html:14 .\report\views.py:149 +#: .\report\templates\technologies\add_technology.html:14 .\report\views.py:153 msgid "Add technology" msgstr "Adicionar tecnologia" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 +#: .\report\tests_views.py:936 .\report\views.py:253 msgid "Created by" msgstr "Criado por" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 .\report\views.py:382 +#: .\report\tests_views.py:936 .\report\views.py:253 .\report\views.py:386 msgid "Created at" msgstr "Criado em" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 +#: .\report\tests_views.py:936 .\report\views.py:253 msgid "Modified by" msgstr "Modificado por" #: .\report\tests_views.py:777 .\report\tests_views.py:863 -#: .\report\tests_views.py:936 .\report\views.py:249 .\report\views.py:383 +#: .\report\tests_views.py:936 .\report\views.py:253 .\report\views.py:387 msgid "Modified at" msgstr "Modificado em" #: .\report\tests_views.py:778 .\report\tests_views.py:864 -#: .\report\tests_views.py:937 .\report\views.py:250 +#: .\report\tests_views.py:937 .\report\views.py:254 msgid "Name of the activity" msgstr "Nome da atividade" #: .\report\tests_views.py:780 .\report\tests_views.py:866 -#: .\report\tests_views.py:939 .\report\views.py:251 +#: .\report\tests_views.py:939 .\report\views.py:255 msgid "Public communication" msgstr "Comunicação pública" #: .\report\tests_views.py:782 .\report\tests_views.py:868 #: .\report\tests_views.py:941 .\report\tests_views.py:1013 -#: .\report\tests_views.py:1070 .\report\views.py:254 .\report\views.py:420 +#: .\report\tests_views.py:1070 .\report\views.py:258 .\report\views.py:424 msgid "# Wikipedia created" msgstr "# criados(as) na Wikipédia" #: .\report\tests_views.py:782 .\report\tests_views.py:868 #: .\report\tests_views.py:941 .\report\tests_views.py:1013 -#: .\report\tests_views.py:1070 .\report\views.py:254 .\report\views.py:421 +#: .\report\tests_views.py:1070 .\report\views.py:258 .\report\views.py:425 msgid "# Wikipedia edited" msgstr "# editados(as) na Wikipédia" #: .\report\tests_views.py:783 .\report\tests_views.py:869 #: .\report\tests_views.py:942 .\report\tests_views.py:1013 -#: .\report\tests_views.py:1070 .\report\views.py:255 .\report\views.py:421 +#: .\report\tests_views.py:1070 .\report\views.py:259 .\report\views.py:425 msgid "# Commons created" msgstr "# criados(as) no Commons" #: .\report\tests_views.py:783 .\report\tests_views.py:869 #: .\report\tests_views.py:942 .\report\tests_views.py:1014 -#: .\report\tests_views.py:1071 .\report\views.py:255 .\report\views.py:421 +#: .\report\tests_views.py:1071 .\report\views.py:259 .\report\views.py:425 msgid "# Commons edited" msgstr "# editados(as) no Commons" #: .\report\tests_views.py:783 .\report\tests_views.py:869 #: .\report\tests_views.py:942 .\report\tests_views.py:1014 -#: .\report\tests_views.py:1071 .\report\views.py:256 .\report\views.py:421 +#: .\report\tests_views.py:1071 .\report\views.py:260 .\report\views.py:425 msgid "# Wikidata created" msgstr "# criados(as) no Wikidata" #: .\report\tests_views.py:784 .\report\tests_views.py:870 #: .\report\tests_views.py:943 .\report\tests_views.py:1014 -#: .\report\tests_views.py:1071 .\report\views.py:256 .\report\views.py:422 +#: .\report\tests_views.py:1071 .\report\views.py:260 .\report\views.py:426 msgid "# Wikidata edited" msgstr "# editados(as) no Wikidata" #: .\report\tests_views.py:784 .\report\tests_views.py:870 #: .\report\tests_views.py:943 .\report\tests_views.py:1015 -#: .\report\tests_views.py:1072 .\report\views.py:257 .\report\views.py:422 +#: .\report\tests_views.py:1072 .\report\views.py:261 .\report\views.py:426 msgid "# Wikiversity created" msgstr "# criados(as) na Wikiversidade" #: .\report\tests_views.py:784 .\report\tests_views.py:870 #: .\report\tests_views.py:943 .\report\tests_views.py:1015 -#: .\report\tests_views.py:1072 .\report\views.py:257 .\report\views.py:422 +#: .\report\tests_views.py:1072 .\report\views.py:261 .\report\views.py:426 msgid "# Wikiversity edited" msgstr "# editados(as) na Wikiversidade" #: .\report\tests_views.py:785 .\report\tests_views.py:871 #: .\report\tests_views.py:944 .\report\tests_views.py:1015 -#: .\report\tests_views.py:1072 .\report\views.py:258 .\report\views.py:422 +#: .\report\tests_views.py:1072 .\report\views.py:262 .\report\views.py:426 msgid "# Wikibooks created" msgstr "# criados(as) no Wikilivross" #: .\report\tests_views.py:785 .\report\tests_views.py:871 #: .\report\tests_views.py:944 .\report\tests_views.py:1016 -#: .\report\tests_views.py:1073 .\report\views.py:258 .\report\views.py:423 +#: .\report\tests_views.py:1073 .\report\views.py:262 .\report\views.py:427 msgid "# Wikibooks edited" msgstr "# editados(as) no Wikilivross" #: .\report\tests_views.py:785 .\report\tests_views.py:871 #: .\report\tests_views.py:944 .\report\tests_views.py:1016 -#: .\report\tests_views.py:1073 .\report\views.py:259 .\report\views.py:423 +#: .\report\tests_views.py:1073 .\report\views.py:263 .\report\views.py:427 msgid "# Wikisource created" msgstr "# criados(as) no Wikisource" #: .\report\tests_views.py:786 .\report\tests_views.py:872 #: .\report\tests_views.py:945 .\report\tests_views.py:1016 -#: .\report\tests_views.py:1073 .\report\views.py:259 .\report\views.py:423 +#: .\report\tests_views.py:1073 .\report\views.py:263 .\report\views.py:427 msgid "# Wikisource edited" msgstr "# editados(as) no Wikisource" #: .\report\tests_views.py:786 .\report\tests_views.py:872 #: .\report\tests_views.py:945 .\report\tests_views.py:1017 -#: .\report\tests_views.py:1074 .\report\views.py:260 .\report\views.py:423 +#: .\report\tests_views.py:1074 .\report\views.py:264 .\report\views.py:427 msgid "# Wikinews created" msgstr "# criados(as) no Wikinotícias" #: .\report\tests_views.py:786 .\report\tests_views.py:872 #: .\report\tests_views.py:945 .\report\tests_views.py:1017 -#: .\report\tests_views.py:1074 .\report\views.py:260 .\report\views.py:424 +#: .\report\tests_views.py:1074 .\report\views.py:264 .\report\views.py:428 msgid "# Wikinews edited" msgstr "# editados(as) no Wikinotícias" #: .\report\tests_views.py:787 .\report\tests_views.py:873 #: .\report\tests_views.py:946 .\report\tests_views.py:1017 -#: .\report\tests_views.py:1074 .\report\views.py:261 .\report\views.py:424 +#: .\report\tests_views.py:1074 .\report\views.py:265 .\report\views.py:428 msgid "# Wikiquote created" msgstr "# criados(as) no Wikiquote" #: .\report\tests_views.py:787 .\report\tests_views.py:873 #: .\report\tests_views.py:946 .\report\tests_views.py:1018 -#: .\report\tests_views.py:1075 .\report\views.py:261 .\report\views.py:424 +#: .\report\tests_views.py:1075 .\report\views.py:265 .\report\views.py:428 msgid "# Wikiquote edited" msgstr "# editados(as) no Wikiquote" #: .\report\tests_views.py:787 .\report\tests_views.py:873 #: .\report\tests_views.py:946 .\report\tests_views.py:1018 -#: .\report\tests_views.py:1075 .\report\views.py:262 .\report\views.py:424 +#: .\report\tests_views.py:1075 .\report\views.py:266 .\report\views.py:428 msgid "# Wiktionary created" msgstr "# criados(as) no Wikcionário" #: .\report\tests_views.py:788 .\report\tests_views.py:874 #: .\report\tests_views.py:947 .\report\tests_views.py:1018 -#: .\report\tests_views.py:1075 .\report\views.py:262 .\report\views.py:425 +#: .\report\tests_views.py:1075 .\report\views.py:266 .\report\views.py:429 msgid "# Wiktionary edited" msgstr "# editados(as) no Wikcionário" #: .\report\tests_views.py:788 .\report\tests_views.py:874 #: .\report\tests_views.py:947 .\report\tests_views.py:1019 -#: .\report\tests_views.py:1076 .\report\views.py:263 .\report\views.py:425 +#: .\report\tests_views.py:1076 .\report\views.py:267 .\report\views.py:429 msgid "# Wikivoyage created" msgstr "# criados(as) no Wikivoyage" #: .\report\tests_views.py:788 .\report\tests_views.py:874 #: .\report\tests_views.py:947 .\report\tests_views.py:1019 -#: .\report\tests_views.py:1076 .\report\views.py:263 .\report\views.py:425 +#: .\report\tests_views.py:1076 .\report\views.py:267 .\report\views.py:429 msgid "# Wikivoyage edited" msgstr "# editados(as) no Wikivoyage" #: .\report\tests_views.py:789 .\report\tests_views.py:875 #: .\report\tests_views.py:948 .\report\tests_views.py:1019 -#: .\report\tests_views.py:1076 .\report\views.py:264 .\report\views.py:425 +#: .\report\tests_views.py:1076 .\report\views.py:268 .\report\views.py:429 msgid "# Wikispecies created" msgstr "# criados(as) no Wikispecies" #: .\report\tests_views.py:789 .\report\tests_views.py:875 #: .\report\tests_views.py:948 .\report\tests_views.py:1020 -#: .\report\tests_views.py:1077 .\report\views.py:264 .\report\views.py:426 +#: .\report\tests_views.py:1077 .\report\views.py:268 .\report\views.py:430 msgid "# Wikispecies edited" msgstr "# editados(as) no Wikispecies" #: .\report\tests_views.py:789 .\report\tests_views.py:875 #: .\report\tests_views.py:948 .\report\tests_views.py:1020 -#: .\report\tests_views.py:1077 .\report\views.py:265 .\report\views.py:426 +#: .\report\tests_views.py:1077 .\report\views.py:269 .\report\views.py:430 msgid "# Metawiki created" msgstr "# criados(as) no Metawiki" #: .\report\tests_views.py:790 .\report\tests_views.py:876 #: .\report\tests_views.py:949 .\report\tests_views.py:1020 -#: .\report\tests_views.py:1077 .\report\views.py:265 .\report\views.py:426 +#: .\report\tests_views.py:1077 .\report\views.py:269 .\report\views.py:430 msgid "# Metawiki edited" msgstr "# editados(as) no Metawiki" #: .\report\tests_views.py:790 .\report\tests_views.py:876 #: .\report\tests_views.py:949 .\report\tests_views.py:1021 -#: .\report\tests_views.py:1078 .\report\views.py:266 .\report\views.py:426 +#: .\report\tests_views.py:1078 .\report\views.py:270 .\report\views.py:430 msgid "# MediaWiki created" msgstr "# criados(as) no Mediawiki" #: .\report\tests_views.py:790 .\report\tests_views.py:876 #: .\report\tests_views.py:949 .\report\tests_views.py:1021 -#: .\report\tests_views.py:1078 .\report\views.py:266 .\report\views.py:427 +#: .\report\tests_views.py:1078 .\report\views.py:270 .\report\views.py:431 msgid "# MediaWiki edited" msgstr "# editados(as) no Mediawiki" #: .\report\tests_views.py:791 .\report\tests_views.py:877 -#: .\report\tests_views.py:950 .\report\views.py:267 +#: .\report\tests_views.py:950 .\report\views.py:271 msgid "Directions related" msgstr "Direções relacionadas" #: .\report\tests_views.py:791 .\report\tests_views.py:877 -#: .\report\tests_views.py:950 .\report\views.py:267 +#: .\report\tests_views.py:950 .\report\views.py:271 msgid "Learning questions related" msgstr "Questões de aprendizagem relacionadas" #: .\report\tests_views.py:1010 .\report\tests_views.py:1067 -#: .\report\views.py:418 +#: .\report\views.py:422 msgid "Activity ID" msgstr "ID da atividade" #: .\report\tests_views.py:1010 .\report\tests_views.py:1067 -#: .\report\views.py:418 +#: .\report\views.py:422 msgid "Activity code" msgstr "Código da atividade" #: .\report\tests_views.py:1012 .\report\tests_views.py:1069 -#: .\report\views.py:420 +#: .\report\views.py:424 msgid "Other type? Which?" msgstr "Outro tipo? Qual?" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 .\users\templates\users\register.html:30 +#: .\report\views.py:461 .\users\templates\users\register.html:30 msgid "First name" msgstr "Primeiro nome" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 +#: .\report\views.py:461 msgid "Last Name" msgstr "Último nome" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 +#: .\report\views.py:461 msgid "Username on Wiki (WMB)" msgstr "Nome de usuário Wiki (WMB)" #: .\report\tests_views.py:1090 .\report\tests_views.py:1117 -#: .\report\views.py:457 +#: .\report\views.py:461 msgid "Username on Wiki" msgstr "Nome de usuário na Wiki" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 .\users\models.py:56 +#: .\report\views.py:462 .\users\models.py:56 msgid "Photograph" msgstr "Foto no Commons" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 .\users\models.py:37 +#: .\report\views.py:462 .\users\models.py:37 #: .\users\templates\users\profile.html:40 msgid "Position" msgstr "Posição" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 +#: .\report\views.py:462 msgid "Twitter" msgstr "Twitter" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 +#: .\report\views.py:462 msgid "Facebook" msgstr "Facebook" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 +#: .\report\views.py:462 msgid "Instagram" msgstr "Instagram" #: .\report\tests_views.py:1091 .\report\tests_views.py:1118 -#: .\report\views.py:458 .\users\templates\users\register.html:24 +#: .\report\views.py:462 .\users\templates\users\register.html:24 msgid "Email" msgstr "E-mail" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Wikidata item" msgstr "Item Wikidata" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "LinkedIn" msgstr "LinkedIn" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Lattes" msgstr "Lattes" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Orcid" msgstr "Orcid" #: .\report\tests_views.py:1092 .\report\tests_views.py:1119 -#: .\report\views.py:459 +#: .\report\views.py:463 msgid "Google_scholar" msgstr "Google Acadêmico" #: .\report\tests_views.py:1170 .\report\tests_views.py:1186 -#: .\report\views.py:536 +#: .\report\views.py:540 msgid "Direction related" msgstr "Direção relacionada" #: .\report\tests_views.py:1170 .\report\tests_views.py:1186 -#: .\report\views.py:536 +#: .\report\views.py:540 msgid "Strategic axis ID" msgstr "ID do eixo estratégico" #: .\report\tests_views.py:1170 .\report\tests_views.py:1186 -#: .\report\views.py:536 +#: .\report\views.py:540 msgid "Strategic axis text" msgstr "Texto do eixo estratégico" #: .\report\tests_views.py:1203 .\report\tests_views.py:1216 -#: .\report\views.py:553 .\users\templates\users\login.html:17 +#: .\report\views.py:557 .\users\templates\users\login.html:17 #: .\users\templates\users\register.html:18 msgid "Username" msgstr "Nome de usuário(a/e)" #: .\report\tests_views.py:1203 .\report\tests_views.py:1216 -#: .\report\views.py:553 +#: .\report\views.py:557 msgid "Number of reports including this editor" msgstr "Número de relatórios incluindo este editor" #: .\report\tests_views.py:1231 .\report\tests_views.py:1246 -#: .\report\views.py:570 +#: .\report\views.py:574 msgid "Learning question" msgstr "Pergunta de aprendizado" #: .\report\tests_views.py:1231 .\report\tests_views.py:1246 -#: .\report\views.py:570 +#: .\report\views.py:574 msgid "Learning area ID" msgstr "ID da área de aprendizagem" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Organizer's name" msgstr "Nome do(a) organizador(a)" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Organizer's institution ID" msgstr "ID da instituição do(a) organizador(a)" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Organizer institution's name" msgstr "Nome da instituição do(a) organizador(a)" #: .\report\tests_views.py:1263 .\report\tests_views.py:1280 -#: .\report\views.py:587 +#: .\report\views.py:591 msgid "Number of reports including this organizer" msgstr "Número de relatórios incluindo este organizador" #: .\report\tests_views.py:1298 .\report\tests_views.py:1309 -#: .\report\views.py:604 +#: .\report\views.py:608 msgid "Partner's website" msgstr "Site do parceiro" #: .\report\tests_views.py:1298 .\report\tests_views.py:1309 -#: .\report\views.py:604 +#: .\report\views.py:608 msgid "Number of reports including this partner" msgstr "Número de relatórios incluindo este parceiro" #: .\report\tests_views.py:1324 .\report\tests_views.py:1335 -#: .\report\views.py:621 +#: .\report\views.py:625 msgid "Number of reports including this technology" msgstr "Número de relatórios incluindo esta tecnologia" #: .\report\tests_views.py:1350 .\report\tests_views.py:1383 -#: .\report\views.py:388 +#: .\report\views.py:392 msgid "Report ID" msgstr "ID Relatório" #: .\report\tests_views.py:1350 .\report\tests_views.py:1383 -#: .\report\views.py:388 +#: .\report\views.py:392 msgid "Metric ID" msgstr "ID Métrica" #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Project ID" msgstr "ID Projeto" #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Active?" msgstr "Ativo?" #: .\report\tests_views.py:1441 .\report\tests_views.py:1459 #: .\report\tests_views.py:1478 .\report\tests_views.py:1497 -#: .\report\views.py:491 +#: .\report\views.py:495 msgid "Type of project" msgstr "Tipo de projeto" #: .\report\tests_views.py:1452 .\report\tests_views.py:1506 -#: .\report\views.py:500 +#: .\report\views.py:504 msgid "Ordinary" msgstr "Ordinário" -#: .\report\tests_views.py:1471 .\report\views.py:502 +#: .\report\tests_views.py:1471 .\report\views.py:506 msgid "Current Plan of Activities" msgstr "Plano de atividades corrente" #: .\report\tests_views.py:1490 .\report\tests_views.py:1513 -#: .\report\views.py:504 +#: .\report\views.py:508 msgid "Main funding" msgstr "Financiamento principal" -#: .\report\views.py:48 +#: .\report\views.py:50 msgid "Report registered successfully!" msgstr "Relatório registrado com sucesso!" -#: .\report\views.py:104 +#: .\report\views.py:57 +msgid "It seems that you already submitted this report!" +msgstr "Parece que você já submeteu este relatório!" + +#: .\report\views.py:108 msgid "Add area" msgstr "Adicionar área" -#: .\report\views.py:134 +#: .\report\views.py:138 msgid "Add partnership" msgstr "Adicionar parceria" -#: .\report\views.py:171 +#: .\report\views.py:175 #, python-format msgid "View report %(report_id)s" msgstr "Visualizar relatório %(report_id)s" -#: .\report\views.py:216 +#: .\report\views.py:220 msgid "SARA - Reports" msgstr "SARA - Relatórios" -#: .\report\views.py:710 +#: .\report\views.py:714 #, python-format msgid "Edit report %(report_id)s" msgstr "Editar relatório %(report_id)s" -#: .\report\views.py:720 +#: .\report\views.py:724 #, python-format msgid "Delete report %(report_id)s" msgstr "Excluir relatório %(report_id)s" -#: .\report\views.py:793 +#: .\report\views.py:797 msgid "Other metrics" msgstr "Outras métricas" @@ -2296,4 +2304,4 @@ msgstr "Registro realizado com sucesso." #: .\users\views.py:41 msgid "Add new user" -msgstr "Registrar novo(a) usuário(a)" +msgstr "Registrar novo(a) usuário(a)" \ No newline at end of file diff --git a/report/views.py b/report/views.py index 4cd66e1..5112764 100644 --- a/report/views.py +++ b/report/views.py @@ -29,38 +29,42 @@ def add_report(request): metrics_set = list(map(int, report_form.data.getlist('metrics_related', []))) operation_formset = get_operation_formset() if request.method == "POST": + report_exists = Report.objects.filter(created_by__user=request.user, description=report_form.data.get("description")).exists() operation_metrics = operation_formset(request.POST, prefix='Operation') - if report_form.is_valid() and operation_metrics.is_valid(): - report = report_form.save(user=request.user, is_update=False) - instances = operation_metrics.save(commit=False) - - operation_metrics_related = [] - for instance in instances: - instance.report = report - instance.save() - numbers = instance.number_of_people_reached_through_social_media + instance.number_of_new_followers + instance.number_of_mentions + instance.number_of_community_communications + instance.number_of_events + instance.number_of_resources + instance.number_of_partnerships_activated + instance.number_of_new_partnerships - if numbers > 0: - operation_metrics_related.append(instance.metric) - - report.metrics_related.add(*operation_metrics_related) - report.save() - - messages.success(request, _("Report registered successfully!")) - return redirect(reverse("report:detail_report", kwargs={"report_id": report.id})) - + if not report_exists: + if report_form.is_valid() and operation_metrics.is_valid(): + report = report_form.save(user=request.user, is_update=False) + instances = operation_metrics.save(commit=False) + + operation_metrics_related = [] + for instance in instances: + instance.report = report + instance.save() + numbers = instance.number_of_people_reached_through_social_media + instance.number_of_new_followers + instance.number_of_mentions + instance.number_of_community_communications + instance.number_of_events + instance.number_of_resources + instance.number_of_partnerships_activated + instance.number_of_new_partnerships + if numbers > 0: + operation_metrics_related.append(instance.metric) + + report.metrics_related.add(*operation_metrics_related) + report.save() + + messages.success(request, _("Report registered successfully!")) + return redirect(reverse("report:detail_report", kwargs={"report_id": report.id})) + else: + messages.error(request, _("Something went wrong!")) + for field, error in report_form.errors.items(): + messages.error(request, field + ": " + error[0]) else: - messages.error(request, _("Something went wrong!")) - for field, error in report_form.errors.items(): - messages.error(request, field + ": " + error[0]) - context = { - "directions_related_set": directions_related_set, - "learning_questions_related_set": learning_questions_related_set, - "metrics_set": metrics_set, - "operation_metrics": operation_metrics, - "report_form": report_form, - "title": _("Add report") - } - return render(request, "report/add_report.html", context) + messages.error(request, _("It seems that you already submitted this report!")) + + context = { + "directions_related_set": directions_related_set, + "learning_questions_related_set": learning_questions_related_set, + "metrics_set": metrics_set, + "operation_metrics": operation_metrics, + "report_form": report_form, + "title": _("Add report") + } + return render(request, "report/add_report.html", context) else: operation_metrics = operation_formset(prefix="Operation", initial=[{"metric": metric_object} for metric_object in Metric.objects.filter(is_operation=True)]) context = {"directions_related_set": directions_related_set,