Skip to content

Commit 1e8fabd

Browse files
committed
Change public body to public agency
1 parent a774451 commit 1e8fabd

104 files changed

Lines changed: 1543 additions & 1543 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/about.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ Features
2424
- Froide uses many of the built-in Django features like the Admin interface to
2525
manage and update entities in the system, the internationalization
2626
system, and the user management and authentication.
27-
- Freedom of Information Laws and Public Entities are connected through a many-to-many relationship. That allows for a Public Body to be accountable under different laws.
28-
- A Public Body can have a parent to represent hierarchies from the real
27+
- Freedom of Information Laws and Public Entities are connected through a many-to-many relationship. That allows for a Public Agency to be accountable under different laws.
28+
- A Public Agency can have a parent to represent hierarchies from the real
2929
world. They can also be categorized into classifications (e.g. ministry, council) and topical tags (e.g. environment, military) which can be defined separately.
30-
- Users can create requests without a Public Body so that others can
30+
- Users can create requests without a Public Agency so that others can
3131
suggest an appropriate recipient later.
3232
- Requests can optionally be kept private by users and published at a
3333
later point (e.g. after a related article has been published).
34-
- Requests are mailed to Public Bodies through the platform via a special,
34+
- Requests are mailed to Public Agencies through the platform via a special,
3535
request-unique email address (using SMTP) and the platform will receive answers on
3636
that mail address (by accessing an IMAP account).
37-
- Search functionality for Requests and Public Bodies.
37+
- Search functionality for Requests and Public Agencies.
3838
- A read/write REST-API
3939
- Redaction of PDFs
4040

docs/admin.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Froide Admin
33
============
44

55
The Django admin exposes database objects to staff users and superusers.
6-
Superusers have access to all objects while staff users can be given specific read/write/delete access to kinds of objects (e.g. only public bodies). Users can also given a group that has certain rights associated with it.
6+
Superusers have access to all objects while staff users can be given specific read/write/delete access to kinds of objects (e.g. only public agencies). Users can also given a group that has certain rights associated with it.

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ inside your Froide instance.
77

88
The Froide API is available at `/api/v1/` and the interactive Froide API documentation is available at `/api/v1/docs/`.
99

10-
There are additional search endpoints for Public Bodies and FOI Requests at `/api/v1/publicbody/search/` and `/api/v1/request/search/` respectively. Use `q` as the query parameter in a GET request.
10+
There are additional search endpoints for Public Agencies and FOI Requests at `/api/v1/publicbody/search/` and `/api/v1/request/search/` respectively. Use `q` as the query parameter in a GET request.
1111

1212
GET requests do not need to be authenticated. POST, PUT and DELETE requests have to either carry a valid session cookie and a CSRF token or provide user name (you find your user name on your profile) and password via Basic Authentication.

docs/configuration.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ The following keys in that dictionary must be present:
1818
*boolean* Can users hide their name on the portal? Their name will always be sent with the request, but may not appear on the website.
1919

2020
**public_body_officials_public**
21-
*boolean* Are the names of responding public body officials public and visible on the Web?
21+
*boolean* Are the names of responding public agency officials public and visible on the Web?
2222

2323
**public_body_officials_email_public**
24-
*boolean* Are the email addresses of public body officials public and visible on the Web?
24+
*boolean* Are the email addresses of public agency officials public and visible on the Web?
2525

2626
**currency**
2727
*string* The currency in which payments (if at all) occur
@@ -55,16 +55,16 @@ regexes that also find the name::
5555
You should replace this with a list of the most common expressions in
5656
your language.
5757

58-
Index Boosting of Public Bodies
58+
Index Boosting of Public Agencies
5959
-------------------------------
6060

61-
Some Public Bodies are more important and should appear first in
61+
Some Public Agencies are more important and should appear first in
6262
searches (if their name and description match the search terms). You can
63-
provide a mapping of public body classifications (e.g. ministry,
63+
provide a mapping of public agency classifications (e.g. ministry,
6464
council etc.) to their search boost factor via the `public_body_boosts`
6565
key in the `FROIDE_CONFIG` setting::
6666

67-
# boost public bodies by their classification
67+
# boost public agencies by their classification
6868
FROIDE_CONFIG.update(
6969
'public_body_boosts': {
7070
u"Ministry": 1.9,
@@ -75,7 +75,7 @@ key in the `FROIDE_CONFIG` setting::
7575
For autocomplete search results another name schema is used. This needs
7676
its own config too::
7777

78-
# boost public bodies for autocomplete
78+
# boost public agencies for autocomplete
7979
FROIDE_CONFIG.update(
8080
'autocomplete_body_boosts': {
8181
u"Ministry": 1.9
@@ -95,15 +95,15 @@ production)::
9595
# production environment:
9696
EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend'
9797

98-
Define the standard Django SMTP parameters for sending regular email notifications (not FoI request emails to public bodies)::
98+
Define the standard Django SMTP parameters for sending regular email notifications (not FoI request emails to public agencies)::
9999

100100
EMAIL_HOST = "smtp.example.com"
101101
EMAIL_PORT = 587
102102
EMAIL_HOST_USER = "mail@foi.example.com"
103103
EMAIL_HOST_PASSWORD = "password"
104104
EMAIL_USE_TLS = True
105105

106-
Also define the parameters for sending FoI-Mails to public bodies.
106+
Also define the parameters for sending FoI-Mails to public agencies.
107107
They might be different because they can either be sent from a fixed
108108
address and with a special `Reply-To` field or directly from a special
109109
address::

docs/importpublicbodies.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
=======================
2-
Importing Public Bodies
2+
Importing Public Agencies
33
=======================
44

5-
While it is possible to create public bodies individually through the admin
5+
While it is possible to create public agencies individually through the admin
66
interface, it might be more advisable to scrape a list from a website or
77
crowdsource them with other people in a Google doc. You can then import these
8-
public bodies as a CSV file into Froide.
8+
public agencies as a CSV file into Froide.
99

10-
The format of the CSV file should be like `in this Google Docs Spreadsheet <https://docs.google.com/spreadsheet/ccc?key=0AhDkodM9ozpddGNTaGJoa203aEJaRXVfM0Q0d1RjNUE#gid=0>`_. You could for example copy it and either fill in public bodies collaboratively or programmatically.
10+
The format of the CSV file should be like `in this Google Docs Spreadsheet <https://docs.google.com/spreadsheet/ccc?key=0AhDkodM9ozpddGNTaGJoa203aEJaRXVfM0Q0d1RjNUE#gid=0>`_. You could for example copy it and either fill in public agencies collaboratively or programmatically.
1111

1212

1313
Prerequisites
@@ -22,39 +22,39 @@ Format
2222
The format is quite simple.
2323

2424
name
25-
(required) The name of the public body.
25+
(required) The name of the public agency.
2626
email
27-
(optional) If you give no email, users will not be able to make requests to this public body. You can fill in email addresses later through the admin.
27+
(optional) If you give no email, users will not be able to make requests to this public agency. You can fill in email addresses later through the admin.
2828
jurisdiction__slug
29-
(required) Give the slug of the jurisdiction this public body belongs to.
29+
(required) Give the slug of the jurisdiction this public agency belongs to.
3030
other_names
31-
(optional) Possible other, alternative names for the public body separated by commas.
31+
(optional) Possible other, alternative names for the public agency separated by commas.
3232
description
33-
(optional) A text description of the public body.
33+
(optional) A text description of the public agency.
3434
tags
35-
(optional) A comma-separated (possibly quoted) list of tags for this public body.
35+
(optional) A comma-separated (possibly quoted) list of tags for this public agency.
3636
Tags may already exist or not.
3737
url
38-
(optional) Website for this public body.
38+
(optional) Website for this public agency.
3939
parent__name
40-
(optional) if this public body has a parent, give it's name here. The parent must be specified before in the CSV file.
40+
(optional) if this public agency has a parent, give it's name here. The parent must be specified before in the CSV file.
4141
classification
4242
(optional) Give a classification (e.g. "ministry").
4343
contact
4444
(optional) Contact information apart from post address and email. E.g. phone or fax number. May contain line breaks.
4545
address
46-
(optional) Postal address of this public body.
46+
(optional) Postal address of this public agency.
4747
website_dump
48-
(optional) Any further text that can be used to described this public body. This is used for search indexing and will not be displayed publicly.
48+
(optional) Any further text that can be used to described this public agency. This is used for search indexing and will not be displayed publicly.
4949
request_note
50-
(optional) Display this text for this public body when making a request to it.
50+
(optional) Display this text for this public agency when making a request to it.
5151

52-
If during import a public body with the same slug is found, it is skipped and not overwritten.
52+
If during import a public agency with the same slug is found, it is skipped and not overwritten.
5353

5454
Importing through Admin
5555
-----------------------
5656

57-
The admin interface that lists public bodies has an import form at the very bottom of the page. Give a HTTP or HTTPS URL of your CSV file and press the import button. The file will be downloaded and imported. Any errors will be shown to you.
57+
The admin interface that lists public agencies has an import form at the very bottom of the page. Give a HTTP or HTTPS URL of your CSV file and press the import button. The file will be downloaded and imported. Any errors will be shown to you.
5858

5959

6060
Importing via command line

froide/account/forms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ class Meta:
5353

5454
ADDRESS_REQUIRED_HELP_TEXT = _(
5555
"Your address will not be displayed "
56-
"publicly and is only needed because a public body "
56+
"publicly and is only needed because a public agency "
5757
"will likely want to send you paper."
5858
)
5959

6060
ADDRESS_HELP_TEXT = _(
6161
"Your address will not be displayed "
62-
"publicly and is only needed in case a public body "
62+
"publicly and is only needed in case a public agency "
6363
"needs to send you paper."
6464
)
6565

@@ -142,7 +142,7 @@ class NewUserBaseForm(AddressBaseForm):
142142
label=_("Hide my name from public view"),
143143
help_text=format_html(
144144
_(
145-
"If you check this, your name will still appear in requests to public bodies, but we will do our best to not display it publicly. However, we cannot guarantee your anonymity"
145+
"If you check this, your name will still appear in requests to public agencies, but we will do our best to not display it publicly. However, we cannot guarantee your anonymity"
146146
)
147147
),
148148
)

froide/account/templates/account/confirmed.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2>{% trans "Your email address is now confirmed!" %}</h2>
2222
Your request “<a href="{{ url }}">{{ title }}</a>” has been sent.
2323
{% endblocktrans %}
2424
</p>
25-
<p>{% trans "We will send you an email when you receive a reply from the public body." %}</p>
25+
<p>{% trans "We will send you an email when you receive a reply from the public agency." %}</p>
2626
{% endif %}
2727
</div>
2828
</div>

froide/account/templates/account/new.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>{% trans "Please confirm your email address!" %}</h1>
1818
{% if title %}
1919
<p class="lead">
2020
{% blocktrans with title=title %}
21-
Your request “{{ title }}” will only be sent to the public body, when you confirm your email address.
21+
Your request “{{ title }}” will only be sent to the public agency, when you confirm your email address.
2222
{% endblocktrans %}
2323
</p>
2424
{% endif %}

froide/account/templates/account/profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ <h4 class="text-center">{% translate "Most followed requests" %}</h4>
9494
{% if top_publicbodies %}
9595
<div class="col-12">
9696
<div class="rounded-3 px-3 pt-3 pb-2 mb-3 bg-body-secondary">
97-
<h4 class="text-center">{% translate "Top requested public bodies" %}</h4>
97+
<h4 class="text-center">{% translate "Top requested public agencies" %}</h4>
9898
<ol class="lead">
9999
{% for pb in top_publicbodies %}
100100
<li>

froide/document/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DocumentSearchView(BaseSearchView):
5353
"getter": lambda x: str(x["object"].pk),
5454
"query_param": "publicbody",
5555
"label_getter": lambda x: x["object"].name,
56-
"label": _("public bodies"),
56+
"label": _("public agencies"),
5757
},
5858
"collections": {
5959
"queryset": DocumentCollection.objects.filter(public=True),

0 commit comments

Comments
 (0)