diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-03-16 17:28:40 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-03-16 17:28:40 +0100 |
commit | 154354d1b853332effab3a9dd77d0e95f020b480 (patch) | |
tree | a26117e6505425797caaca9e06a25cd0f8249e17 /ishtar_common/views.py | |
parent | db59013598b86e348694f4ade7c155a16142368e (diff) | |
download | Ishtar-154354d1b853332effab3a9dd77d0e95f020b480.tar.bz2 Ishtar-154354d1b853332effab3a9dd77d0e95f020b480.zip |
Force translations for QA new items
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r-- | ishtar_common/views.py | 15 |
1 files changed, 10 insertions, 5 deletions
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') |