Skip to content

Commit

Permalink
typo [Closes #1049]
Browse files Browse the repository at this point in the history
  • Loading branch information
diegosardina authored and dg committed Oct 23, 2024
1 parent 48401ac commit 9831113
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions forms/en/validation.texy
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ For elements `addText()`, `addPassword()`, `addTextArea()`, `addEmail()`, `addIn
| `Range` | value in the range | pair `[int\|float, int\|float]`

The `Integer`, `Numeric` a `Float` rules automatically convert the value to integer (or float respectively). Furthermore, the `URL` rule also accepts an address without a schema (eg `nette.org`) and completes the schema (`https://nette.org`).
The expressions in `Pattern` and `PatternInsensitive` must be valid for the whole value, ie as if it were wrapped in the characters `^` and `$`.
The expressions in `Pattern` and `PatternInsensitive` must be valid for the whole value, i.e. as if it were wrapped in the characters `^` and `$`.


Number of Items
Expand Down Expand Up @@ -89,7 +89,7 @@ The `MimeType` and `Image` require PHP extension `fileinfo`. Whether a file or i
Error Messages
==============

All predefined rules except `Pattern` and `PatternInsensitive` have a default error message, so they it be omitted. However, by passing and formulating all customized messages, you will make the form more user-friendly.
All predefined rules except `Pattern` and `PatternInsensitive` have a default error message, so they can be omitted. However, by passing and formulating all customized messages, you will make the form more user-friendly.

You can change the default messages in [forms:configuration], by modifying the texts in the `Nette\Forms\Validator::$messages` array or by using [translator|rendering#translating].

Expand Down Expand Up @@ -279,7 +279,7 @@ $form->addText('zip', 'Postcode:')
->addRule($form::Pattern, 'The postal code is not five digits', '\d{5}');
```

The filter is included between the validation rules and conditions and therefore depends on the order of the methods, ie the filter and the rule are called in the same order as is the order of the `addFilter()` and `addRule()` methods.
The filter is included between the validation rules and conditions and therefore depends on the order of the methods, i.e. the filter and the rule are called in the same order as is the order of the `addFilter()` and `addRule()` methods.


JavaScript Validation
Expand Down

0 comments on commit 9831113

Please sign in to comment.