Skip to content

Commit

Permalink
Translated registration error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamín Mravec committed Nov 12, 2023
1 parent 8e4f571 commit 4ff4d9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion competition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def change_text(self, new_text):
if self.state != CommentPublishState.PUBLISHED:
self.text = new_text
else:
raise ValueError('Published comment can not be changed')
raise ValueError('Publikovaný komentár nemôže byť zmenený')

def can_user_modify(self, user):
return self.problem.can_user_modify(user)
Expand Down
3 changes: 2 additions & 1 deletion user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ def validate_email(self, email):
email = get_adapter().clean_email(email)
if email and EmailAddress.objects.filter(email__iexact=email).exists():
raise serializers.ValidationError(
"Zadaná emailová adresa je už používaná. Prosíme skús vyskúsať inú emailovú adresu.")
"Zadaná emailová adresa je už používaná." +
"Prosíme skús vyskúsať inú emailovú adresu.")
return email

def validate_password1(self, password):
Expand Down

0 comments on commit 4ff4d9d

Please sign in to comment.