diff --git a/amadeus/locale/pt_BR/LC_MESSAGES/django.po b/amadeus/locale/pt_BR/LC_MESSAGES/django.po index ef9d50f..2aef021 100644 --- a/amadeus/locale/pt_BR/LC_MESSAGES/django.po +++ b/amadeus/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/amadeus/static/js/crop_news.js b/amadeus/static/js/crop_news.js index f241bc2..14f3d96 100644 --- a/amadeus/static/js/crop_news.js +++ b/amadeus/static/js/crop_news.js @@ -1,14 +1,46 @@ $(function () { - /* Script para abrir o modal com a imagem selecionada */ $("#id_image").change(function () { + var max_size = 2*1024*1024; + var submit_btn = $("#news-form").find("input[type='submit']"); + var mimeTypes = $(this).data('mimetypes'); + var errors = 0; + + $(".client-file-errors").hide(); + $(".size").hide(); + $(".format").hide(); + $(submit_btn).prop('disable', false); + $(submit_btn).prop('disabled', false); + if (this.files && this.files[0]) { - var reader = new FileReader(); - reader.onload = function (e) { - $("#image").attr("src", e.target.result); - $("#modalCrop").modal("show"); + if (this.files[0].size > max_size) { + $(submit_btn).prop('disable', true); + $(submit_btn).prop('disabled', true); + + $(".client-file-errors").show(); + $(".size").show(); + + errors++; + } + + if (!mimeTypes.includes(this.files[0].type)) { + $(submit_btn).prop('disable', true); + $(submit_btn).prop('disabled', true); + + $(".client-file-errors").show(); + $(".format").show(); + + errors++; + } + + if (errors == 0) { + var reader = new FileReader(); + reader.onload = function (e) { + $("#image").attr("src", e.target.result); + $("#modalCrop").modal("show"); + } + reader.readAsDataURL(this.files[0]); } - reader.readAsDataURL(this.files[0]); } }); diff --git a/amadeus/static/js/resources.js b/amadeus/static/js/resources.js index 36ed694..e067d7f 100644 --- a/amadeus/static/js/resources.js +++ b/amadeus/static/js/resources.js @@ -143,9 +143,6 @@ function FileSelectHandler(e) { $(submit_btn).prop('disable', false); $(submit_btn).prop('disabled', false); - console.log($(e.target).data('mimetypes')); - console.log(mimeTypes); - // process all File objects for (var i = 0, f; f = files[i]; i++) { diff --git a/analytics/locale/pt_BR/LC_MESSAGES/django.po b/analytics/locale/pt_BR/LC_MESSAGES/django.po index 7307f43..c39e10c 100644 --- a/analytics/locale/pt_BR/LC_MESSAGES/django.po +++ b/analytics/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/api/locale/pt_BR/LC_MESSAGES/django.po b/api/locale/pt_BR/LC_MESSAGES/django.po index e73f5fd..0345518 100644 --- a/api/locale/pt_BR/LC_MESSAGES/django.po +++ b/api/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/bulletin/locale/pt_BR/LC_MESSAGES/django.po b/bulletin/locale/pt_BR/LC_MESSAGES/django.po index d3fee85..ed9ee45 100644 --- a/bulletin/locale/pt_BR/LC_MESSAGES/django.po +++ b/bulletin/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/categories/locale/pt_BR/LC_MESSAGES/django.po b/categories/locale/pt_BR/LC_MESSAGES/django.po index ae200e0..20f1347 100644 --- a/categories/locale/pt_BR/LC_MESSAGES/django.po +++ b/categories/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/chat/locale/pt_BR/LC_MESSAGES/django.po b/chat/locale/pt_BR/LC_MESSAGES/django.po index 759c11f..95ccf45 100644 --- a/chat/locale/pt_BR/LC_MESSAGES/django.po +++ b/chat/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/dashboards/locale/pt_BR/LC_MESSAGES/django.po b/dashboards/locale/pt_BR/LC_MESSAGES/django.po index e199cf0..cea270d 100644 --- a/dashboards/locale/pt_BR/LC_MESSAGES/django.po +++ b/dashboards/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/file_link/locale/pt_BR/LC_MESSAGES/django.po b/file_link/locale/pt_BR/LC_MESSAGES/django.po index e6fd487..2c3219a 100644 --- a/file_link/locale/pt_BR/LC_MESSAGES/django.po +++ b/file_link/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -30,7 +30,7 @@ msgstr "Nome do arquivo" msgid "This subject already has a file link with this name" msgstr "Esse assunto já possui um Link para Arquivo com esse nome" -#: file_link/forms.py:64 +#: file_link/forms.py:64 file_link/templates/file_links/_form.html:75 msgid "The file is too large. It should have less than 10MB." msgstr "Esse arquivo é muito grande. Ele deve conter menos de 10MB." @@ -38,7 +38,7 @@ msgstr "Esse arquivo é muito grande. Ele deve conter menos de 10MB." msgid "This field is required." msgstr "Esse campo é obrigatório." -#: file_link/models.py:23 +#: file_link/models.py:24 msgid "" "Please select a valid file. The uploaded file must have one of the following " "extensions: .doc, .docx, .html, .jpg, .odp, .ods, .odt, .pdf, .png, .ppt, ." @@ -48,19 +48,19 @@ msgstr "" "das seguintes extensões: .doc, .docx, .html, .jpg, .odp, .ods, .odt, .pdf, ." "png, .ppt, .pptx, .xlx e .xlsx" -#: file_link/models.py:26 +#: file_link/models.py:27 msgid "File" msgstr "Arquivo" -#: file_link/models.py:29 +#: file_link/models.py:30 msgid "File Link" msgstr "Link para Arquivo" -#: file_link/models.py:30 +#: file_link/models.py:31 msgid "File Links" msgstr "Links para Arquivo" -#: file_link/models.py:49 +#: file_link/models.py:50 msgid "Are you sure you want delete the file link" msgstr "Você tem certeza que deseja remover o Link para Arquivo" @@ -76,31 +76,35 @@ msgstr "Clique ou solte o arquivo aqui" msgid "The file could not exceed 10MB." msgstr "O arquivo não pode exceder 10MB." -#: file_link/templates/file_links/_form.html:69 +#: file_link/templates/file_links/_form.html:76 +msgid "File not supported." +msgstr "Arquivo não suportado." + +#: file_link/templates/file_links/_form.html:80 msgid "Common resources settings" msgstr "Configurações comuns à todos os recursos" -#: file_link/templates/file_links/_form.html:118 +#: file_link/templates/file_links/_form.html:129 msgid "Pendencies Notifications" msgstr "Notificações de Pendências" -#: file_link/templates/file_links/_form.html:134 +#: file_link/templates/file_links/_form.html:145 msgid "Action not performed by the user" msgstr "Ação não realizada pelo usuário" -#: file_link/templates/file_links/_form.html:160 +#: file_link/templates/file_links/_form.html:171 msgid "Wished period" msgstr "Período desejado" -#: file_link/templates/file_links/_form.html:256 +#: file_link/templates/file_links/_form.html:267 msgid "Attribute students to file link" msgstr "Atribuir estudantes ao Link para Arquivo" -#: file_link/templates/file_links/_form.html:276 +#: file_link/templates/file_links/_form.html:287 msgid "Attribute groups to file link" msgstr "Atribuir grupos de estudo ao Link para Arquivo" -#: file_link/templates/file_links/_form.html:322 +#: file_link/templates/file_links/_form.html:333 msgid "Save" msgstr "Salvar" @@ -180,12 +184,12 @@ msgstr "Enviar" msgid "Edit: " msgstr "Editar: " -#: file_link/views.py:121 file_link/views.py:134 file_link/views.py:244 -#: file_link/views.py:246 file_link/views.py:262 file_link/views.py:264 +#: file_link/views.py:121 file_link/views.py:134 file_link/views.py:245 +#: file_link/views.py:247 file_link/views.py:263 file_link/views.py:265 msgid "Visualize" msgstr "Visualizar" -#: file_link/views.py:205 +#: file_link/views.py:206 #, python-format msgid "" "The File Link \"%s\" was added to the Topic \"%s\" of the virtual " @@ -194,16 +198,16 @@ msgstr "" "O Link para Arquivo \"%s\" foi adicionado ao tópico \"%s\" do ambiente " "virtual \"%s\" com sucesso!" -#: file_link/views.py:308 +#: file_link/views.py:309 msgid "Update File Link" msgstr "Atualizar Link para Arquivo" -#: file_link/views.py:319 +#: file_link/views.py:321 #, python-format msgid "The File Link \"%s\" was updated successfully!" msgstr "O Link para Arquivo \"%s\" foi atualizado com sucesso!" -#: file_link/views.py:346 +#: file_link/views.py:348 #, python-format msgid "" "The File Link \"%s\" was removed successfully from virtual environment \"%s" @@ -212,57 +216,54 @@ msgstr "" "O Link para Arquivo \"%s\" foi removido do ambiente virtual \"%s\" com " "sucesso!" -#: file_link/views.py:405 +#: file_link/views.py:407 msgid "File Link Reports" msgstr "Relatŕios de Link para Arquivo" -#: file_link/views.py:424 +#: file_link/views.py:426 msgid "Realized" msgstr "Realizada" -#: file_link/views.py:424 +#: file_link/views.py:426 msgid "Unrealized" msgstr "Não Realizada" -#: file_link/views.py:424 +#: file_link/views.py:426 msgid "Historic" msgstr "Histórico" -#: file_link/views.py:439 file_link/views.py:447 +#: file_link/views.py:441 file_link/views.py:449 msgid "View" msgstr "Visualizar" -#: file_link/views.py:448 +#: file_link/views.py:450 msgid "File link" msgstr "Link para Arquivo" -#: file_link/views.py:453 +#: file_link/views.py:455 msgid "Actions about resource" msgstr "Ações sobre o recurso" -#: file_link/views.py:454 +#: file_link/views.py:456 msgid "Quantity" msgstr "Quantidade" -#: file_link/views.py:501 +#: file_link/views.py:503 msgid "[Photo]" msgstr "[Imagem]" -#: file_link/views.py:513 +#: file_link/views.py:515 #, python-format msgid "Last message in %s" msgstr "Última mensagem em %s" -#: file_link/views.py:522 +#: file_link/views.py:524 msgid "The message was successfull sent!" msgstr "A mensagem foi enviada com sucesso!" -#: file_link/views.py:524 +#: file_link/views.py:526 msgid "No user selected!" msgstr "Nenhum usuário selecionado!" -#~ msgid "File not supported." -#~ msgstr "Arquivo não suportado." - #~ msgid "Delete" #~ msgstr "Remover" diff --git a/goals/locale/pt_BR/LC_MESSAGES/django.po b/goals/locale/pt_BR/LC_MESSAGES/django.po index cfc8686..39d602e 100644 --- a/goals/locale/pt_BR/LC_MESSAGES/django.po +++ b/goals/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/links/locale/pt_BR/LC_MESSAGES/django.po b/links/locale/pt_BR/LC_MESSAGES/django.po index b4d4f62..10190e7 100644 --- a/links/locale/pt_BR/LC_MESSAGES/django.po +++ b/links/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/log/locale/pt_BR/LC_MESSAGES/django.po b/log/locale/pt_BR/LC_MESSAGES/django.po index aa65e69..ae4d3b1 100644 --- a/log/locale/pt_BR/LC_MESSAGES/django.po +++ b/log/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/mailsender/locale/pt_BR/LC_MESSAGES/django.po b/mailsender/locale/pt_BR/LC_MESSAGES/django.po index 5aae38b..2cc5323 100644 --- a/mailsender/locale/pt_BR/LC_MESSAGES/django.po +++ b/mailsender/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/mural/locale/pt_BR/LC_MESSAGES/django.po b/mural/locale/pt_BR/LC_MESSAGES/django.po index 32553d2..2e7f915 100644 --- a/mural/locale/pt_BR/LC_MESSAGES/django.po +++ b/mural/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -32,7 +32,8 @@ msgstr "Pedir ajuda" msgid "This field is required." msgstr "Esse campo é obrigatório." -#: mural/forms.py:38 mural/forms.py:123 +#: mural/forms.py:38 mural/forms.py:123 mural/templates/mural/_form.html:103 +#: mural/templates/mural/_form_comment.html:68 msgid "The image is too large. It should have less than 5MB." msgstr "A imagem é muito grande. Ela deve possuir 5MB ou menos." @@ -40,7 +41,8 @@ msgstr "A imagem é muito grande. Ela deve possuir 5MB ou menos." msgid "Choose an especific resource" msgstr "Escolha um recurso específico" -#: mural/models.py:18 +#: mural/models.py:18 mural/templates/mural/_form.html:104 +#: mural/templates/mural/_form_comment.html:69 msgid "File not supported." msgstr "Arquivo não suportado." @@ -97,7 +99,7 @@ msgid "Resource" msgstr "Recurso" #: mural/models.py:105 mural/models.py:119 -#: mural/templates/mural/_form_comment.html:66 +#: mural/templates/mural/_form_comment.html:76 msgid "Comment" msgstr "Comentar" @@ -119,14 +121,14 @@ msgstr "Clique ou solte a imagem aqui" msgid "The picture could not exceed 5MB." msgstr "A imagem não pode exceder 5MB." -#: mural/templates/mural/_form.html:100 +#: mural/templates/mural/_form.html:111 msgctxt "button" msgid "Post" msgstr "Postar" -#: mural/templates/mural/_form.html:101 -#: mural/templates/mural/_form_comment.html:67 -#: mural/templates/mural/_form_comment.html:85 +#: mural/templates/mural/_form.html:112 +#: mural/templates/mural/_form_comment.html:77 +#: mural/templates/mural/_form_comment.html:95 msgid "Cancel" msgstr "Cancelar" @@ -134,15 +136,15 @@ msgstr "Cancelar" msgid "Choose your photo..." msgstr "Escolha sua foto..." -#: mural/templates/mural/_form_comment.html:78 +#: mural/templates/mural/_form_comment.html:88 msgid "Insert here the name of the user you wish to mark in this comment" msgstr "Insira aqui o nome do usuário que você quer marcar nesse comentário" -#: mural/templates/mural/_form_comment.html:84 +#: mural/templates/mural/_form_comment.html:94 msgid "Mark" msgstr "Marcar" -#: mural/templates/mural/_form_comment.html:100 +#: mural/templates/mural/_form_comment.html:110 msgid "Mark User" msgstr "Marcar Usuário" diff --git a/news/locale/pt_BR/LC_MESSAGES/django.po b/news/locale/pt_BR/LC_MESSAGES/django.po index 2591756..4e20edc 100644 --- a/news/locale/pt_BR/LC_MESSAGES/django.po +++ b/news/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,7 +22,7 @@ msgstr "" msgid "This field is required" msgstr "Este campo é obrigatório." -#: news/forms.py:74 +#: news/forms.py:74 news/templates/news/_form.html:72 msgid "The image is too large. It should have less than 5MB." msgstr "A imagem é muito grande. Ela deve ter menos que 5MB." @@ -30,7 +30,7 @@ msgstr "A imagem é muito grande. Ela deve ter menos que 5MB." msgid "This field is required." msgstr "Este campo é obrigatório." -#: news/models.py:15 +#: news/models.py:15 news/templates/news/_form.html:73 msgid "File not supported." msgstr "Arquivo não suportado" @@ -58,19 +58,27 @@ msgstr "Data de criação" msgid "Creator" msgstr "Autor" -#: news/models.py:25 news/models.py:26 news/templates/news/list.html:11 +#: news/models.py:26 news/models.py:27 news/templates/news/list.html:11 msgid "News" msgstr "Notícia" -#: news/templates/news/_form.html:12 +#: news/templates/news/_form.html:14 msgid "Choose your photo..." msgstr "Escolha a foto" -#: news/templates/news/_form.html:55 +#: news/templates/news/_form.html:28 +msgid "Click or drop the file here" +msgstr "Clique ou solte o arquivo aqui." + +#: news/templates/news/_form.html:30 +msgid "The photo could not exceed 5MB." +msgstr "A imagem não pode exceder 5MB." + +#: news/templates/news/_form.html:81 msgid "Save" msgstr "Salvar" -#: news/templates/news/_form.html:58 +#: news/templates/news/_form.html:84 msgid "Cancel" msgstr "Cancelar" @@ -104,7 +112,7 @@ msgid "Search by title, author or date" msgstr "Pesquisar por título, autor ou data" #: news/templates/news/list.html:52 news/templates/news/search.html:45 -#: news/views.py:109 +#: news/views.py:103 msgid "Create News" msgstr "Criar notícia" @@ -120,7 +128,7 @@ msgstr "Nenhuma notícia encontrada" msgid "Search News" msgstr "Pesquisar Notícia" -#: news/templates/news/update.html:7 news/views.py:137 +#: news/templates/news/update.html:7 news/views.py:147 msgid "Update News" msgstr "Atualizar Notícia" @@ -132,7 +140,7 @@ msgstr "Imprimir Notícia" msgid "Visualize News" msgstr "Visualizar Notícia" -#: news/views.py:103 news/views.py:131 +#: news/views.py:109 news/views.py:153 msgid "News successfully created!" msgstr "Notícia criada com sucesso" @@ -144,12 +152,3 @@ msgstr "Notícia \"%s\" removida com sucesso" #: news/views.py:228 msgid "Delete News" msgstr "Apagar Notícia" - -#~ msgid "Create news" -#~ msgstr "Criar notícia" - -#~ msgid "There is already a news with this name" -#~ msgstr "Já existe uma notícia com esse nome" - -#~ msgid "Name" -#~ msgstr "Nome" diff --git a/news/models.py b/news/models.py index 07371f4..89f9fbd 100644 --- a/news/models.py +++ b/news/models.py @@ -7,9 +7,9 @@ from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError from users.models import User -def validate_img_extension(value): - valid_formats = ['image/jpeg','image/x-citrix-jpeg','image/png','image/x-citrix-png','image/x-png'] +valid_formats = ['image/jpeg','image/x-citrix-jpeg','image/png','image/x-citrix-png','image/x-png'] +def validate_img_extension(value): if hasattr(value.file, 'content_type'): if not value.file.content_type in valid_formats: raise ValidationError(_('File not supported.')) @@ -21,6 +21,7 @@ class News(models.Model): content = models.TextField(_('News Content'), blank = True) create_date = models.DateTimeField(_('Create Date'), auto_now_add = True) creator = models.ForeignKey(User, verbose_name = _('Creator'), related_name = "news_creator_user", null = True) + class Meta: verbose_name = _('News') verbose_name_plural = _('News') diff --git a/news/templates/news/_form.html b/news/templates/news/_form.html index 88ece0a..7283bea 100644 --- a/news/templates/news/_form.html +++ b/news/templates/news/_form.html @@ -1,21 +1,35 @@ {% load static i18n %} {% load widget_tweaks %} -
+ {% csrf_token %} {% for field in form %}
{% if field.auto_id == 'id_image' %} - - {% render_field field class='form-control' %} -
- - - - -
+ + + {% render_field field class='file-selector' data-mimetypes=mimeTypes %} + +
+ + + + +
+ +
+ {% if news.image %} +
+ + {{ news.image.path }} + {% else %} + {% trans 'Click or drop the file here' %}
+ + {% trans 'The photo could not exceed 5MB.' %} + {% endif %} +
{% elif field.auto_id == 'id_content' %} @@ -35,19 +49,31 @@ {% endif %} {{ field.help_text }} - {% if field.errors %} - - {% endif %}
+ {% if field.errors %} + + {% endif %} + + {% if field.auto_id == 'id_image' %} + + {% endif %} {% endfor %}
@@ -62,5 +88,42 @@ + + {% include 'users/modal_crop.html' %} diff --git a/news/views.py b/news/views.py index d5810d5..01d23c1 100644 --- a/news/views.py +++ b/news/views.py @@ -8,7 +8,7 @@ from django.contrib import messages from django.utils.translation import ugettext_lazy as _ from django.db.models import Q, Count -from .models import News +from .models import News, valid_formats from .forms import NewsForm class VisualizeNews(LoginRequiredMixin,LogMixin,generic.ListView): @@ -96,19 +96,19 @@ class CreateNewsView(LoginRequiredMixin,LogMixin,generic.edit.CreateView): super(CreateNewsView, self).createLog(self.request.user, self.log_component, self.log_action, self.log_resource, self.log_context) - return super(CreateNewsView, self).form_valid(form) - def get_success_url(self): - messages.success(self.request, _('News successfully created!')) - - return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} ) - def get_context_data (self, **kwargs): context = super(CreateNewsView, self).get_context_data(**kwargs) context['title'] = _("Create News") + context['mimeTypes'] = valid_formats return context + + def get_success_url(self): + messages.success(self.request, _('News successfully created!')) + + return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} ) class UpdateNewsView(LoginRequiredMixin,LogMixin,generic.UpdateView): log_action = "update" @@ -127,17 +127,6 @@ class UpdateNewsView(LoginRequiredMixin,LogMixin,generic.UpdateView): return redirect(reverse_lazy('subjects:home')) return super(UpdateNewsView, self).dispatch(request, *args, **kwargs) - def get_success_url(self): - messages.success(self.request, _('News successfully created!')) - - return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} ) - - def get_context_data (self, **kwargs): - context = super(UpdateNewsView, self).get_context_data(**kwargs) - context['title'] = _("Update News") - - return context - def form_valid(self, form): self.object = form.save(commit = False) creator = self.request.user @@ -151,8 +140,19 @@ class UpdateNewsView(LoginRequiredMixin,LogMixin,generic.UpdateView): super(UpdateNewsView, self).createLog(self.request.user, self.log_component, self.log_action, self.log_resource, self.log_context) - return super(UpdateNewsView, self).form_valid(form) + + def get_context_data (self, **kwargs): + context = super(UpdateNewsView, self).get_context_data(**kwargs) + context['title'] = _("Update News") + context['mimeTypes'] = valid_formats + + return context + + def get_success_url(self): + messages.success(self.request, _('News successfully created!')) + + return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} ) class SearchNewsView(LoginRequiredMixin, LogMixin, generic.ListView): login_url = reverse_lazy("users:login") diff --git a/notifications/locale/pt_BR/LC_MESSAGES/django.po b/notifications/locale/pt_BR/LC_MESSAGES/django.po index d20fa73..442d6ae 100644 --- a/notifications/locale/pt_BR/LC_MESSAGES/django.po +++ b/notifications/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/pdf_file/locale/pt_BR/LC_MESSAGES/django.po b/pdf_file/locale/pt_BR/LC_MESSAGES/django.po index a52a21e..fac9b54 100644 --- a/pdf_file/locale/pt_BR/LC_MESSAGES/django.po +++ b/pdf_file/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -30,7 +30,7 @@ msgstr "Nome do arquivo" msgid "This subject already has a pdf file with this name" msgstr "Este assunto já possui um arquivo PDF com este nome" -#: pdf_file/forms.py:63 +#: pdf_file/forms.py:63 pdf_file/templates/pdf_file/_form.html:75 msgid "The file is too large. It should have less than 10MB." msgstr "O arquivo é muito grande. Deve ser menor do que 10MB" @@ -50,43 +50,49 @@ msgstr "Arquivo" msgid "Are you sure you want delete the PDF File" msgstr "Tem certeza que deseja deletar este arquivo PDF?" -#: pdf_file/templates/pdf_file/_form.html:32 +#: pdf_file/templates/pdf_file/_form.html:33 msgid "Choose your file..." msgstr "Escolha seu arquivo..." -#: pdf_file/templates/pdf_file/_form.html:46 +#: pdf_file/templates/pdf_file/_form.html:47 msgid "Click or drop the file here" msgstr "Clique ou arraste o arquivo aqui." -#: pdf_file/templates/pdf_file/_form.html:48 +#: pdf_file/templates/pdf_file/_form.html:49 msgid "The file could not exceed 10MB." msgstr "O arquivo não pode exceder 10MB." -#: pdf_file/templates/pdf_file/_form.html:68 +#: pdf_file/templates/pdf_file/_form.html:76 +#, fuzzy +#| msgid "File not supported, use PDF format instead." +msgid "File not supported." +msgstr "Este formato não é suportado, use PDF." + +#: pdf_file/templates/pdf_file/_form.html:80 msgid "Common resources settings" msgstr "Configurações comuns à todos os recursos" -#: pdf_file/templates/pdf_file/_form.html:119 +#: pdf_file/templates/pdf_file/_form.html:131 msgid "Pendencies Notifications" msgstr "Notificações pendentes" -#: pdf_file/templates/pdf_file/_form.html:135 +#: pdf_file/templates/pdf_file/_form.html:147 msgid "Action not performed by the user" msgstr "Ação não permitida pelo usuário" -#: pdf_file/templates/pdf_file/_form.html:161 +#: pdf_file/templates/pdf_file/_form.html:173 msgid "Wished period" msgstr "Período desejado" -#: pdf_file/templates/pdf_file/_form.html:257 +#: pdf_file/templates/pdf_file/_form.html:269 msgid "Attribute students to file link" msgstr "" -#: pdf_file/templates/pdf_file/_form.html:277 +#: pdf_file/templates/pdf_file/_form.html:289 msgid "Attribute groups to file link" msgstr "" -#: pdf_file/templates/pdf_file/_form.html:346 +#: pdf_file/templates/pdf_file/_form.html:358 msgid "Save" msgstr "Salvar" @@ -170,8 +176,8 @@ msgstr "Editar: " msgid "PDF could not be displayed" msgstr "PDF não pode ser mostrado" -#: pdf_file/views.py:127 pdf_file/views.py:140 pdf_file/views.py:251 -#: pdf_file/views.py:253 pdf_file/views.py:269 pdf_file/views.py:271 +#: pdf_file/views.py:127 pdf_file/views.py:140 pdf_file/views.py:252 +#: pdf_file/views.py:254 pdf_file/views.py:270 pdf_file/views.py:272 msgid "Visualize" msgstr "Visualizar" @@ -179,7 +185,7 @@ msgstr "Visualizar" msgid "Create PDF File" msgstr "Criar o arquivo PDF" -#: pdf_file/views.py:211 +#: pdf_file/views.py:212 #, python-format msgid "" "The PDF File \"%s\" was added to the Topic \"%s\" of the virtual environment " @@ -188,67 +194,67 @@ msgstr "" "O arquivo PDF \"%s\" foi adicionado ao topico \"%s\" do ambiente virtual " "\"%s\" com sucesso!" -#: pdf_file/views.py:315 +#: pdf_file/views.py:316 msgid "Update PDF File" msgstr "Atualize arquivo PDF" -#: pdf_file/views.py:326 +#: pdf_file/views.py:328 #, python-format msgid "The PDF File \"%s\" was updated successfully!" msgstr "O arquivo PDF \"%s\" foi atualizado com sucesso!" -#: pdf_file/views.py:353 +#: pdf_file/views.py:355 #, python-format msgid "" "The PDF File \"%s\" was removed successfully from virtual environment \"%s\"!" msgstr "" "O arquivo PDF \"%s\" foi removido com sucesso do ambiente virtual \"%s\" " -#: pdf_file/views.py:411 +#: pdf_file/views.py:413 msgid "PDF File Reports" msgstr "Relatórios do arquivo de PDF" -#: pdf_file/views.py:431 +#: pdf_file/views.py:433 msgid "Realized" msgstr "Realizada" -#: pdf_file/views.py:431 +#: pdf_file/views.py:433 msgid "Unrealized" msgstr "Não Realizada" -#: pdf_file/views.py:431 +#: pdf_file/views.py:433 msgid "Historic" msgstr "Histórico" -#: pdf_file/views.py:447 pdf_file/views.py:455 +#: pdf_file/views.py:449 pdf_file/views.py:457 msgid "View" msgstr "Visualizar" -#: pdf_file/views.py:456 +#: pdf_file/views.py:458 msgid "PDF File" msgstr "Criar o arquivo PDF" -#: pdf_file/views.py:461 +#: pdf_file/views.py:463 msgid "Actions about resource" msgstr "Ações sobre o recurso" -#: pdf_file/views.py:462 +#: pdf_file/views.py:464 msgid "Quantity" msgstr "Quantidade" -#: pdf_file/views.py:509 +#: pdf_file/views.py:511 msgid "[Photo]" msgstr "[Imagem]" -#: pdf_file/views.py:521 +#: pdf_file/views.py:523 #, python-format msgid "Last message in %s" msgstr "Última mensagem em %s" -#: pdf_file/views.py:530 +#: pdf_file/views.py:532 msgid "The message was successfull sent!" msgstr "A mensagem foi enviada com sucesso!" -#: pdf_file/views.py:532 +#: pdf_file/views.py:534 msgid "No user selected!" msgstr "Nenhum usuário selecionado!" diff --git a/pendencies/locale/pt_BR/LC_MESSAGES/django.po b/pendencies/locale/pt_BR/LC_MESSAGES/django.po index b8a2828..da8bd37 100644 --- a/pendencies/locale/pt_BR/LC_MESSAGES/django.po +++ b/pendencies/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/reports/locale/pt_BR/LC_MESSAGES/django.po b/reports/locale/pt_BR/LC_MESSAGES/django.po index fd531eb..d4d6c62 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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/security/locale/pt_BR/LC_MESSAGES/django.po b/security/locale/pt_BR/LC_MESSAGES/django.po index 3f5b1e4..ea0c0e8 100644 --- a/security/locale/pt_BR/LC_MESSAGES/django.po +++ b/security/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/students_group/locale/pt_BR/LC_MESSAGES/django.po b/students_group/locale/pt_BR/LC_MESSAGES/django.po index 7d0c439..6103566 100644 --- a/students_group/locale/pt_BR/LC_MESSAGES/django.po +++ b/students_group/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/subjects/locale/pt_BR/LC_MESSAGES/django.po b/subjects/locale/pt_BR/LC_MESSAGES/django.po index 2bef317..545ab36 100644 --- a/subjects/locale/pt_BR/LC_MESSAGES/django.po +++ b/subjects/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,27 +18,27 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: subjects/forms.py:14 subjects/forms.py:117 +#: subjects/forms.py:24 subjects/forms.py:128 msgid "Tags" msgstr "Tags" -#: subjects/forms.py:67 subjects/forms.py:170 +#: subjects/forms.py:78 subjects/forms.py:183 msgid "There is another subject with this name, try another one." msgstr "Já existe um assunto com esse nome, tente outro." -#: subjects/forms.py:76 +#: subjects/forms.py:87 msgid "This date must be today or after" msgstr "Essa data deve ser hoje ou depois disso" -#: subjects/forms.py:86 subjects/forms.py:189 +#: subjects/forms.py:97 subjects/forms.py:201 msgid "This date must be equal subscribe begin or after" msgstr "Essa data deve ser igual ou depois de começarem as incrições" -#: subjects/forms.py:96 subjects/forms.py:199 +#: subjects/forms.py:107 subjects/forms.py:211 msgid "This date must be after subscribe end" msgstr "Essa data deve ser depois do fim das inscrições" -#: subjects/forms.py:105 subjects/forms.py:208 +#: subjects/forms.py:116 subjects/forms.py:220 msgid "This date must be equal init date or after" msgstr "Essa data deve ser igual ou depois da data de início" @@ -189,7 +189,7 @@ msgid "DELETE" msgstr "Deletar" #: subjects/templates/subjects/home.html:67 -#: subjects/templates/subjects/initial.html:77 subjects/views.py:212 +#: subjects/templates/subjects/initial.html:77 subjects/views.py:214 msgid "My Subjects" msgstr "Meus assuntos" @@ -242,12 +242,12 @@ msgid " Any subjects or Resources were not found on the search for " msgstr " Nenhum assunto ou recursos foram encontrados na busca por " #: subjects/templates/subjects/list_search.html:48 -#: subjects/templates/subjects/list_search.html:51 subjects/views.py:677 +#: subjects/templates/subjects/list_search.html:51 subjects/views.py:679 msgid "Subjects" msgstr "Assuntos" #: subjects/templates/subjects/list_search.html:49 -#: subjects/templates/subjects/list_search.html:52 subjects/views.py:684 +#: subjects/templates/subjects/list_search.html:52 subjects/views.py:686 msgid "Resources" msgstr "Recursos" @@ -362,52 +362,52 @@ msgstr "Ver Perfil" msgid "Send Message" msgstr "Enviar Mensagem" -#: subjects/views.py:85 +#: subjects/views.py:87 msgid "Home" msgstr "Início" -#: subjects/views.py:184 +#: subjects/views.py:186 msgid "Page is not 'last', nor can it be converted to an int." msgstr "" "Página não é a 'última', e também não pode ser convertido para um inteiro" -#: subjects/views.py:190 +#: subjects/views.py:192 #, python-format msgid "Invalid page (%(page_number)s): %(message)s" msgstr "Página inválida (%(page_number)s): %(message)s" -#: subjects/views.py:219 +#: subjects/views.py:221 msgid "All Subjects" msgstr "Todos os assuntos" -#: subjects/views.py:315 +#: subjects/views.py:317 msgid "Create Subject" msgstr "Criar Assunto" -#: subjects/views.py:327 +#: subjects/views.py:329 msgid "Replicate Subject" msgstr "Replicar Assunto" -#: subjects/views.py:369 +#: subjects/views.py:371 #, python-format msgid "The Subject \"%s\" was registered on \"%s\" Category successfully!" msgstr "Assunto \"%s\" foi registrado na categoria \"%s\" com sucesso!" -#: subjects/views.py:404 +#: subjects/views.py:406 msgid "Update Subject" msgstr "Atualizar Assunto" -#: subjects/views.py:428 +#: subjects/views.py:430 #, python-format msgid "The Subject \"%s\" was updated on \"%s\" Category successfully!" msgstr "Assunto \"%s\" foi atualizado na categoria \"%s\" com sucesso!" -#: subjects/views.py:469 subjects/views.py:513 +#: subjects/views.py:471 subjects/views.py:515 #, python-format msgid "Subject \"%s\" removed successfully!" msgstr "Assunto \"%s\" removido com sucesso!" -#: subjects/views.py:477 subjects/views.py:481 +#: subjects/views.py:479 subjects/views.py:483 msgid "" "Subject can't be removed. The subject still possess students and learning " "objects associated" @@ -415,24 +415,24 @@ msgstr "" "Assunto não pode ser removido. Ele ainda possui alunos e objetos de " "aprendizado associados" -#: subjects/views.py:603 +#: subjects/views.py:605 msgid "Subscription date is due!" msgstr "O período de inscrição está encerrado!" -#: subjects/views.py:616 +#: subjects/views.py:618 msgid "Subscription was successfull!" msgstr "Inscrição feita com sucesso!" -#: subjects/views.py:749 +#: subjects/views.py:751 #, python-format msgid "%s - Backup" msgstr "%s - Backup" -#: subjects/views.py:885 +#: subjects/views.py:910 #, python-format msgid "%s - Restore" msgstr "%s - Restaurar" -#: subjects/views.py:951 +#: subjects/views.py:984 msgid "Backup restored successfully!" msgstr "Backup restaurado com sucesso!" diff --git a/themes/locale/pt_BR/LC_MESSAGES/django.po b/themes/locale/pt_BR/LC_MESSAGES/django.po index 21da284..28d117d 100644 --- a/themes/locale/pt_BR/LC_MESSAGES/django.po +++ b/themes/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,11 +18,12 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -#: themes/forms.py:15 themes/forms.py:27 themes/forms.py:39 +#: themes/forms.py:17 themes/forms.py:29 themes/forms.py:41 +#: themes/templates/themes/basic_update.html:94 msgid "The image is too large. It should have less than 2MB." msgstr "A imagem é muito grande. Ela deve ter menos de 2MB." -#: themes/models.py:11 +#: themes/models.py:11 themes/templates/themes/basic_update.html:95 msgid "File not supported." msgstr "Arquivo não suportado." @@ -96,12 +97,12 @@ msgstr "Dimensões recomendads" msgid "It is recommended to be a white image" msgstr "É recomendável ser uma imagem branca" -#: themes/templates/themes/basic_update.html:89 +#: themes/templates/themes/basic_update.html:103 #: themes/templates/themes/css_update.html:75 msgid "Save" msgstr "Salvar" -#: themes/templates/themes/basic_update.html:94 +#: themes/templates/themes/basic_update.html:108 #: themes/templates/themes/css_update.html:17 #: themes/templates/themes/index.html:18 themes/views.py:78 msgid "CSS Selector" diff --git a/topics/locale/pt_BR/LC_MESSAGES/django.po b/topics/locale/pt_BR/LC_MESSAGES/django.po index 6c2265f..9838ab8 100644 --- a/topics/locale/pt_BR/LC_MESSAGES/django.po +++ b/topics/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/users/locale/pt_BR/LC_MESSAGES/django.po b/users/locale/pt_BR/LC_MESSAGES/django.po index 118c75d..e159850 100644 --- a/users/locale/pt_BR/LC_MESSAGES/django.po +++ b/users/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -23,6 +23,7 @@ msgid "You must insert an email address" msgstr "Você deve inserir um endereço de email" #: users/forms.py:43 users/templates/users/_form.html:94 +#: users/templates/users/register.html:107 msgid "The image is too large. It should have less than 2MB." msgstr "A imagem é muito grande. Ela deve conter menos de 2MB." @@ -88,6 +89,7 @@ msgid "You must insert a valid email address" msgstr "Você deve inserir um endereço de email válido" #: users/models.py:18 users/templates/users/_form.html:95 +#: users/templates/users/register.html:108 msgid "File not supported." msgstr "Arquivo não suportado." @@ -173,15 +175,15 @@ msgstr "Sim" msgid "Is not an admin" msgstr "Não é administrador" -#: users/templates/users/_form.html:18 users/templates/users/register.html:53 +#: users/templates/users/_form.html:18 users/templates/users/register.html:56 msgid "Choose your photo..." msgstr "Escolha sua foto..." -#: users/templates/users/_form.html:32 +#: users/templates/users/_form.html:32 users/templates/users/register.html:70 msgid "Click or drop the file here" msgstr "" -#: users/templates/users/_form.html:34 +#: users/templates/users/_form.html:34 users/templates/users/register.html:72 msgid "The photo could not exceed 2MB." msgstr "A imagem não pode exceder o tamanho de 2MB." @@ -231,7 +233,7 @@ msgstr "Recuperar" #: users/templates/users/forgot_password.html:75 #: users/templates/users/new_password.html:80 -#: users/templates/users/register.html:93 +#: users/templates/users/register.html:121 msgid "Back" msgstr "Voltar" @@ -308,7 +310,7 @@ msgstr "Estudante em" msgid "User Register" msgstr "Cadastro de Usuário" -#: users/templates/users/register.html:90 +#: users/templates/users/register.html:118 msgid "Register" msgstr "Cadastrar" diff --git a/webconference/locale/pt_BR/LC_MESSAGES/django.po b/webconference/locale/pt_BR/LC_MESSAGES/django.po index 250b599..1793a74 100644 --- a/webconference/locale/pt_BR/LC_MESSAGES/django.po +++ b/webconference/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/webpage/locale/pt_BR/LC_MESSAGES/django.po b/webpage/locale/pt_BR/LC_MESSAGES/django.po index c97bb86..ce3364f 100644 --- a/webpage/locale/pt_BR/LC_MESSAGES/django.po +++ b/webpage/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/youtube_video/locale/pt_BR/LC_MESSAGES/django.po b/youtube_video/locale/pt_BR/LC_MESSAGES/django.po index 4733ad3..367ba2b 100644 --- a/youtube_video/locale/pt_BR/LC_MESSAGES/django.po +++ b/youtube_video/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-08-30 22:41-0300\n" +"POT-Creation-Date: 2017-09-02 01:44-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -- libgit2 0.21.2