Skip to content

Commit 63786de

Browse files
committed
update+improve pdf redaction how-to, i18n + translate to DE
plus i18n cleanup
1 parent 430ba5e commit 63786de

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

froide/foirequest/templates/foirequest/redact.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ <h5 class="card-header">{% trans "How to redact" %}</h5>
6060
<div class="card-body">
6161
<p>{% trans "If this document is a letter to you:" %}</p>
6262
<p>
63-
{% blocktrans with name=SITE_NAME %}Go to each page of the PDF and locate the parts that need to be blacked out. On desktop redact text by selecting it. You can also draw rectangles by clicking the mouse or double tapping and dragging. {% endblocktrans %}
63+
{% blocktrans with icon_paint="<i class=\"fa fa-paint-brush\"></i>" icon_plus="<i class=\"fa fa-plus\"></i>" icon_minus="<i class=\"fa fa-minus\"></i>" icon_move="<i class=\"fa fa-arrows\"></i>" %}Go to each page of the PDF and locate the parts that need to be blacked out. While the {{ icon_paint }}&nbsp;<b>paint tool</b> is active, draw rectangles with your finger, or by clicking and dragging your mouse. Use the {{ icon_plus }} {{ icon_minus }} buttons to zoom in and out. Switch to the {{ icon_move }}&nbsp;<b>move tool</b> to pan the document. Hit the shift key to quickly toggle between paint and move.{% endblocktrans %}
6464
</p>
6565
<p>
66-
{% trans "Check the text only view to see if the underlying text is also gone. If the document does not load correctly, cancel and inform a site moderator." %}
66+
{% blocktrans with icon_text="<i class=\"fa fa-align-justify\"></i>" %}Check the {{ icon_text }}&nbsp;<b>Hide text</b> view to see if the underlying text is also gone. If the document does not load correctly, cancel and inform a site moderator.{% endblocktrans %}
6767
</p>
6868
</div>
6969
</div>

froide/foirequest/views/attachment.py

-5
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,6 @@ def get_redact_context(foirequest, attachment):
244244
"pageCurrentOfTotal": _("{current} of {total}").format(
245245
current="$current", total="$total"
246246
),
247-
"redactMoveTooltip": _("Pan tool"),
248-
"redactRedactTooltip": _("Paint tool"),
249-
"redactToolsTooltip": _(
250-
"(press shift key to quickly toggle between Pan and Paint tool)"
251-
),
252247
"redactAndPublish": _("Save redaction"),
253248
"publishWithoutRedaction": _("No redaction needed"),
254249
"removeAllRedaction": _("Remove all redaction"),

froide/foirequest/views/message.py

-5
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,6 @@ def edit_postal_message(request, foirequest, message_id):
242242
"pageCurrentOfTotal": _("{current} of {total}").format(
243243
current="$current", total="$total"
244244
),
245-
"redactMoveTooltip": _("Pan tool"),
246-
"redactRedactTooltip": _("Paint tool"),
247-
"redactToolsTooltip": _(
248-
"(press shift key to quickly toggle between Pan and Paint tool)"
249-
),
250245
"redactAndPublish": _("Save redaction"),
251246
"publishWithoutRedaction": _("No redaction needed"),
252247
"removeAllRedaction": _("Remove all redaction"),

froide/locale/de/LC_MESSAGES/django.po

+21-7
Original file line numberDiff line numberDiff line change
@@ -6271,6 +6271,10 @@ msgstr ""
62716271
msgid "Redacting attachment %(name)s"
62726272
msgstr "Schwärzen des Anhangs %(name)s"
62736273

6274+
#: froide/foirequest/templates/foirequest/redact.html
6275+
msgid "Cancel redaction"
6276+
msgstr "Schwärzen abbrechen"
6277+
62746278
#: froide/foirequest/templates/foirequest/redact.html
62756279
#, python-format
62766280
msgid "Redact \"%(name)s\""
@@ -6342,21 +6346,31 @@ msgid "If this document is a letter to you:"
63426346
msgstr "Falls dieses Dokument ein Brief an Sie ist:"
63436347

63446348
#: froide/foirequest/templates/foirequest/redact.html
6349+
#, python-format
63456350
msgid ""
63466351
"Go to each page of the PDF and locate the parts that need to be blacked out. "
6347-
"On desktop redact text by selecting it. You can also draw rectangles by "
6348-
"clicking the mouse or double tapping and dragging. "
6352+
"While the %(icon_paint)s&nbsp;<b>paint tool</b> is active, draw rectangles with "
6353+
"your finger, or by clicking and dragging your mouse. Use the %(icon_plus)s "
6354+
"%(icon_minus)s buttons to zoom in and out. Switch to the %(icon_move)s&nbsp;"
6355+
"<b>move tool</b> to pan the document. Hit the shift key to quickly toggle "
6356+
"between paint and move."
63496357
msgstr ""
63506358
"Gehen Sie zu jeder Seite des Dokuments und suchen Sie nach Informationen, "
6351-
"die geschwärzt werden müssen. Ziehen Sie durch Klicken und Bewegen der Maus "
6352-
"oder durch Doppel-Tippen mit dem Finger ein Viereck über die Stelle. "
6359+
"die geschwärzt werden müssen. "
6360+
"Während das %(icon_paint)s&nbsp;<b>Pinsel-Werkzeug</b> aktiv ist, zeichnen sie "
6361+
"mit ihrem Finger Rechtecke, oder, indem sie mit der Maus klicken und ziehen. "
6362+
"Mit den Buttons %(icon_plus)s %(icon_minus)s können Sie rein- und raus-zoomen. "
6363+
"Wechseln Sie zum %(icon_move)s&nbsp;<b>Bewegen-Werkzeug</b> um sich im Dokument zu bewegen. "
6364+
"Mit der Shift-/Umschalttaste können sie schnell zwischen Pinsel und Bewegen wechseln."
63536365

63546366
#: froide/foirequest/templates/foirequest/redact.html
6367+
#, python-format
63556368
msgid ""
6356-
"Check the text only view to see if the underlying text is also gone. If the "
6357-
"document does not load correctly, cancel and inform a site moderator."
6369+
"Check the %(icon_text)s&nbsp;<b>Hide text</b> view to see if the underlying text "
6370+
"is also gone. If the document does not load correctly, cancel and inform a "
6371+
"site moderator."
63586372
msgstr ""
6359-
"Prüfen Sie auch, dass die Text-Ansicht die Informationen nicht mehr enthält. "
6373+
"Prüfen Sie auch in der Ansicht %(icon_text)s&nbsp;<b>Nur Text</b>, dass das Dokument die Informationen nicht mehr enthält. "
63606374
"Falls das Dokument nicht ordentlich lädt, brechen Sie ab und informieren Sie "
63616375
"eine:n Moderator:in der Seite."
63626376

0 commit comments

Comments
 (0)