├── README.md ├── auth.php ├── pagination.php ├── passwords.php └── validation.php /README.md: -------------------------------------------------------------------------------- 1 | # Arquivos de linguagem do Laravel 5.1 - Português do Brasil 2 | 3 | ## Instalação 4 | 5 | 1. Clonar este projeto para uma pasta dentro de `resources/lang/` 6 | 7 | ``` 8 | $ cd resources/lang/ 9 | $ git clone https://github.com/bmonteirog/laravel-5.1-pt-br-localization.git ./pt-br 10 | ``` 11 | 12 | Você pode remover o diretório .git para poder incluir e versionar os arquivos deste projeto no seu repositório. 13 | 14 | ``` 15 | $ rm -r pt-br/.git/ 16 | ``` 17 | 18 | 2. Configurar o Framework para utilizar a linguagem como Default 19 | 20 | ``` 21 | // Linha 55 do arquivo config/app.php 22 | 'locale' => 'pt-br', 23 | ``` 24 | -------------------------------------------------------------------------------- /auth.php: -------------------------------------------------------------------------------- 1 | 'As informações de login não foram encontradas.', 17 | 'throttle' => 'Muitas tentativas de login. Por favor tente novamente em :seconds segundos.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /pagination.php: -------------------------------------------------------------------------------- 1 | '« Anterior', 17 | 'next' => 'Próxima »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /passwords.php: -------------------------------------------------------------------------------- 1 | 'A senha deve possuir no mínimo 6 caracteres e ser igual a confirmação.', 17 | 'user' => "Não encontramos nenhum usuário com esse endereço de e-mail.", 18 | 'token' => 'Este token para recuperação de senha é inválido.', 19 | 'sent' => 'O link para redefinição de senha foi enviado para o seu e-mail!', 20 | 'reset' => 'Sua senha foi redefinida!', 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /validation.php: -------------------------------------------------------------------------------- 1 | ':attribute deve ser aceito.', 17 | 'active_url' => ':attribute não é uma URL válida.', 18 | 'after' => ':attribute deve ser uma data depois de :date.', 19 | 'alpha' => ':attribute deve conter somente letras.', 20 | 'alpha_dash' => ':attribute deve conter letras, números e traços.', 21 | 'alpha_num' => ':attribute deve conter somente letras e números.', 22 | 'array' => ':attribute deve ser um array.', 23 | 'before' => ':attribute deve ser uma data antes de :date.', 24 | 'between' => [ 25 | 'numeric' => ':attribute deve estar entre :min e :max.', 26 | 'file' => ':attribute deve estar entre :min e :max kilobytes.', 27 | 'string' => ':attribute deve estar entre :min e :max caracteres.', 28 | 'array' => ':attribute deve ter entre :min e :max itens.', 29 | ], 30 | 'boolean' => ':attribute deve ser verdadeiro ou falso.', 31 | 'confirmed' => 'A confirmação de :attribute não confere.', 32 | 'date' => ':attribute não é uma data válida.', 33 | 'date_format' => ':attribute não confere com o formato :format.', 34 | 'different' => ':attribute e :other devem ser diferentes.', 35 | 'digits' => ':attribute deve ter :digits dígitos.', 36 | 'digits_between' => ':attribute deve ter entre :min e :max dígitos.', 37 | 'email' => ':attribute deve ser um endereço de e-mail válido.', 38 | 'exists' => 'O :attribute selecionado é inválido.', 39 | 'filled' => ':attribute é um campo obrigatório.', 40 | 'image' => ':attribute deve ser uma imagem.', 41 | 'in' => ':attribute é inválido.', 42 | 'integer' => ':attribute deve ser um inteiro.', 43 | 'ip' => ':attribute deve ser um endereço IP válido.', 44 | 'json' => ':attribute deve ser um JSON válido.', 45 | 'max' => [ 46 | 'numeric' => ':attribute não deve ser maior que :max.', 47 | 'file' => ':attribute não deve ter mais que :max kilobytes.', 48 | 'string' => ':attribute não deve ter mais que :max caracteres.', 49 | 'array' => ':attribute não pode ter mais que :max itens.', 50 | ], 51 | 'mimes' => ':attribute deve ser um arquivo do tipo: :values.', 52 | 'min' => [ 53 | 'numeric' => ':attribute deve ser no mínimo :min.', 54 | 'file' => ':attribute deve ter no mínimo :min kilobytes.', 55 | 'string' => ':attribute deve ter no mínimo :min caracteres.', 56 | 'array' => ':attribute deve ter no mínimo :min itens.', 57 | ], 58 | 'not_in' => 'O :attribute selecionado é inválido.', 59 | 'numeric' => ':attribute deve ser um número.', 60 | 'regex' => 'O formato de :attribute é inválido.', 61 | 'required' => 'O campo :attribute é obrigatório.', 62 | 'required_if' => 'O campo :attribute é obrigatório quando :other é :value.', 63 | 'required_with' => 'O campo :attribute é obrigatório quando :values está presente.', 64 | 'required_with_all' => 'O campo :attribute é obrigatório quando :values estão presentes.', 65 | 'required_without' => 'O campo :attribute é obrigatório quando :values não está presente.', 66 | 'required_without_all' => 'O campo :attribute é obrigatório quando nenhum destes estão presentes: :values.', 67 | 'same' => ':attribute e :other devem ser iguais.', 68 | 'size' => [ 69 | 'numeric' => ':attribute deve ser :size.', 70 | 'file' => ':attribute deve ter :size kilobytes.', 71 | 'string' => ':attribute deve ter :size caracteres.', 72 | 'array' => ':attribute deve conter :size itens.', 73 | ], 74 | 'string' => ':attribute deve ser uma string', 75 | 'timezone' => ':attribute deve ser uma timezone válida.', 76 | 'unique' => ':attribute já está em uso.', 77 | 'url' => 'O formato de :attribute é inválido.', 78 | 79 | /* 80 | |-------------------------------------------------------------------------- 81 | | Custom Validation Language Lines 82 | |-------------------------------------------------------------------------- 83 | | 84 | | Here you may specify custom validation messages for attributes using the 85 | | convention "attribute.rule" to name the lines. This makes it quick to 86 | | specify a specific custom language line for a given attribute rule. 87 | | 88 | */ 89 | 90 | 'custom' => [ 91 | 'attribute-name' => [ 92 | 'rule-name' => 'custom-message', 93 | ], 94 | ], 95 | 96 | /* 97 | |-------------------------------------------------------------------------- 98 | | Custom Validation Attributes 99 | |-------------------------------------------------------------------------- 100 | | 101 | | The following language lines are used to swap attribute place-holders 102 | | with something more reader friendly such as E-Mail Address instead 103 | | of "email". This simply helps us make messages a little cleaner. 104 | | 105 | */ 106 | 107 | 'attributes' => [], 108 | 109 | ]; 110 | --------------------------------------------------------------------------------