From 154354d1b853332effab3a9dd77d0e95f020b480 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 16 Mar 2021 17:28:40 +0100 Subject: Force translations for QA new items --- ishtar_common/views.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'ishtar_common/views.py') diff --git a/ishtar_common/views.py b/ishtar_common/views.py index cb1af7c5d..6ae0c1f3b 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -823,17 +823,21 @@ def autocomplete_author(request): return HttpResponse(data, content_type='text/plain') -new_person = new_qa_item(models.Person, forms.PersonForm) +new_person = new_qa_item(models.Person, forms.PersonForm, + page_name=_("New person")) modify_person = modify_qa_item(models.Person, forms.PersonForm) detail_person = get_short_html_detail(models.Person) -new_person_noorga = new_qa_item(models.Person, forms.NoOrgaPersonForm) -new_organization = new_qa_item(models.Organization, forms.OrganizationForm) +new_person_noorga = new_qa_item(models.Person, forms.NoOrgaPersonForm, + page_name=_("New person")) +new_organization = new_qa_item(models.Organization, forms.OrganizationForm, + page_name=_("New organization")) show_organization = show_item(models.Organization, 'organization') get_organization = get_item(models.Organization, 'get_organization', 'organization') modify_organization = modify_qa_item(models.Organization, forms.OrganizationForm) detail_organization = get_short_html_detail(models.Organization) -new_author = new_qa_item(models.Author, forms.AuthorForm) +new_author = new_qa_item(models.Author, forms.AuthorForm, + page_name=_("New author")) show_person = show_item(models.Person, 'person') get_person = get_item(models.Person, 'get_person', 'person') @@ -1922,7 +1926,8 @@ class OrganizationPersonEdit(LoginRequiredMixin, UpdateView): # documents -new_document_tag = new_qa_item(models.DocumentTag, forms.AddDocumentTagForm) +new_document_tag = new_qa_item(models.DocumentTag, forms.AddDocumentTagForm, + page_name=_("New tag")) autocomplete_documenttag = get_autocomplete_generic(models.DocumentTag) show_document = show_item(models.Document, 'document') -- cgit v1.2.3