-
-
Notifications
You must be signed in to change notification settings - Fork 363
Expand file tree
/
Copy pathvalidate.php
More file actions
35 lines (33 loc) · 1.83 KB
/
validate.php
File metadata and controls
35 lines (33 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*
* UserFrosting (http://www.userfrosting.com)
*
* @link https://github.com/userfrosting/UserFrosting
* @copyright Copyright (c) 2019 Alexander Weissman
* @license https://github.com/userfrosting/UserFrosting/blob/master/LICENSE.md (MIT License)
*/
/**
* US English message token translations for the 'core' sprinkle.
*
* @author Alexander Weissman
*/
return [
'VALIDATE' => [
'ARRAY' => 'Os valores para <strong>{{label}}</strong> devem estar em um array.',
'BOOLEAN' => "O valor para <strong>{{label}}</strong> deve ser '0' ou '1'.",
'INTEGER' => 'O valor para <strong>{{label}}</strong> deve ser um inteiro.',
'INVALID_EMAIL' => 'Endereço de email inválido.',
'LENGTH_RANGE' => '{{label}} deve estar entre {{min}} e {{max}} caracteres de tamanho.',
'MAX_LENGTH' => '{{label}} deve ter no máximo {{max}} caracteres de tamanho.',
'MIN_LENGTH' => '{{label}} deve ter no mínimo {{min}} caracteres de tamanho.',
'NO_LEAD_WS' => 'O valor para <strong>{{label}}</strong> não pode começar com espaços, tabs, ou outro espaço em branco.',
'NO_TRAIL_WS' => 'O valor para <strong>{{label}}</strong> não pode terminar com espaços, tabs, ou outro espaço em branco.',
'RANGE' => 'O valor para <strong>{{label}}</strong> deve estar entre {{min}} e {{max}}.',
'REQUIRED' => 'Por favor, específique um valor para <strong>{{label}}</strong>.',
'SPRUNJE' => [
'BAD_FILTER' => '<strong>{{name}}</strong> não é um filtro válido para este Sprunje.',
'BAD_LIST' => '<strong>{{name}}</strong> não é uma lista válida para este Sprunje.',
'BAD_SORT' => '<strong>{{name}}</strong> não é um campo de classificação válido para este Sprunje.',
],
],
];