Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #4268

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hypha/apply/api/v1/review/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def update(self, instance, validated_data):
)
instance.is_draft = self.validated_data.get("is_draft", False)

# Old review forms do not have the requred visability field.
# Old review forms do not have the required visibility field.
# This will set visibility to PRIVATE by default.
try:
instance.visibility = self.validated_data[instance.visibility_field.id]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h4>{% trans "Public Report" %}</h4>

{% for file in object.current.files.all %}
{% if forloop.first %}
<h4>{% trans "Attachements" %}</h4>
<h4>{% trans "Attachments" %}</h4>
<ul>
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions hypha/apply/review/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
RATE_CHOICES,
RATE_CHOICES_DICT,
RECOMMENDATION_CHOICES,
VISIBILILTY_HELP_TEXT,
VISIBILITY,
VISIBILITY_HELP_TEXT,
)
from hypha.apply.stream_forms.blocks import (
CharFieldBlock,
Expand Down Expand Up @@ -157,7 +157,7 @@ def get_field_kwargs(self, struct_value):
kwargs["help_text"] = mark_safe(
"<br>".join(
[
VISIBILITY[choice] + ": " + VISIBILILTY_HELP_TEXT[choice]
VISIBILITY[choice] + ": " + VISIBILITY_HELP_TEXT[choice]
for choice in VISIBILITY
]
)
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/review/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def save(self, commit=True):
self.cleaned_data[self.instance.recommendation_field.id]
)
self.instance.is_draft = self.draft_button_name in self.data
# Old review forms do not have the requred visability field.
# Old review forms do not have the required visibility field.
# This will set visibility to PRIVATE by default.
try:
self.instance.visibility = self.cleaned_data[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def handle(self, *args, **options):
with options["source"] as json_data:
self.data = json.load(json_data)

# A user can only submitt a single review in the new system so pick the latest one.
# A user can only submit a single review in the new system so pick the latest one.
blacklist = {
"7574",
"7413",
Expand Down
2 changes: 1 addition & 1 deletion hypha/apply/review/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
PRIVATE = "private"
REVIEWER = "reviewers"

VISIBILILTY_HELP_TEXT = {
VISIBILITY_HELP_TEXT = {
PRIVATE: _("Visible only to staff."),
REVIEWER: _("Visible to other reviewers and staff."),
}
Expand Down
2 changes: 1 addition & 1 deletion hypha/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
CONN_HEALTH_CHECKS = env.bool("CONN_HEALTH_CHECKS", True)

# Language code in standard language id format: en, en-gb, en-us
# The corrosponding locale dir is named: en, en_GB, en_US
# The corresponding locale dir is named: en, en_GB, en_US
LANGUAGE_CODE = env.str("LANGUAGE_CODE", "en")

# Machine translation settings
Expand Down
Loading