Skip to content

Commit

Permalink
update+improve pdf redaction how-to, i18n + translate to DE
Browse files Browse the repository at this point in the history
plus i18n cleanup
  • Loading branch information
bikubi committed Nov 27, 2024
1 parent 50fef9c commit 485228e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
4 changes: 2 additions & 2 deletions froide/foirequest/templates/foirequest/redact.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ <h5 class="card-header">{% trans "How to redact" %}</h5>
<div class="card-body">
<p>{% trans "If this document is a letter to you:" %}</p>
<p>
{% 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 %}
{% 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 %}
</p>
<p>
{% 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." %}
{% 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 %}
</p>
</div>
</div>
Expand Down
5 changes: 0 additions & 5 deletions froide/foirequest/views/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,6 @@ def get_redact_context(foirequest, attachment):
"pageCurrentOfTotal": _("{current} of {total}").format(
current="$current", total="$total"
),
"redactMoveTooltip": _("Pan tool"),
"redactRedactTooltip": _("Paint tool"),
"redactToolsTooltip": _(
"(press shift key to quickly toggle between Pan and Paint tool)"
),
"redactAndPublish": _("Save redaction"),
"publishWithoutRedaction": _("No redaction needed"),
"removeAllRedaction": _("Remove all redaction"),
Expand Down
5 changes: 0 additions & 5 deletions froide/foirequest/views/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ def edit_postal_message(request, foirequest, message_id):
"pageCurrentOfTotal": _("{current} of {total}").format(
current="$current", total="$total"
),
"redactMoveTooltip": _("Pan tool"),
"redactRedactTooltip": _("Paint tool"),
"redactToolsTooltip": _(
"(press shift key to quickly toggle between Pan and Paint tool)"
),
"redactAndPublish": _("Save redaction"),
"publishWithoutRedaction": _("No redaction needed"),
"removeAllRedaction": _("Remove all redaction"),
Expand Down
28 changes: 21 additions & 7 deletions froide/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -6271,6 +6271,10 @@ msgstr ""
msgid "Redacting attachment %(name)s"
msgstr "Schwärzen des Anhangs %(name)s"

#: froide/foirequest/templates/foirequest/redact.html
msgid "Cancel redaction"
msgstr "Schwärzen abbrechen"

#: froide/foirequest/templates/foirequest/redact.html
#, python-format
msgid "Redact \"%(name)s\""
Expand Down Expand Up @@ -6342,21 +6346,31 @@ msgid "If this document is a letter to you:"
msgstr "Falls dieses Dokument ein Brief an Sie ist:"

#: froide/foirequest/templates/foirequest/redact.html
#, python-format
msgid ""
"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. "
"While the %(icon_paint)s&nbsp;<b>paint tool</b> is active, draw rectangles with "
"your finger, or by clicking and dragging your mouse. Use the %(icon_plus)s "
"%(icon_minus)s buttons to zoom in and out. Switch to the %(icon_move)s&nbsp;"
"<b>move tool</b> to pan the document. Hit the shift key to quickly toggle "
"between paint and move."
msgstr ""
"Gehen Sie zu jeder Seite des Dokuments und suchen Sie nach Informationen, "
"die geschwärzt werden müssen. Ziehen Sie durch Klicken und Bewegen der Maus "
"oder durch Doppel-Tippen mit dem Finger ein Viereck über die Stelle. "
"die geschwärzt werden müssen. "
"Während das %(icon_paint)s&nbsp;<b>Pinsel-Werkzeug</b> aktiv ist, zeichnen sie "
"mit ihrem Finger Rechtecke, oder, indem sie mit der Maus klicken und ziehen. "
"Mit den Buttons %(icon_plus)s %(icon_minus)s können Sie rein- und raus-zoomen. "
"Wechseln Sie zum %(icon_move)s&nbsp;<b>Bewegen-Werkzeug</b> um sich im Dokument zu bewegen. "
"Mit der Shift-/Umschalttaste können sie schnell zwischen Pinsel und Bewegen wechseln."

#: froide/foirequest/templates/foirequest/redact.html
#, python-format
msgid ""
"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."
"Check the %(icon_text)s&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."
msgstr ""
"Prüfen Sie auch, dass die Text-Ansicht die Informationen nicht mehr enthält. "
"Prüfen Sie auch in der Ansicht %(icon_text)s&nbsp;<b>Nur Text</b>, dass das Dokument die Informationen nicht mehr enthält. "
"Falls das Dokument nicht ordentlich lädt, brechen Sie ab und informieren Sie "
"eine:n Moderator:in der Seite."

Expand Down

0 comments on commit 485228e

Please sign in to comment.