Commit f14c61f3373e3389a47df524d833c385022426d9

Authored by Zambom
1 parent 6b0724d0

Adjusting image bugs in news

amadeus/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-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
amadeus/static/js/crop_news.js
1 1 $(function () {
2   -
3 2 /* Script para abrir o modal com a imagem selecionada */
4 3 $("#id_image").change(function () {
  4 + var max_size = 2*1024*1024;
  5 + var submit_btn = $("#news-form").find("input[type='submit']");
  6 + var mimeTypes = $(this).data('mimetypes');
  7 + var errors = 0;
  8 +
  9 + $(".client-file-errors").hide();
  10 + $(".size").hide();
  11 + $(".format").hide();
  12 + $(submit_btn).prop('disable', false);
  13 + $(submit_btn).prop('disabled', false);
  14 +
5 15 if (this.files && this.files[0]) {
6   - var reader = new FileReader();
7   - reader.onload = function (e) {
8   - $("#image").attr("src", e.target.result);
9   - $("#modalCrop").modal("show");
  16 + if (this.files[0].size > max_size) {
  17 + $(submit_btn).prop('disable', true);
  18 + $(submit_btn).prop('disabled', true);
  19 +
  20 + $(".client-file-errors").show();
  21 + $(".size").show();
  22 +
  23 + errors++;
  24 + }
  25 +
  26 + if (!mimeTypes.includes(this.files[0].type)) {
  27 + $(submit_btn).prop('disable', true);
  28 + $(submit_btn).prop('disabled', true);
  29 +
  30 + $(".client-file-errors").show();
  31 + $(".format").show();
  32 +
  33 + errors++;
  34 + }
  35 +
  36 + if (errors == 0) {
  37 + var reader = new FileReader();
  38 + reader.onload = function (e) {
  39 + $("#image").attr("src", e.target.result);
  40 + $("#modalCrop").modal("show");
  41 + }
  42 + reader.readAsDataURL(this.files[0]);
10 43 }
11   - reader.readAsDataURL(this.files[0]);
12 44 }
13 45 });
14 46  
... ...
amadeus/static/js/resources.js
... ... @@ -143,9 +143,6 @@ function FileSelectHandler(e) {
143 143 $(submit_btn).prop('disable', false);
144 144 $(submit_btn).prop('disabled', false);
145 145  
146   - console.log($(e.target).data('mimetypes'));
147   - console.log(mimeTypes);
148   -
149 146 // process all File objects
150 147 for (var i = 0, f; f = files[i]; i++) {
151 148  
... ...
analytics/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
api/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
bulletin/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
categories/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
chat/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
dashboards/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
file_link/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ... @@ -30,7 +30,7 @@ msgstr &quot;Nome do arquivo&quot;
30 30 msgid "This subject already has a file link with this name"
31 31 msgstr "Esse assunto já possui um Link para Arquivo com esse nome"
32 32  
33   -#: file_link/forms.py:64
  33 +#: file_link/forms.py:64 file_link/templates/file_links/_form.html:75
34 34 msgid "The file is too large. It should have less than 10MB."
35 35 msgstr "Esse arquivo é muito grande. Ele deve conter menos de 10MB."
36 36  
... ... @@ -38,7 +38,7 @@ msgstr &quot;Esse arquivo é muito grande. Ele deve conter menos de 10MB.&quot;
38 38 msgid "This field is required."
39 39 msgstr "Esse campo é obrigatório."
40 40  
41   -#: file_link/models.py:23
  41 +#: file_link/models.py:24
42 42 msgid ""
43 43 "Please select a valid file. The uploaded file must have one of the following "
44 44 "extensions: .doc, .docx, .html, .jpg, .odp, .ods, .odt, .pdf, .png, .ppt, ."
... ... @@ -48,19 +48,19 @@ msgstr &quot;&quot;
48 48 "das seguintes extensões: .doc, .docx, .html, .jpg, .odp, .ods, .odt, .pdf, ."
49 49 "png, .ppt, .pptx, .xlx e .xlsx"
50 50  
51   -#: file_link/models.py:26
  51 +#: file_link/models.py:27
52 52 msgid "File"
53 53 msgstr "Arquivo"
54 54  
55   -#: file_link/models.py:29
  55 +#: file_link/models.py:30
56 56 msgid "File Link"
57 57 msgstr "Link para Arquivo"
58 58  
59   -#: file_link/models.py:30
  59 +#: file_link/models.py:31
60 60 msgid "File Links"
61 61 msgstr "Links para Arquivo"
62 62  
63   -#: file_link/models.py:49
  63 +#: file_link/models.py:50
64 64 msgid "Are you sure you want delete the file link"
65 65 msgstr "Você tem certeza que deseja remover o Link para Arquivo"
66 66  
... ... @@ -76,31 +76,35 @@ msgstr &quot;Clique ou solte o arquivo aqui&quot;
76 76 msgid "The file could not exceed 10MB."
77 77 msgstr "O arquivo não pode exceder 10MB."
78 78  
79   -#: file_link/templates/file_links/_form.html:69
  79 +#: file_link/templates/file_links/_form.html:76
  80 +msgid "File not supported."
  81 +msgstr "Arquivo não suportado."
  82 +
  83 +#: file_link/templates/file_links/_form.html:80
80 84 msgid "Common resources settings"
81 85 msgstr "Configurações comuns à todos os recursos"
82 86  
83   -#: file_link/templates/file_links/_form.html:118
  87 +#: file_link/templates/file_links/_form.html:129
84 88 msgid "Pendencies Notifications"
85 89 msgstr "Notificações de Pendências"
86 90  
87   -#: file_link/templates/file_links/_form.html:134
  91 +#: file_link/templates/file_links/_form.html:145
88 92 msgid "Action not performed by the user"
89 93 msgstr "Ação não realizada pelo usuário"
90 94  
91   -#: file_link/templates/file_links/_form.html:160
  95 +#: file_link/templates/file_links/_form.html:171
92 96 msgid "Wished period"
93 97 msgstr "Período desejado"
94 98  
95   -#: file_link/templates/file_links/_form.html:256
  99 +#: file_link/templates/file_links/_form.html:267
96 100 msgid "Attribute students to file link"
97 101 msgstr "Atribuir estudantes ao Link para Arquivo"
98 102  
99   -#: file_link/templates/file_links/_form.html:276
  103 +#: file_link/templates/file_links/_form.html:287
100 104 msgid "Attribute groups to file link"
101 105 msgstr "Atribuir grupos de estudo ao Link para Arquivo"
102 106  
103   -#: file_link/templates/file_links/_form.html:322
  107 +#: file_link/templates/file_links/_form.html:333
104 108 msgid "Save"
105 109 msgstr "Salvar"
106 110  
... ... @@ -180,12 +184,12 @@ msgstr &quot;Enviar&quot;
180 184 msgid "Edit: "
181 185 msgstr "Editar: "
182 186  
183   -#: file_link/views.py:121 file_link/views.py:134 file_link/views.py:244
184   -#: file_link/views.py:246 file_link/views.py:262 file_link/views.py:264
  187 +#: file_link/views.py:121 file_link/views.py:134 file_link/views.py:245
  188 +#: file_link/views.py:247 file_link/views.py:263 file_link/views.py:265
185 189 msgid "Visualize"
186 190 msgstr "Visualizar"
187 191  
188   -#: file_link/views.py:205
  192 +#: file_link/views.py:206
189 193 #, python-format
190 194 msgid ""
191 195 "The File Link \"%s\" was added to the Topic \"%s\" of the virtual "
... ... @@ -194,16 +198,16 @@ msgstr &quot;&quot;
194 198 "O Link para Arquivo \"%s\" foi adicionado ao tópico \"%s\" do ambiente "
195 199 "virtual \"%s\" com sucesso!"
196 200  
197   -#: file_link/views.py:308
  201 +#: file_link/views.py:309
198 202 msgid "Update File Link"
199 203 msgstr "Atualizar Link para Arquivo"
200 204  
201   -#: file_link/views.py:319
  205 +#: file_link/views.py:321
202 206 #, python-format
203 207 msgid "The File Link \"%s\" was updated successfully!"
204 208 msgstr "O Link para Arquivo \"%s\" foi atualizado com sucesso!"
205 209  
206   -#: file_link/views.py:346
  210 +#: file_link/views.py:348
207 211 #, python-format
208 212 msgid ""
209 213 "The File Link \"%s\" was removed successfully from virtual environment \"%s"
... ... @@ -212,57 +216,54 @@ msgstr &quot;&quot;
212 216 "O Link para Arquivo \"%s\" foi removido do ambiente virtual \"%s\" com "
213 217 "sucesso!"
214 218  
215   -#: file_link/views.py:405
  219 +#: file_link/views.py:407
216 220 msgid "File Link Reports"
217 221 msgstr "Relatŕios de Link para Arquivo"
218 222  
219   -#: file_link/views.py:424
  223 +#: file_link/views.py:426
220 224 msgid "Realized"
221 225 msgstr "Realizada"
222 226  
223   -#: file_link/views.py:424
  227 +#: file_link/views.py:426
224 228 msgid "Unrealized"
225 229 msgstr "Não Realizada"
226 230  
227   -#: file_link/views.py:424
  231 +#: file_link/views.py:426
228 232 msgid "Historic"
229 233 msgstr "Histórico"
230 234  
231   -#: file_link/views.py:439 file_link/views.py:447
  235 +#: file_link/views.py:441 file_link/views.py:449
232 236 msgid "View"
233 237 msgstr "Visualizar"
234 238  
235   -#: file_link/views.py:448
  239 +#: file_link/views.py:450
236 240 msgid "File link"
237 241 msgstr "Link para Arquivo"
238 242  
239   -#: file_link/views.py:453
  243 +#: file_link/views.py:455
240 244 msgid "Actions about resource"
241 245 msgstr "Ações sobre o recurso"
242 246  
243   -#: file_link/views.py:454
  247 +#: file_link/views.py:456
244 248 msgid "Quantity"
245 249 msgstr "Quantidade"
246 250  
247   -#: file_link/views.py:501
  251 +#: file_link/views.py:503
248 252 msgid "[Photo]"
249 253 msgstr "[Imagem]"
250 254  
251   -#: file_link/views.py:513
  255 +#: file_link/views.py:515
252 256 #, python-format
253 257 msgid "Last message in %s"
254 258 msgstr "Última mensagem em %s"
255 259  
256   -#: file_link/views.py:522
  260 +#: file_link/views.py:524
257 261 msgid "The message was successfull sent!"
258 262 msgstr "A mensagem foi enviada com sucesso!"
259 263  
260   -#: file_link/views.py:524
  264 +#: file_link/views.py:526
261 265 msgid "No user selected!"
262 266 msgstr "Nenhum usuário selecionado!"
263 267  
264   -#~ msgid "File not supported."
265   -#~ msgstr "Arquivo não suportado."
266   -
267 268 #~ msgid "Delete"
268 269 #~ msgstr "Remover"
... ...
goals/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
links/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
log/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
mailsender/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
mural/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ... @@ -32,7 +32,8 @@ msgstr &quot;Pedir ajuda&quot;
32 32 msgid "This field is required."
33 33 msgstr "Esse campo é obrigatório."
34 34  
35   -#: mural/forms.py:38 mural/forms.py:123
  35 +#: mural/forms.py:38 mural/forms.py:123 mural/templates/mural/_form.html:103
  36 +#: mural/templates/mural/_form_comment.html:68
36 37 msgid "The image is too large. It should have less than 5MB."
37 38 msgstr "A imagem é muito grande. Ela deve possuir 5MB ou menos."
38 39  
... ... @@ -40,7 +41,8 @@ msgstr &quot;A imagem é muito grande. Ela deve possuir 5MB ou menos.&quot;
40 41 msgid "Choose an especific resource"
41 42 msgstr "Escolha um recurso específico"
42 43  
43   -#: mural/models.py:18
  44 +#: mural/models.py:18 mural/templates/mural/_form.html:104
  45 +#: mural/templates/mural/_form_comment.html:69
44 46 msgid "File not supported."
45 47 msgstr "Arquivo não suportado."
46 48  
... ... @@ -97,7 +99,7 @@ msgid &quot;Resource&quot;
97 99 msgstr "Recurso"
98 100  
99 101 #: mural/models.py:105 mural/models.py:119
100   -#: mural/templates/mural/_form_comment.html:66
  102 +#: mural/templates/mural/_form_comment.html:76
101 103 msgid "Comment"
102 104 msgstr "Comentar"
103 105  
... ... @@ -119,14 +121,14 @@ msgstr &quot;Clique ou solte a imagem aqui&quot;
119 121 msgid "The picture could not exceed 5MB."
120 122 msgstr "A imagem não pode exceder 5MB."
121 123  
122   -#: mural/templates/mural/_form.html:100
  124 +#: mural/templates/mural/_form.html:111
123 125 msgctxt "button"
124 126 msgid "Post"
125 127 msgstr "Postar"
126 128  
127   -#: mural/templates/mural/_form.html:101
128   -#: mural/templates/mural/_form_comment.html:67
129   -#: mural/templates/mural/_form_comment.html:85
  129 +#: mural/templates/mural/_form.html:112
  130 +#: mural/templates/mural/_form_comment.html:77
  131 +#: mural/templates/mural/_form_comment.html:95
130 132 msgid "Cancel"
131 133 msgstr "Cancelar"
132 134  
... ... @@ -134,15 +136,15 @@ msgstr &quot;Cancelar&quot;
134 136 msgid "Choose your photo..."
135 137 msgstr "Escolha sua foto..."
136 138  
137   -#: mural/templates/mural/_form_comment.html:78
  139 +#: mural/templates/mural/_form_comment.html:88
138 140 msgid "Insert here the name of the user you wish to mark in this comment"
139 141 msgstr "Insira aqui o nome do usuário que você quer marcar nesse comentário"
140 142  
141   -#: mural/templates/mural/_form_comment.html:84
  143 +#: mural/templates/mural/_form_comment.html:94
142 144 msgid "Mark"
143 145 msgstr "Marcar"
144 146  
145   -#: mural/templates/mural/_form_comment.html:100
  147 +#: mural/templates/mural/_form_comment.html:110
146 148 msgid "Mark User"
147 149 msgstr "Marcar Usuário"
148 150  
... ...
news/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ... @@ -22,7 +22,7 @@ msgstr &quot;&quot;
22 22 msgid "This field is required"
23 23 msgstr "Este campo é obrigatório."
24 24  
25   -#: news/forms.py:74
  25 +#: news/forms.py:74 news/templates/news/_form.html:72
26 26 msgid "The image is too large. It should have less than 5MB."
27 27 msgstr "A imagem é muito grande. Ela deve ter menos que 5MB."
28 28  
... ... @@ -30,7 +30,7 @@ msgstr &quot;A imagem é muito grande. Ela deve ter menos que 5MB.&quot;
30 30 msgid "This field is required."
31 31 msgstr "Este campo é obrigatório."
32 32  
33   -#: news/models.py:15
  33 +#: news/models.py:15 news/templates/news/_form.html:73
34 34 msgid "File not supported."
35 35 msgstr "Arquivo não suportado"
36 36  
... ... @@ -58,19 +58,27 @@ msgstr &quot;Data de criação&quot;
58 58 msgid "Creator"
59 59 msgstr "Autor"
60 60  
61   -#: news/models.py:25 news/models.py:26 news/templates/news/list.html:11
  61 +#: news/models.py:26 news/models.py:27 news/templates/news/list.html:11
62 62 msgid "News"
63 63 msgstr "Notícia"
64 64  
65   -#: news/templates/news/_form.html:12
  65 +#: news/templates/news/_form.html:14
66 66 msgid "Choose your photo..."
67 67 msgstr "Escolha a foto"
68 68  
69   -#: news/templates/news/_form.html:55
  69 +#: news/templates/news/_form.html:28
  70 +msgid "Click or drop the file here"
  71 +msgstr "Clique ou solte o arquivo aqui."
  72 +
  73 +#: news/templates/news/_form.html:30
  74 +msgid "The photo could not exceed 5MB."
  75 +msgstr "A imagem não pode exceder 5MB."
  76 +
  77 +#: news/templates/news/_form.html:81
70 78 msgid "Save"
71 79 msgstr "Salvar"
72 80  
73   -#: news/templates/news/_form.html:58
  81 +#: news/templates/news/_form.html:84
74 82 msgid "Cancel"
75 83 msgstr "Cancelar"
76 84  
... ... @@ -104,7 +112,7 @@ msgid &quot;Search by title, author or date&quot;
104 112 msgstr "Pesquisar por título, autor ou data"
105 113  
106 114 #: news/templates/news/list.html:52 news/templates/news/search.html:45
107   -#: news/views.py:109
  115 +#: news/views.py:103
108 116 msgid "Create News"
109 117 msgstr "Criar notícia"
110 118  
... ... @@ -120,7 +128,7 @@ msgstr &quot;Nenhuma notícia encontrada&quot;
120 128 msgid "Search News"
121 129 msgstr "Pesquisar Notícia"
122 130  
123   -#: news/templates/news/update.html:7 news/views.py:137
  131 +#: news/templates/news/update.html:7 news/views.py:147
124 132 msgid "Update News"
125 133 msgstr "Atualizar Notícia"
126 134  
... ... @@ -132,7 +140,7 @@ msgstr &quot;Imprimir Notícia&quot;
132 140 msgid "Visualize News"
133 141 msgstr "Visualizar Notícia"
134 142  
135   -#: news/views.py:103 news/views.py:131
  143 +#: news/views.py:109 news/views.py:153
136 144 msgid "News successfully created!"
137 145 msgstr "Notícia criada com sucesso"
138 146  
... ... @@ -144,12 +152,3 @@ msgstr &quot;Notícia \&quot;%s\&quot; removida com sucesso&quot;
144 152 #: news/views.py:228
145 153 msgid "Delete News"
146 154 msgstr "Apagar Notícia"
147   -
148   -#~ msgid "Create news"
149   -#~ msgstr "Criar notícia"
150   -
151   -#~ msgid "There is already a news with this name"
152   -#~ msgstr "Já existe uma notícia com esse nome"
153   -
154   -#~ msgid "Name"
155   -#~ msgstr "Nome"
... ...
news/models.py
... ... @@ -7,9 +7,9 @@ from django.utils.translation import ugettext_lazy as _
7 7 from django.core.exceptions import ValidationError
8 8 from users.models import User
9 9  
10   -def validate_img_extension(value):
11   - valid_formats = ['image/jpeg','image/x-citrix-jpeg','image/png','image/x-citrix-png','image/x-png']
  10 +valid_formats = ['image/jpeg','image/x-citrix-jpeg','image/png','image/x-citrix-png','image/x-png']
12 11  
  12 +def validate_img_extension(value):
13 13 if hasattr(value.file, 'content_type'):
14 14 if not value.file.content_type in valid_formats:
15 15 raise ValidationError(_('File not supported.'))
... ... @@ -21,6 +21,7 @@ class News(models.Model):
21 21 content = models.TextField(_('News Content'), blank = True)
22 22 create_date = models.DateTimeField(_('Create Date'), auto_now_add = True)
23 23 creator = models.ForeignKey(User, verbose_name = _('Creator'), related_name = "news_creator_user", null = True)
  24 +
24 25 class Meta:
25 26 verbose_name = _('News')
26 27 verbose_name_plural = _('News')
... ...
news/templates/news/_form.html
1 1 {% load static i18n %}
2 2 {% load widget_tweaks %}
3 3  
4   -<form method="post" action="" enctype="multipart/form-data">
  4 +<form id="news-form" method="post" action="" enctype="multipart/form-data">
5 5 {% csrf_token %}
6 6 {% for field in form %}
7 7 <div class="form-group{% if form.has_error %} has-error {% endif %} is-fileinput col-lg-12 col-md-12 col-sm-12">
8 8 {% if field.auto_id == 'id_image' %}
9   - <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label>
10   - {% render_field field class='form-control' %}
11   - <div class="input-group">
12   - <input type="text" readonly="" class="form-control" id="pic_holder" placeholder="{% trans 'Choose your photo...' %}">
13   - <span class="input-group-btn input-group-sm">
14   - <button type="button" class="btn btn-fab btn-fab-mini">
15   - <i class="material-icons">image</i>
16   - </button>
17   - </span>
18   - </div>
  9 + <label for="{{ field.auto_id }}">{{ field.label }} <span>*</span></label>
  10 +
  11 + {% render_field field class='file-selector' data-mimetypes=mimeTypes %}
  12 +
  13 + <div class="input-group common-file-input">
  14 + <input type="text" readonly="" class="form-control" placeholder="{% trans 'Choose your photo...' %}">
  15 + <span class="input-group-btn input-group-sm">
  16 + <button type="button" class="btn btn-fab btn-fab-mini">
  17 + <i class="material-icons">attach_file</i>
  18 + </button>
  19 + </span>
  20 + </div>
  21 +
  22 + <div class="filedrag">
  23 + {% if news.image %}
  24 + <i class="fa fa-file-archive-o"></i> <br />
  25 +
  26 + <small>{{ news.image.path }}</small>
  27 + {% else %}
  28 + {% trans 'Click or drop the file here' %}<br />
  29 +
  30 + <small>{% trans 'The photo could not exceed 5MB.' %}</small>
  31 + {% endif %}
  32 + </div>
19 33  
20 34  
21 35 {% elif field.auto_id == 'id_content' %}
... ... @@ -35,19 +49,31 @@
35 49  
36 50 {% endif %}
37 51 <span id="helpBlock" class="help-block">{{ field.help_text }}</span>
38   - {% if field.errors %}
39   - <div class="alert alert-danger alert-dismissible" role="alert">
40   - <button type="button" class="close" data-dismiss="alert" aria-label="Close">
41   - <span aria-hidden="true">&times;</span>
42   - </button>
43   - <ul>
44   - {% for error in field.errors %}
45   - <li>{{ error }}</li>
46   - {% endfor %}
47   - </ul>
48   - </div>
49   - {% endif %}
50 52 </div>
  53 + {% if field.errors %}
  54 + <div class="alert alert-danger alert-dismissible" role="alert">
  55 + <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  56 + <span aria-hidden="true">&times;</span>
  57 + </button>
  58 + <ul>
  59 + {% for error in field.errors %}
  60 + <li>{{ error }}</li>
  61 + {% endfor %}
  62 + </ul>
  63 + </div>
  64 + {% endif %}
  65 +
  66 + {% if field.auto_id == 'id_image' %}
  67 + <div class="col-lg-12 col-md-12 col-sm-12 alert alert-danger alert-dismissible client-file-errors" style="display:none" role="alert">
  68 + <button type="button" class="close" data-dismiss="alert" aria-label="Close">
  69 + <span aria-hidden="true">&times;</span>
  70 + </button>
  71 + <ul>
  72 + <li class="size" style="display:none">{% trans "The image is too large. It should have less than 5MB." %}</li>
  73 + <li class="format" style="display:none">{% trans 'File not supported.' %}</li>
  74 + </ul>
  75 + </div>
  76 + {% endif %}
51 77 {% endfor %}
52 78 <div class="row">
53 79 <div class="col-lg-12 col-md-12 col-sm-12">
... ... @@ -62,5 +88,42 @@
62 88  
63 89 </form>
64 90 <script src="{% static 'js/crop_news.js' %}"></script> <!-- Js for cropper-->
  91 +<script type="text/javascript">
  92 +// check if browser supports drag n drop
  93 +// call initialization file
  94 +if (window.File && window.FileList && window.FileReader) {
  95 + Init();
  96 +}
  97 +
  98 +// initialize
  99 +function Init() {
  100 + var small = $(".file-selector"),
  101 + filedrag = $(".filedrag"),
  102 + common = $(".common-file-input");
  103 +
  104 + // file select
  105 + small.on("change", FileSelectHandler);
  106 +
  107 + // is XHR2 available?
  108 + var xhr = new XMLHttpRequest();
  109 + if (xhr.upload) {
  110 + // file drop
  111 + filedrag.on("drop", FileSelectHandler);
  112 + filedrag.attr('style', 'display:block');
  113 + common.attr('style', 'display:none');
  114 + }
  115 +}
  116 +
  117 +// file selection
  118 +function FileSelectHandler(e) {
  119 + var files = e.target.files || e.dataTransfer.files,
  120 + parent = $(e.target.offsetParent);
  121 + // process all File objects
  122 + for (var i = 0, f; f = files[i]; i++) {
  123 + parent.find('.filedrag').html(f.name);
  124 + }
  125 +}
  126 +</script>
  127 +
65 128  
66 129 {% include 'users/modal_crop.html' %}
... ...
news/views.py
... ... @@ -8,7 +8,7 @@ from django.contrib import messages
8 8 from django.utils.translation import ugettext_lazy as _
9 9 from django.db.models import Q, Count
10 10  
11   -from .models import News
  11 +from .models import News, valid_formats
12 12 from .forms import NewsForm
13 13  
14 14 class VisualizeNews(LoginRequiredMixin,LogMixin,generic.ListView):
... ... @@ -96,19 +96,19 @@ class CreateNewsView(LoginRequiredMixin,LogMixin,generic.edit.CreateView):
96 96  
97 97 super(CreateNewsView, self).createLog(self.request.user, self.log_component, self.log_action, self.log_resource, self.log_context)
98 98  
99   -
100 99 return super(CreateNewsView, self).form_valid(form)
101 100  
102   - def get_success_url(self):
103   - messages.success(self.request, _('News successfully created!'))
104   -
105   - return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} )
106   -
107 101 def get_context_data (self, **kwargs):
108 102 context = super(CreateNewsView, self).get_context_data(**kwargs)
109 103 context['title'] = _("Create News")
  104 + context['mimeTypes'] = valid_formats
110 105  
111 106 return context
  107 +
  108 + def get_success_url(self):
  109 + messages.success(self.request, _('News successfully created!'))
  110 +
  111 + return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} )
112 112  
113 113 class UpdateNewsView(LoginRequiredMixin,LogMixin,generic.UpdateView):
114 114 log_action = "update"
... ... @@ -127,17 +127,6 @@ class UpdateNewsView(LoginRequiredMixin,LogMixin,generic.UpdateView):
127 127 return redirect(reverse_lazy('subjects:home'))
128 128 return super(UpdateNewsView, self).dispatch(request, *args, **kwargs)
129 129  
130   - def get_success_url(self):
131   - messages.success(self.request, _('News successfully created!'))
132   -
133   - return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} )
134   -
135   - def get_context_data (self, **kwargs):
136   - context = super(UpdateNewsView, self).get_context_data(**kwargs)
137   - context['title'] = _("Update News")
138   -
139   - return context
140   -
141 130 def form_valid(self, form):
142 131 self.object = form.save(commit = False)
143 132 creator = self.request.user
... ... @@ -151,8 +140,19 @@ class UpdateNewsView(LoginRequiredMixin,LogMixin,generic.UpdateView):
151 140  
152 141 super(UpdateNewsView, self).createLog(self.request.user, self.log_component, self.log_action, self.log_resource, self.log_context)
153 142  
154   -
155 143 return super(UpdateNewsView, self).form_valid(form)
  144 +
  145 + def get_context_data (self, **kwargs):
  146 + context = super(UpdateNewsView, self).get_context_data(**kwargs)
  147 + context['title'] = _("Update News")
  148 + context['mimeTypes'] = valid_formats
  149 +
  150 + return context
  151 +
  152 + def get_success_url(self):
  153 + messages.success(self.request, _('News successfully created!'))
  154 +
  155 + return reverse_lazy('news:view', kwargs = {'slug': self.object.slug} )
156 156  
157 157 class SearchNewsView(LoginRequiredMixin, LogMixin, generic.ListView):
158 158 login_url = reverse_lazy("users:login")
... ...
notifications/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
pdf_file/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ... @@ -30,7 +30,7 @@ msgstr &quot;Nome do arquivo&quot;
30 30 msgid "This subject already has a pdf file with this name"
31 31 msgstr "Este assunto já possui um arquivo PDF com este nome"
32 32  
33   -#: pdf_file/forms.py:63
  33 +#: pdf_file/forms.py:63 pdf_file/templates/pdf_file/_form.html:75
34 34 msgid "The file is too large. It should have less than 10MB."
35 35 msgstr "O arquivo é muito grande. Deve ser menor do que 10MB"
36 36  
... ... @@ -50,43 +50,49 @@ msgstr &quot;Arquivo&quot;
50 50 msgid "Are you sure you want delete the PDF File"
51 51 msgstr "Tem certeza que deseja deletar este arquivo PDF?"
52 52  
53   -#: pdf_file/templates/pdf_file/_form.html:32
  53 +#: pdf_file/templates/pdf_file/_form.html:33
54 54 msgid "Choose your file..."
55 55 msgstr "Escolha seu arquivo..."
56 56  
57   -#: pdf_file/templates/pdf_file/_form.html:46
  57 +#: pdf_file/templates/pdf_file/_form.html:47
58 58 msgid "Click or drop the file here"
59 59 msgstr "Clique ou arraste o arquivo aqui."
60 60  
61   -#: pdf_file/templates/pdf_file/_form.html:48
  61 +#: pdf_file/templates/pdf_file/_form.html:49
62 62 msgid "The file could not exceed 10MB."
63 63 msgstr "O arquivo não pode exceder 10MB."
64 64  
65   -#: pdf_file/templates/pdf_file/_form.html:68
  65 +#: pdf_file/templates/pdf_file/_form.html:76
  66 +#, fuzzy
  67 +#| msgid "File not supported, use PDF format instead."
  68 +msgid "File not supported."
  69 +msgstr "Este formato não é suportado, use PDF."
  70 +
  71 +#: pdf_file/templates/pdf_file/_form.html:80
66 72 msgid "Common resources settings"
67 73 msgstr "Configurações comuns à todos os recursos"
68 74  
69   -#: pdf_file/templates/pdf_file/_form.html:119
  75 +#: pdf_file/templates/pdf_file/_form.html:131
70 76 msgid "Pendencies Notifications"
71 77 msgstr "Notificações pendentes"
72 78  
73   -#: pdf_file/templates/pdf_file/_form.html:135
  79 +#: pdf_file/templates/pdf_file/_form.html:147
74 80 msgid "Action not performed by the user"
75 81 msgstr "Ação não permitida pelo usuário"
76 82  
77   -#: pdf_file/templates/pdf_file/_form.html:161
  83 +#: pdf_file/templates/pdf_file/_form.html:173
78 84 msgid "Wished period"
79 85 msgstr "Período desejado"
80 86  
81   -#: pdf_file/templates/pdf_file/_form.html:257
  87 +#: pdf_file/templates/pdf_file/_form.html:269
82 88 msgid "Attribute students to file link"
83 89 msgstr ""
84 90  
85   -#: pdf_file/templates/pdf_file/_form.html:277
  91 +#: pdf_file/templates/pdf_file/_form.html:289
86 92 msgid "Attribute groups to file link"
87 93 msgstr ""
88 94  
89   -#: pdf_file/templates/pdf_file/_form.html:346
  95 +#: pdf_file/templates/pdf_file/_form.html:358
90 96 msgid "Save"
91 97 msgstr "Salvar"
92 98  
... ... @@ -170,8 +176,8 @@ msgstr &quot;Editar: &quot;
170 176 msgid "PDF could not be displayed"
171 177 msgstr "PDF não pode ser mostrado"
172 178  
173   -#: pdf_file/views.py:127 pdf_file/views.py:140 pdf_file/views.py:251
174   -#: pdf_file/views.py:253 pdf_file/views.py:269 pdf_file/views.py:271
  179 +#: pdf_file/views.py:127 pdf_file/views.py:140 pdf_file/views.py:252
  180 +#: pdf_file/views.py:254 pdf_file/views.py:270 pdf_file/views.py:272
175 181 msgid "Visualize"
176 182 msgstr "Visualizar"
177 183  
... ... @@ -179,7 +185,7 @@ msgstr &quot;Visualizar&quot;
179 185 msgid "Create PDF File"
180 186 msgstr "Criar o arquivo PDF"
181 187  
182   -#: pdf_file/views.py:211
  188 +#: pdf_file/views.py:212
183 189 #, python-format
184 190 msgid ""
185 191 "The PDF File \"%s\" was added to the Topic \"%s\" of the virtual environment "
... ... @@ -188,67 +194,67 @@ msgstr &quot;&quot;
188 194 "O arquivo PDF \"%s\" foi adicionado ao topico \"%s\" do ambiente virtual "
189 195 "\"%s\" com sucesso!"
190 196  
191   -#: pdf_file/views.py:315
  197 +#: pdf_file/views.py:316
192 198 msgid "Update PDF File"
193 199 msgstr "Atualize arquivo PDF"
194 200  
195   -#: pdf_file/views.py:326
  201 +#: pdf_file/views.py:328
196 202 #, python-format
197 203 msgid "The PDF File \"%s\" was updated successfully!"
198 204 msgstr "O arquivo PDF \"%s\" foi atualizado com sucesso!"
199 205  
200   -#: pdf_file/views.py:353
  206 +#: pdf_file/views.py:355
201 207 #, python-format
202 208 msgid ""
203 209 "The PDF File \"%s\" was removed successfully from virtual environment \"%s\"!"
204 210 msgstr ""
205 211 "O arquivo PDF \"%s\" foi removido com sucesso do ambiente virtual \"%s\" "
206 212  
207   -#: pdf_file/views.py:411
  213 +#: pdf_file/views.py:413
208 214 msgid "PDF File Reports"
209 215 msgstr "Relatórios do arquivo de PDF"
210 216  
211   -#: pdf_file/views.py:431
  217 +#: pdf_file/views.py:433
212 218 msgid "Realized"
213 219 msgstr "Realizada"
214 220  
215   -#: pdf_file/views.py:431
  221 +#: pdf_file/views.py:433
216 222 msgid "Unrealized"
217 223 msgstr "Não Realizada"
218 224  
219   -#: pdf_file/views.py:431
  225 +#: pdf_file/views.py:433
220 226 msgid "Historic"
221 227 msgstr "Histórico"
222 228  
223   -#: pdf_file/views.py:447 pdf_file/views.py:455
  229 +#: pdf_file/views.py:449 pdf_file/views.py:457
224 230 msgid "View"
225 231 msgstr "Visualizar"
226 232  
227   -#: pdf_file/views.py:456
  233 +#: pdf_file/views.py:458
228 234 msgid "PDF File"
229 235 msgstr "Criar o arquivo PDF"
230 236  
231   -#: pdf_file/views.py:461
  237 +#: pdf_file/views.py:463
232 238 msgid "Actions about resource"
233 239 msgstr "Ações sobre o recurso"
234 240  
235   -#: pdf_file/views.py:462
  241 +#: pdf_file/views.py:464
236 242 msgid "Quantity"
237 243 msgstr "Quantidade"
238 244  
239   -#: pdf_file/views.py:509
  245 +#: pdf_file/views.py:511
240 246 msgid "[Photo]"
241 247 msgstr "[Imagem]"
242 248  
243   -#: pdf_file/views.py:521
  249 +#: pdf_file/views.py:523
244 250 #, python-format
245 251 msgid "Last message in %s"
246 252 msgstr "Última mensagem em %s"
247 253  
248   -#: pdf_file/views.py:530
  254 +#: pdf_file/views.py:532
249 255 msgid "The message was successfull sent!"
250 256 msgstr "A mensagem foi enviada com sucesso!"
251 257  
252   -#: pdf_file/views.py:532
  258 +#: pdf_file/views.py:534
253 259 msgid "No user selected!"
254 260 msgstr "Nenhum usuário selecionado!"
... ...
pendencies/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
reports/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
security/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
students_group/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
subjects/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ... @@ -18,27 +18,27 @@ msgstr &quot;&quot;
18 18 "Content-Transfer-Encoding: 8bit\n"
19 19 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
20 20  
21   -#: subjects/forms.py:14 subjects/forms.py:117
  21 +#: subjects/forms.py:24 subjects/forms.py:128
22 22 msgid "Tags"
23 23 msgstr "Tags"
24 24  
25   -#: subjects/forms.py:67 subjects/forms.py:170
  25 +#: subjects/forms.py:78 subjects/forms.py:183
26 26 msgid "There is another subject with this name, try another one."
27 27 msgstr "Já existe um assunto com esse nome, tente outro."
28 28  
29   -#: subjects/forms.py:76
  29 +#: subjects/forms.py:87
30 30 msgid "This date must be today or after"
31 31 msgstr "Essa data deve ser hoje ou depois disso"
32 32  
33   -#: subjects/forms.py:86 subjects/forms.py:189
  33 +#: subjects/forms.py:97 subjects/forms.py:201
34 34 msgid "This date must be equal subscribe begin or after"
35 35 msgstr "Essa data deve ser igual ou depois de começarem as incrições"
36 36  
37   -#: subjects/forms.py:96 subjects/forms.py:199
  37 +#: subjects/forms.py:107 subjects/forms.py:211
38 38 msgid "This date must be after subscribe end"
39 39 msgstr "Essa data deve ser depois do fim das inscrições"
40 40  
41   -#: subjects/forms.py:105 subjects/forms.py:208
  41 +#: subjects/forms.py:116 subjects/forms.py:220
42 42 msgid "This date must be equal init date or after"
43 43 msgstr "Essa data deve ser igual ou depois da data de início"
44 44  
... ... @@ -189,7 +189,7 @@ msgid &quot;DELETE&quot;
189 189 msgstr "Deletar"
190 190  
191 191 #: subjects/templates/subjects/home.html:67
192   -#: subjects/templates/subjects/initial.html:77 subjects/views.py:212
  192 +#: subjects/templates/subjects/initial.html:77 subjects/views.py:214
193 193 msgid "My Subjects"
194 194 msgstr "Meus assuntos"
195 195  
... ... @@ -242,12 +242,12 @@ msgid &quot; Any subjects or Resources were not found on the search for &quot;
242 242 msgstr " Nenhum assunto ou recursos foram encontrados na busca por "
243 243  
244 244 #: subjects/templates/subjects/list_search.html:48
245   -#: subjects/templates/subjects/list_search.html:51 subjects/views.py:677
  245 +#: subjects/templates/subjects/list_search.html:51 subjects/views.py:679
246 246 msgid "Subjects"
247 247 msgstr "Assuntos"
248 248  
249 249 #: subjects/templates/subjects/list_search.html:49
250   -#: subjects/templates/subjects/list_search.html:52 subjects/views.py:684
  250 +#: subjects/templates/subjects/list_search.html:52 subjects/views.py:686
251 251 msgid "Resources"
252 252 msgstr "Recursos"
253 253  
... ... @@ -362,52 +362,52 @@ msgstr &quot;Ver Perfil&quot;
362 362 msgid "Send Message"
363 363 msgstr "Enviar Mensagem"
364 364  
365   -#: subjects/views.py:85
  365 +#: subjects/views.py:87
366 366 msgid "Home"
367 367 msgstr "Início"
368 368  
369   -#: subjects/views.py:184
  369 +#: subjects/views.py:186
370 370 msgid "Page is not 'last', nor can it be converted to an int."
371 371 msgstr ""
372 372 "Página não é a 'última', e também não pode ser convertido para um inteiro"
373 373  
374   -#: subjects/views.py:190
  374 +#: subjects/views.py:192
375 375 #, python-format
376 376 msgid "Invalid page (%(page_number)s): %(message)s"
377 377 msgstr "Página inválida (%(page_number)s): %(message)s"
378 378  
379   -#: subjects/views.py:219
  379 +#: subjects/views.py:221
380 380 msgid "All Subjects"
381 381 msgstr "Todos os assuntos"
382 382  
383   -#: subjects/views.py:315
  383 +#: subjects/views.py:317
384 384 msgid "Create Subject"
385 385 msgstr "Criar Assunto"
386 386  
387   -#: subjects/views.py:327
  387 +#: subjects/views.py:329
388 388 msgid "Replicate Subject"
389 389 msgstr "Replicar Assunto"
390 390  
391   -#: subjects/views.py:369
  391 +#: subjects/views.py:371
392 392 #, python-format
393 393 msgid "The Subject \"%s\" was registered on \"%s\" Category successfully!"
394 394 msgstr "Assunto \"%s\" foi registrado na categoria \"%s\" com sucesso!"
395 395  
396   -#: subjects/views.py:404
  396 +#: subjects/views.py:406
397 397 msgid "Update Subject"
398 398 msgstr "Atualizar Assunto"
399 399  
400   -#: subjects/views.py:428
  400 +#: subjects/views.py:430
401 401 #, python-format
402 402 msgid "The Subject \"%s\" was updated on \"%s\" Category successfully!"
403 403 msgstr "Assunto \"%s\" foi atualizado na categoria \"%s\" com sucesso!"
404 404  
405   -#: subjects/views.py:469 subjects/views.py:513
  405 +#: subjects/views.py:471 subjects/views.py:515
406 406 #, python-format
407 407 msgid "Subject \"%s\" removed successfully!"
408 408 msgstr "Assunto \"%s\" removido com sucesso!"
409 409  
410   -#: subjects/views.py:477 subjects/views.py:481
  410 +#: subjects/views.py:479 subjects/views.py:483
411 411 msgid ""
412 412 "Subject can't be removed. The subject still possess students and learning "
413 413 "objects associated"
... ... @@ -415,24 +415,24 @@ msgstr &quot;&quot;
415 415 "Assunto não pode ser removido. Ele ainda possui alunos e objetos de "
416 416 "aprendizado associados"
417 417  
418   -#: subjects/views.py:603
  418 +#: subjects/views.py:605
419 419 msgid "Subscription date is due!"
420 420 msgstr "O período de inscrição está encerrado!"
421 421  
422   -#: subjects/views.py:616
  422 +#: subjects/views.py:618
423 423 msgid "Subscription was successfull!"
424 424 msgstr "Inscrição feita com sucesso!"
425 425  
426   -#: subjects/views.py:749
  426 +#: subjects/views.py:751
427 427 #, python-format
428 428 msgid "%s - Backup"
429 429 msgstr "%s - Backup"
430 430  
431   -#: subjects/views.py:885
  431 +#: subjects/views.py:910
432 432 #, python-format
433 433 msgid "%s - Restore"
434 434 msgstr "%s - Restaurar"
435 435  
436   -#: subjects/views.py:951
  436 +#: subjects/views.py:984
437 437 msgid "Backup restored successfully!"
438 438 msgstr "Backup restaurado com sucesso!"
... ...
themes/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ... @@ -18,11 +18,12 @@ msgstr &quot;&quot;
18 18 "Content-Transfer-Encoding: 8bit\n"
19 19 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
20 20  
21   -#: themes/forms.py:15 themes/forms.py:27 themes/forms.py:39
  21 +#: themes/forms.py:17 themes/forms.py:29 themes/forms.py:41
  22 +#: themes/templates/themes/basic_update.html:94
22 23 msgid "The image is too large. It should have less than 2MB."
23 24 msgstr "A imagem é muito grande. Ela deve ter menos de 2MB."
24 25  
25   -#: themes/models.py:11
  26 +#: themes/models.py:11 themes/templates/themes/basic_update.html:95
26 27 msgid "File not supported."
27 28 msgstr "Arquivo não suportado."
28 29  
... ... @@ -96,12 +97,12 @@ msgstr &quot;Dimensões recomendads&quot;
96 97 msgid "It is recommended to be a white image"
97 98 msgstr "É recomendável ser uma imagem branca"
98 99  
99   -#: themes/templates/themes/basic_update.html:89
  100 +#: themes/templates/themes/basic_update.html:103
100 101 #: themes/templates/themes/css_update.html:75
101 102 msgid "Save"
102 103 msgstr "Salvar"
103 104  
104   -#: themes/templates/themes/basic_update.html:94
  105 +#: themes/templates/themes/basic_update.html:108
105 106 #: themes/templates/themes/css_update.html:17
106 107 #: themes/templates/themes/index.html:18 themes/views.py:78
107 108 msgid "CSS Selector"
... ...
topics/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
users/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ... @@ -23,6 +23,7 @@ msgid &quot;You must insert an email address&quot;
23 23 msgstr "Você deve inserir um endereço de email"
24 24  
25 25 #: users/forms.py:43 users/templates/users/_form.html:94
  26 +#: users/templates/users/register.html:107
26 27 msgid "The image is too large. It should have less than 2MB."
27 28 msgstr "A imagem é muito grande. Ela deve conter menos de 2MB."
28 29  
... ... @@ -88,6 +89,7 @@ msgid &quot;You must insert a valid email address&quot;
88 89 msgstr "Você deve inserir um endereço de email válido"
89 90  
90 91 #: users/models.py:18 users/templates/users/_form.html:95
  92 +#: users/templates/users/register.html:108
91 93 msgid "File not supported."
92 94 msgstr "Arquivo não suportado."
93 95  
... ... @@ -173,15 +175,15 @@ msgstr &quot;Sim&quot;
173 175 msgid "Is not an admin"
174 176 msgstr "Não é administrador"
175 177  
176   -#: users/templates/users/_form.html:18 users/templates/users/register.html:53
  178 +#: users/templates/users/_form.html:18 users/templates/users/register.html:56
177 179 msgid "Choose your photo..."
178 180 msgstr "Escolha sua foto..."
179 181  
180   -#: users/templates/users/_form.html:32
  182 +#: users/templates/users/_form.html:32 users/templates/users/register.html:70
181 183 msgid "Click or drop the file here"
182 184 msgstr ""
183 185  
184   -#: users/templates/users/_form.html:34
  186 +#: users/templates/users/_form.html:34 users/templates/users/register.html:72
185 187 msgid "The photo could not exceed 2MB."
186 188 msgstr "A imagem não pode exceder o tamanho de 2MB."
187 189  
... ... @@ -231,7 +233,7 @@ msgstr &quot;Recuperar&quot;
231 233  
232 234 #: users/templates/users/forgot_password.html:75
233 235 #: users/templates/users/new_password.html:80
234   -#: users/templates/users/register.html:93
  236 +#: users/templates/users/register.html:121
235 237 msgid "Back"
236 238 msgstr "Voltar"
237 239  
... ... @@ -308,7 +310,7 @@ msgstr &quot;Estudante em&quot;
308 310 msgid "User Register"
309 311 msgstr "Cadastro de Usuário"
310 312  
311   -#: users/templates/users/register.html:90
  313 +#: users/templates/users/register.html:118
312 314 msgid "Register"
313 315 msgstr "Cadastrar"
314 316  
... ...
webconference/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
webpage/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...
youtube_video/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-08-30 22:41-0300\n"
  11 +"POT-Creation-Date: 2017-09-02 01:44-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"
... ...