Skip to content

Commit

Permalink
Merge pull request #7057 from freedomofpress/string-feedback
Browse files Browse the repository at this point in the history
fix: strings per translator feedback
  • Loading branch information
legoktm authored Nov 13, 2023
2 parents 0057668 + 2805907 commit a6da4fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion securedrop/source_app/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class LoginForm(FlaskForm):
1,
PassphraseGenerator.MAX_PASSPHRASE_LENGTH,
message=ngettext(
"Field must be between 1 and {max_codename_len} character long.",
"Field must be 1 character long.",
"Field must be between 1 and {max_codename_len} characters long.",
PassphraseGenerator.MAX_PASSPHRASE_LENGTH,
).format(max_codename_len=PassphraseGenerator.MAX_PASSPHRASE_LENGTH),
Expand Down
2 changes: 1 addition & 1 deletion securedrop/source_templates/tor2web-warning.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.html" %}

{% block tab_title %}{{ gettext('WARNING: Proxy Service Detected') }}{% endblock %}
{% block tab_title %}{{ gettext('Warning: Proxy Detected') }}{% endblock %}

{% block body %}
<h2>{{ gettext('Proxy Service Detected') }}</h2>
Expand Down
4 changes: 2 additions & 2 deletions securedrop/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ msgstr ""
msgid "LOG IN"
msgstr ""

msgid "Field must be between 1 and {max_codename_len} character long."
msgid "Field must be 1 character long."
msgid_plural "Field must be between 1 and {max_codename_len} characters long."
msgstr[0] ""
msgstr[1] ""
Expand Down Expand Up @@ -986,7 +986,7 @@ msgstr ""
msgid "Sorry, we couldn't locate what you requested."
msgstr ""

msgid "WARNING: Proxy Service Detected"
msgid "Warning: Proxy Detected"
msgstr ""

msgid "Proxy Service Detected"
Expand Down

0 comments on commit a6da4fa

Please sign in to comment.