opnform-host-nginx/api/resources/lang/pt-BR/validation.php

186 lines
9.5 KiB
PHP
Raw Normal View History

2022-09-20 21:59:52 +02:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages.
|
*/
2024-02-23 11:54:12 +01:00
'accepted' => 'O campo :attribute deve ser aceito.',
'active_url' => 'O campo :attribute deve conter uma URL válida.',
'after' => 'O campo :attribute deve conter uma data posterior a :date.',
'after_or_equal' => 'O campo :attribute deve conter uma data superior ou igual a :date.',
'alpha' => 'O campo :attribute deve conter apenas letras.',
'alpha_dash' => 'O campo :attribute deve conter apenas letras, números e traços.',
'alpha_num' => 'O campo :attribute deve conter apenas letras e números .',
'array' => 'O campo :attribute deve conter um array.',
'before' => 'O campo :attribute deve conter uma data anterior a :date.',
'before_or_equal' => 'O campo :attribute deve conter uma data inferior ou igual a :date.',
'between' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute deve conter um número entre :min e :max.',
2024-02-23 11:54:12 +01:00
'file' => 'O campo :attribute deve conter um arquivo de :min a :max kilobytes.',
'string' => 'O campo :attribute deve conter entre :min a :max caracteres.',
'array' => 'O campo :attribute deve conter de :min a :max itens.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'boolean' => 'O campo :attribute deve conter o valor verdadeiro ou falso.',
'confirmed' => 'A confirmação para o campo :attribute não coincide.',
'date' => 'O campo :attribute não contém uma data válida.',
'date_equals' => 'O campo :attribute deve ser uma data igual a :date.',
'date_format' => 'A data informada para o campo :attribute não respeita o formato :format.',
'different' => 'Os campos :attribute e :other devem conter valores diferentes.',
'digits' => 'O campo :attribute deve conter :digits dígitos.',
'digits_between' => 'O campo :attribute deve conter entre :min a :max dígitos.',
'dimensions' => 'O valor informado para o campo :attribute não é uma dimensão de imagem válida.',
'distinct' => 'O campo :attribute contém um valor duplicado.',
'email' => 'O campo :attribute não contém um endereço de email válido.',
'ends_with' => 'The :attribute must end with one of the following: :values',
'exists' => 'O valor selecionado para o campo :attribute é inválido.',
'file' => 'O campo :attribute deve conter um arquivo.',
'filled' => 'O campo :attribute é obrigatório.',
'gt' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute deve ser maior que :value.',
2024-02-23 11:54:12 +01:00
'file' => 'O arquivo :attribute deve ser maior que :value kilobytes.',
'string' => 'O campo :attribute deve ser maior que :value caracteres.',
'array' => 'O campo :attribute deve ter mais que :value itens.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'gte' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute deve ser maior ou igual a :value.',
2024-02-23 11:54:12 +01:00
'file' => 'O arquivo :attribute deve ser maior ou igual a :value kilobytes.',
'string' => 'O campo :attribute deve ser maior ou igual a :value caracteres.',
'array' => 'O campo :attribute deve ter :value itens ou mais.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'image' => 'O campo :attribute deve conter uma imagem.',
'in' => 'O campo :attribute não contém um valor válido.',
'in_array' => 'O campo :attribute não existe em :other.',
'integer' => 'O campo :attribute deve conter um número inteiro.',
'ip' => 'O campo :attribute deve conter um IP válido.',
'ipv4' => 'O campo :attribute deve conter um IPv4 válido.',
'ipv6' => 'O campo :attribute deve conter um IPv6 válido.',
'json' => 'O campo :attribute deve conter uma string JSON válida.',
'lt' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute deve ser menor que :value.',
2024-02-23 11:54:12 +01:00
'file' => 'O arquivo :attribute ser menor que :value kilobytes.',
'string' => 'O campo :attribute deve ser menor que :value caracteres.',
'array' => 'O campo :attribute deve ter menos que :value itens.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'lte' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute deve ser menor ou igual a :value.',
2024-02-23 11:54:12 +01:00
'file' => 'O arquivo :attribute ser menor ou igual a :value kilobytes.',
'string' => 'O campo :attribute deve ser menor ou igual a :value caracteres.',
'array' => 'O campo :attribute não deve ter mais que :value itens.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'max' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute não pode conter um valor superior a :max.',
2024-02-23 11:54:12 +01:00
'file' => 'O campo :attribute não pode conter um arquivo com mais de :max kilobytes.',
'string' => 'O campo :attribute não pode conter mais de :max caracteres.',
'array' => 'O campo :attribute deve conter no máximo :max itens.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'mimes' => 'O campo :attribute deve conter um arquivo do tipo: :values.',
'mimetypes' => 'O campo :attribute deve conter um arquivo do tipo: :values.',
'min' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute deve conter um número superior ou igual a :min.',
2024-02-23 11:54:12 +01:00
'file' => 'O campo :attribute deve conter um arquivo com no mínimo :min kilobytes.',
'string' => 'O campo :attribute deve conter no mínimo :min caracteres.',
'array' => 'O campo :attribute deve conter no mínimo :min itens.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'not_in' => 'O campo :attribute contém um valor inválido.',
'not_regex' => 'O formato do valor :attribute é inválido.',
'numeric' => 'O campo :attribute deve conter um valor numérico.',
'present' => 'O campo :attribute deve estar presente.',
'regex' => 'O formato do valor informado no campo :attribute é inválido.',
'required' => 'O campo :attribute é obrigatório.',
'required_if' => 'O campo :attribute é obrigatório quando o valor do campo :other é igual a :value.',
'required_unless' => 'O campo :attribute é obrigatório a menos que :other esteja presente em :values.',
'required_with' => 'O campo :attribute é obrigatório quando :values está presente.',
'required_with_all' => 'O campo :attribute é obrigatório quando um dos :values está presente.',
'required_without' => 'O campo :attribute é obrigatório quando :values não está presente.',
2022-09-20 21:59:52 +02:00
'required_without_all' => 'O campo :attribute é obrigatório quando nenhum dos :values está presente.',
2024-02-23 11:54:12 +01:00
'same' => 'Os campos :attribute e :other devem conter valores iguais.',
'size' => [
2022-09-20 21:59:52 +02:00
'numeric' => 'O campo :attribute deve conter o número :size.',
2024-02-23 11:54:12 +01:00
'file' => 'O campo :attribute deve conter um arquivo com o tamanho de :size kilobytes.',
'string' => 'O campo :attribute deve conter :size caracteres.',
'array' => 'O campo :attribute deve conter :size itens.',
2022-09-20 21:59:52 +02:00
],
2024-02-23 11:54:12 +01:00
'starts_with' => 'O campo :attribute deve começar com um dos seguintes valores: :values',
'string' => 'O campo :attribute deve ser uma string.',
'timezone' => 'O campo :attribute deve conter um fuso horário válido.',
'unique' => 'O valor informado para o campo :attribute já está em uso.',
'uploaded' => 'Falha no Upload do arquivo :attribute.',
'url' => 'O formato da URL informada para o campo :attribute é inválido.',
'uuid' => 'O campo :attribute deve ser um UUID válido.',
2022-09-20 21:59:52 +02:00
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [
2024-02-23 11:54:12 +01:00
'address' => 'endereço',
'age' => 'idade',
'body' => 'conteúdo',
'city' => 'cidade',
'country' => 'país',
'date' => 'data',
'day' => 'dia',
'description' => 'descrição',
'excerpt' => 'resumo',
'first_name' => 'primeiro nome',
'gender' => 'gênero',
'hour' => 'hora',
'last_name' => 'sobrenome',
'message' => 'mensagem',
'minute' => 'minuto',
'mobile' => 'celular',
'month' => 'mês',
'name' => 'nome',
2022-09-20 21:59:52 +02:00
'password_confirmation' => 'confirmação da senha',
2024-02-23 11:54:12 +01:00
'password' => 'senha',
'phone' => 'telefone',
'second' => 'segundo',
'sex' => 'sexo',
'state' => 'estado',
'subject' => 'assunto',
'text' => 'texto',
'time' => 'hora',
'title' => 'título',
'username' => 'usuário',
'year' => 'ano',
'email' => 'e-mail',
'remember' => 'lembrar-me',
2022-09-20 21:59:52 +02:00
],
'invalid_json' => 'Entrada inválida. Por favor, corrija e tente novamente.',
Add reCAPTCHA support and update captcha provider handling (#647) * Add reCAPTCHA support and update captcha provider handling - Introduced reCAPTCHA as an additional captcha provider alongside hCaptcha. - Updated form request validation to handle different captcha providers based on user selection. - Added a new validation rule for reCAPTCHA. - Modified the forms model to include a 'captcha_provider' field. - Created a migration to add the 'captcha_provider' column to the forms table. - Updated frontend components to support dynamic rendering of captcha based on the selected provider. - Enhanced tests to cover scenarios for both hCaptcha and reCAPTCHA. These changes improve the flexibility of captcha options available to users, enhancing form security and user experience. * fix pint * change comment text * Refactor captcha implementation and integrate new captcha components - Removed the old RecaptchaV2 component and replaced it with a new implementation that supports both reCAPTCHA and hCaptcha through a unified CaptchaInput component. - Updated the OpenForm component to utilize the new CaptchaInput for dynamic captcha rendering based on user-selected provider. - Cleaned up the package.json by removing the deprecated @hcaptcha/vue3-hcaptcha dependency. - Enhanced form initialization to set a default captcha provider. - Improved error handling and cleanup for both reCAPTCHA and hCaptcha scripts. These changes streamline captcha integration, improve maintainability, and enhance user experience by providing a more flexible captcha solution. * Refactor captcha error messages and localization support * Refactor registration process to integrate reCAPTCHA - Replaced hCaptcha implementation with reCAPTCHA in RegisterController and related test cases. - Updated validation rules to utilize g-recaptcha-response instead of h-captcha-response. - Modified RegisterForm component to support reCAPTCHA, including changes to the form data structure and component references. - Enhanced test cases to reflect the new reCAPTCHA integration, ensuring proper validation and response handling. These changes improve security and user experience during the registration process by adopting a more widely used captcha solution. * Fix reCAPTCHA configuration and update RegisterForm styling - Corrected the configuration key for reCAPTCHA in RegisterController from 'services.recaptcha.secret_key' to 'services.re_captcha.secret_key'. - Updated the styling of the Captcha input section in RegisterForm.vue to improve layout consistency. These changes ensure proper reCAPTCHA functionality and enhance the user interface during the registration process. * Fix reCAPTCHA configuration in RegisterTest to use the correct key format - Updated the configuration key for reCAPTCHA in RegisterTest from 'services.recaptcha.secret_key' to 'services.re_captcha.secret_key' to ensure proper functionality during tests. This change aligns the test setup with the recent updates in the reCAPTCHA integration, improving the accuracy of the registration process tests. --------- Co-authored-by: Julien Nahum <julien@nahum.net>
2024-12-18 16:35:09 +01:00
'invalid_captcha' => 'Captcha inválido. Por favor, demonstre que não é um bot.',
'complete_captcha' => 'Por favor, complete o captcha.',
2022-09-20 21:59:52 +02:00
];