You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: froide/account/forms.py
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -141,13 +141,15 @@ class NewUserBaseForm(AddressBaseForm):
141
141
required=False,
142
142
initial=False,
143
143
widget=BootstrapRadioSelect,
144
-
label=_("For journalists"),
144
+
label=_("{site_name} for journalists").format(site_name=settings.SITE_NAME),
145
145
help_text=_(
146
-
"You work in journalism and would like to use this platform for your research? Shortly after your sign-up is completed, we will send you additional information about extra functionality for journalists."
146
+
_(
147
+
"You work in journalism and would like to use {site_name} for your research? Shortly after your sign-up is completed, we will send you additional information about extra functionality for journalists."
148
+
).format(site_name=settings.SITE_NAME)
147
149
),
148
150
choices=[
149
-
(False, _("No, I am not a journalist")),
150
-
(True, _("Yes, I am a journalist")),
151
+
(False, _("No, I am <strong>not a journalist</strong>")),
152
+
(True, _("Yes, I am <strong>a journalist</strong>")),
151
153
],
152
154
coerce=lambdax: xand (x.lower() !="false"),
153
155
)
@@ -160,11 +162,13 @@ class NewUserBaseForm(AddressBaseForm):
160
162
widget=BootstrapRadioSelect,
161
163
label=_("Hide my name from public view"),
162
164
choices=[
163
-
# TODO i18n
164
-
# TODO <b>plain text
165
-
(False, "My name may appear on the website in plain text"),
166
-
# TODO <b>redacted
167
-
(True, "My name must be redacted"),
165
+
(
166
+
False,
167
+
_(
168
+
"My name may appear on the website in <strong>plain text</strong>"
169
+
),
170
+
),
171
+
(True, _("My name must be <strong>redacted</strong>")),
<ahref="{% url 'account-login' %}?next={{ request.get_full_path|urlencode }}">{% trans "Zum Login" %}</a>
116
113
</template>
114
+
<templatedata-slot="user-public-preamble">
115
+
{% blocktrans %}<p>Your name will be sent to public bodies. If you want to remain anonymous to the public, you can choose to not display your name on the website. Your name will then be redacted.</p>{% endblocktrans %}
116
+
</template>
117
117
<templatedata-slot="request-public-preamble">
118
-
{% blocktrans %}
119
-
<p>Ihre Anfrage ist für alle auf dieser Website sichtbar.
120
-
Denn Sie tragen mit Ihrer Anfrage zu einem öffentlichen Archiv amtlicher Informationen bei und sorgen so mit einer wachsenden Community für Transparenz in Politik und Verwaltung.</p>
121
-
<p>Auf Wunsch können Sie Ihre Anfrage aber erst später öffentlich machen, z.B. nach Veröffentlichung Ihrer investigativen Recherche.</p>
122
-
{% endblocktrans %}
118
+
{% blocktrans %}<p>Your request is accesible for everybody on this website. With your request, you contribute to a public archive of official information. You are part of a growing community that strives for transparency in politics and adminstration.</p><p>You can opt into publishing your request later, e.g. after the disclosure of your investigation or research.</p>{% endblocktrans %}
123
119
</template>
124
120
<templatedata-slot="request-public-postamble">
125
121
{% if request.user.is_authenticated %}
126
122
{% url 'account-settings' as profile_url %}
127
-
{% blocktrans with profilelink=profile_url %}
128
-
Ob Ihr Name im Klartext erscheinen sollen, können Sie <atarget="_blank" href="{{ profile_url }}">in ihrem Profil</a> anpassen.
129
-
{% endblocktrans %}
123
+
{% blocktrans with profilelink=profile_url %}In your <atarget="_blank" href="{{ profile_url }}">profile settings</a> you can decide whether to your name should be redacted.{% endblocktrans %}
130
124
{% else %}
131
-
{% blocktrans %}
132
-
Ihre Entscheidung hier hat keinen Einfluss darauf ob ihr Name im Klartext erscheinen soll (wie zuvor festgelegt).
133
-
{% endblocktrans %}
125
+
{% blocktrans %}Your decision here does not affect whether your name will appear in plain text or redacted (as you have decided previously).{% endblocktrans %}
0 commit comments