Skip to content

Commit

Permalink
PR#230 modified reply not authorized message
Browse files Browse the repository at this point in the history
  • Loading branch information
zocimek committed Jul 10, 2014
1 parent 8256326 commit 9e069c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Resources/translations/validators.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ fos_message:
too_short: The body is too short
spam: Sorry, your message looks like spam
not_authorized: You are not allowed to send this message
reply_not_authorized: You are not allowed to reply to this message
self_recipient: You cannot send a message to yourself

1 change: 1 addition & 0 deletions Resources/translations/validators.pl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ fos_message:
short: Treść jest za krótka
spam: Przykro mi, Twoja wiadomość wygląda jak spam
not_authorized: Nie masz uprawnień, aby wysłać tą wiadomość
reply_not_authorized: Nie masz uprawnień, aby odpowiadać na tą wiadomość
self_recipient: Nie możesz wysyłać wiadomości do siebie

2 changes: 1 addition & 1 deletion Validator/ReplyAuthorization.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class ReplyAuthorization extends Constraint
{
public $message = 'fos_message.not_authorized';
public $message = 'fos_message.reply_not_authorized';

public function validatedBy()
{
Expand Down

0 comments on commit 9e069c1

Please sign in to comment.