diff --git a/amadeus/locale/pt_BR/LC_MESSAGES/django.po b/amadeus/locale/pt_BR/LC_MESSAGES/django.po index 79f3c12..2c4ab1b 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-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 710f626..07d8db5 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-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 7422ff2..3431f71 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-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 43affa3..1e674db 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-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 537ce49..241c109 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-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 6401283..2662250 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -91,6 +91,10 @@ msgstr "Atribuir professores ao assunto" msgid "Save" msgstr "Salvar" +#: subjects/templates/subjects/create.html:23 +msgid "Replicate: " +msgstr "Replicar: " + #: subjects/templates/subjects/delete.html:10 #: subjects/templates/subjects/subscribe.html:10 msgid "Delete Subject" @@ -158,7 +162,7 @@ msgstr "Remover" #: subjects/templates/subjects/list.html:94 #: subjects/templates/subjects/list.html:159 msgid "Coordinator(s) " -msgstr "Coordenador(es)" +msgstr "Coordenador(es) " #: subjects/templates/subjects/list.html:98 #: subjects/templates/subjects/list.html:163 @@ -174,7 +178,7 @@ msgstr "Criar novo assunto" #: subjects/templates/subjects/subject_card.html:99 #: subjects/templates/subjects/view.html:66 msgid "Professor(s) " -msgstr "Professor(es)" +msgstr "Professor(es) " #: subjects/templates/subjects/subject_card.html:40 #: subjects/templates/subjects/subject_card.html:103 @@ -216,6 +220,10 @@ msgstr "Cancelar" msgid "Ok" msgstr "Ok" +#: subjects/templates/subjects/update.html:20 +msgid "Update: " +msgstr "Editar: " + #: subjects/templates/subjects/view.html:84 msgid "Create new topic" msgstr "Criar novo tópico" @@ -236,21 +244,25 @@ msgstr "Todos os assuntos" msgid "Create Subject" msgstr "Criar Assunto" -#: subjects/views.py:188 +#: subjects/views.py:167 +msgid "Replicate Subject" +msgstr "Replicar Assunto" + +#: subjects/views.py:195 #, python-format msgid "Subject \"%s\" was registered on \"%s\" successfully!" msgstr "Assunto \"%s\" foi registrado em \"%s\" com sucesso!" -#: subjects/views.py:201 +#: subjects/views.py:208 msgid "Update Subject" msgstr "Atualizar Assunto" -#: subjects/views.py:212 +#: subjects/views.py:219 #, python-format msgid "Subject \"%s\" was updated on \"%s\" successfully!" msgstr "Assunto \"%s\" foi atualizado em \"%s\" com sucesso!" -#: subjects/views.py:229 +#: subjects/views.py:236 msgid "" "Subject can't be removed. The subject still possess students and learning " "objects associated" @@ -258,14 +270,14 @@ msgstr "" "Assunto não pode ser removido. Ele ainda possui alunos e objetos de " "aprendizado associados" -#: subjects/views.py:249 +#: subjects/views.py:256 msgid "Subject removed successfully!" msgstr "Assunto removido com sucesso!" -#: subjects/views.py:282 +#: subjects/views.py:289 msgid "Subscription date is due!" msgstr "O período de inscrição está encerrado!" -#: subjects/views.py:286 +#: subjects/views.py:293 msgid "Subscription was successfull!" msgstr "Inscrição feita com sucesso!" diff --git a/subjects/templates/subjects/create.html b/subjects/templates/subjects/create.html index e454c64..699b366 100644 --- a/subjects/templates/subjects/create.html +++ b/subjects/templates/subjects/create.html @@ -13,17 +13,28 @@ {% endblock %} {% block breadcrumbs %} - {% clear_breadcrumbs %} - {% breadcrumb 'Home' 'subjects:home' %} + {% clear_breadcrumbs %} + {% breadcrumb 'Home' 'subjects:home' %} - {% breadcrumb slug 'subjects:index' %} - {% breadcrumb 'Create Subject' 'subjects:create' %} + {% if subject %} + {% breadcrumb subject.category 'subjects:index' %} + {% breadcrumb subject 'subjects:view' subject.slug %} + + {% trans 'Replicate: ' as bread %} + + {% with bread|add:subject.name as bread_slug %} + {% breadcrumb bread_slug 'subjects:create' %} + {% endwith %} + {% else %} + {% breadcrumb slug 'subjects:index' %} + {% breadcrumb 'Create Subject' 'subjects:create' %} + {% endif %} {% endblock %} {% block content %}
- {% include 'subjects/_form.html' %} + {% include 'subjects/_form.html' %}

diff --git a/subjects/templates/subjects/update.html b/subjects/templates/subjects/update.html index 63d4728..9fd35b2 100644 --- a/subjects/templates/subjects/update.html +++ b/subjects/templates/subjects/update.html @@ -15,7 +15,10 @@ {% block breadcrumbs %} {{ block.super }} - {% with 'Update '|add:object.slug as bread_slug %} + {% breadcrumb object.category 'subjects:index' %} + {% breadcrumb object 'subjects:view' object.slug %} + {% trans 'Update: ' as bread %} + {% with bread|add:object.name as bread_slug %} {% breadcrumb bread_slug 'subjects:update' %} {% endwith %} {% endblock %} diff --git a/subjects/views.py b/subjects/views.py index 3ea6bae..f0bf7b6 100644 --- a/subjects/views.py +++ b/subjects/views.py @@ -159,11 +159,18 @@ class SubjectCreateView(LoginRequiredMixin, CreateView): def get_context_data(self, **kwargs): context = super(SubjectCreateView, self).get_context_data(**kwargs) context['title'] = _('Create Subject') + if self.kwargs.get('slug'): context['slug'] = self.kwargs['slug'] + if self.kwargs.get('subject_slug'): + context['title'] = _('Replicate Subject') + subject = get_object_or_404(Subject, slug = self.kwargs['subject_slug']) + context['slug'] = subject.category.slug + context['subject'] = subject + context['subjects_menu_active'] = 'subjects_menu_active' return context diff --git a/themes/locale/pt_BR/LC_MESSAGES/django.po b/themes/locale/pt_BR/LC_MESSAGES/django.po index 8c93a71..e2e3439 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/topics/locale/pt_BR/LC_MESSAGES/django.po b/topics/locale/pt_BR/LC_MESSAGES/django.po index 97b415d..5f2bb70 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-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 85882f7..8b4e388 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-01-18 15:17-0300\n" +"POT-Creation-Date: 2017-01-18 15:35-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