Skip to content

Commit

Permalink
fixed inconsistencies between translation keys and validation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
zocimek committed Jul 9, 2014
1 parent 3ca7a6a commit 8256326
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Resources/config/validation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
<constraint name="Length">
<option name="min">2</option>
<option name="max">255</option>
<option name="minMessage">fos_message.subject.too_short</option>
<option name="maxMessage">fos_message.subject.too_long</option>
<option name="minMessage">fos_message.subject.short</option>
<option name="maxMessage">fos_message.subject.long</option>
</constraint>
</property>

Expand All @@ -35,7 +35,7 @@
</constraint>
<constraint name="Length">
<option name="min">2</option>
<option name="minMessage">fos_message.body.too_short</option>
<option name="minMessage">fos_message.body.short</option>
</constraint>
</property>
</class>
Expand All @@ -62,8 +62,8 @@
<constraint name="Length">
<option name="min">2</option>
<option name="max">255</option>
<option name="minMessage">fos_message.subject.too_short</option>
<option name="maxMessage">fos_message.subject.too_long</option>
<option name="minMessage">fos_message.subject.short</option>
<option name="maxMessage">fos_message.subject.long</option>
</constraint>
</property>

Expand All @@ -73,7 +73,7 @@
</constraint>
<constraint name="Length">
<option name="min">2</option>
<option name="minMessage">fos_message.body.too_short</option>
<option name="minMessage">fos_message.body.short</option>
</constraint>
</property>

Expand All @@ -89,7 +89,7 @@
</constraint>
<constraint name="Length">
<option name="min">2</option>
<option name="minMessage">fos_message.body.too_short</option>
<option name="minMessage">fos_message.body.short</option>
</constraint>
</property>

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

class Authorization extends Constraint
{
public $message = 'fos_message.recipients.not_authorized';
public $message = 'fos_message.not_authorized';

public function validatedBy()
{
Expand Down
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.authorization.not_authorized';
public $message = 'fos_message.not_authorized';

public function validatedBy()
{
Expand Down

0 comments on commit 8256326

Please sign in to comment.