Skip to content

Commit

Permalink
Fix period in sentences
Browse files Browse the repository at this point in the history
  • Loading branch information
int-y1 authored and Xyene committed Oct 2, 2022
1 parent ac5a147 commit 932cbf1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion judge/social_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def verify_email(backend, details, *args, **kwargs):

class UsernameForm(forms.Form):
username = forms.RegexField(regex=r'^\w+$', max_length=30, label='Username',
error_messages={'invalid': 'A username must contain letters, numbers, or underscores'})
error_messages={'invalid': 'A username must contain letters, numbers, or underscores.'})

def clean_username(self):
if User.objects.filter(username=self.cleaned_data['username']).exists():
Expand Down
2 changes: 1 addition & 1 deletion judge/utils/problem_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def make_checker(case):
case.save(update_fields=('checker_args', 'input_file', 'output_file'))
elif case.type == 'E':
if not batch:
raise ProblemDataError(_('Attempt to end batch outside of one in case #%d') % i)
raise ProblemDataError(_('Attempt to end batch outside of one in case #%d.') % i)
case.is_pretest = batch['is_pretest']
case.input_file = ''
case.output_file = ''
Expand Down
4 changes: 2 additions & 2 deletions judge/views/problem_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def checker_args_cleaner(self):
return ''
try:
if not isinstance(json.loads(data), dict):
raise ValidationError(_('Checker arguments must be a JSON object'))
raise ValidationError(_('Checker arguments must be a JSON object.'))
except ValueError:
raise ValidationError(_('Checker arguments is invalid JSON'))
raise ValidationError(_('Checker arguments is invalid JSON.'))
return data


Expand Down
2 changes: 1 addition & 1 deletion judge/views/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class CustomRegistrationForm(RegistrationForm):
username = forms.RegexField(regex=r'^\w+$', max_length=30, label=_('Username'),
error_messages={'invalid': _('A username must contain letters, '
'numbers, or underscores')})
'numbers, or underscores.')})
timezone = ChoiceField(label=_('Timezone'), choices=TIMEZONE,
widget=Select2Widget(attrs={'style': 'width:100%'}))
language = ModelChoiceField(queryset=Language.objects.all(), label=_('Preferred language'), empty_label=None,
Expand Down
2 changes: 1 addition & 1 deletion templates/contest/contest.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{% endif %}
{%- else -%}
{% if contest.start_time > now %}
{{- _('Starting in %(countdown)s', countdown=as_countdown(contest.time_before_start)) -}}
{{- _('Starting in %(countdown)s.', countdown=as_countdown(contest.time_before_start)) -}}
{% elif contest.end_time < now %}
{{- _('Contest is over.') -}}
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion templates/contest/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ <h4>{{ _('Upcoming Contests') }}</h4>
{% if contest.start_time %}
<br>
{% if contest.time_before_start %}
<span class="time">{{ _('Starting in %(countdown)s.', countdown=as_countdown(contest.time_before_start)) }}</span>
<span class="time">{{ _('Starting in %(countdown)s', countdown=as_countdown(contest.time_before_start)) }}</span>
{% endif %}
{{ time_left(contest) }}
{% endif %}
Expand Down

0 comments on commit 932cbf1

Please # to comment.