mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-27 22:49:41 -08:00
9adb2c24f3
commitdddbf27d78
Author: snipe <snipe@snipe.net> Date: Wed Sep 18 14:18:52 2024 +0100 Updated language strings Signed-off-by: snipe <snipe@snipe.net> commitfcefcc8184
Merge:04bb3eec8
3519a82dd
Author: snipe <snipe@snipe.net> Date: Wed Sep 18 13:44:44 2024 +0100 Merge pull request #15512 from marcusmoore/testing/fmcs Added tests for delete methods in api commit04bb3eec83
Merge:154d5d8d9
f963b9a19
Author: snipe <snipe@snipe.net> Date: Wed Sep 18 13:41:37 2024 +0100 Merge pull request #15521 from uberbrady/improve_country_selector Fix selected-index of Countries drop-down [fd-44144] commitf963b9a19f
Author: Brady Wetherington <bwetherington@grokability.com> Date: Wed Sep 18 13:24:26 2024 +0100 Fix selected-index of Countries drop-down commit154d5d8d91
Merge:6c996b775
9e5f6d656
Author: snipe <snipe@snipe.net> Date: Tue Sep 17 23:40:25 2024 +0100 Merge pull request #15491 from uberbrady/numeric_prefixes_add_multiple_assets [Fixes fd-43940] Improve multi-asset create when using numeric prefixes to asset_tags commit3519a82ddd
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 16:55:20 2024 -0700 Fix name: TestsFullMultipleCompaniesSupport commita629df07bf
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 14:49:08 2024 -0700 Implement interfaces on existing test classes commit9a13fcab23
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 14:38:38 2024 -0700 Pluralize commitf5705a1dde
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 14:34:55 2024 -0700 More unification commitf325c4afdb
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 14:32:38 2024 -0700 Unify assertion method commit1fddacd7d0
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 14:25:11 2024 -0700 Re-order test methods commit4af893df61
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 14:20:24 2024 -0700 Improve assertions commitb8b3f91ce4
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 13:55:18 2024 -0700 Formatting commit7f40f55343
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 13:52:02 2024 -0700 Add tests for delete supplier endpoint commitb06e8d442d
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 13:37:08 2024 -0700 Add tests for delete status label endpoint commitc269184c60
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 13:29:41 2024 -0700 Add tests for delete predefined kit endpoint commit53c673dee2
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 13:13:12 2024 -0700 Add tests for delete manufacturer endpoint commit50730fc4fb
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 12:37:18 2024 -0700 Add tests for delete location endpoint commit60a54cee79
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 12:33:30 2024 -0700 Add tests for delete license endpoint commit446e962a50
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 10:38:51 2024 -0700 Add tests for delete group endpoint commit79a4bb7316
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 10:35:44 2024 -0700 Add tests for delete depreciation endpoint commit2f76c1bc5b
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 10:33:21 2024 -0700 Add assertion commit38b9f4a438
Author: Marcus Moore <contact@marcusmoore.io> Date: Mon Sep 16 10:29:20 2024 -0700 Add tests for delete departments endpoint commit3105f53aff
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 16:54:29 2024 -0700 Add tests for delete custom fieldsets endpoint commit2047cfed09
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 16:20:32 2024 -0700 Add tests for delete custom fields endpoint commite3268d32df
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 16:00:02 2024 -0700 Add tests for delete consumable endpoint commit6df8b0ac0e
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 15:52:07 2024 -0700 Add tests for delete component endpoint commit910f13c1f7
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 15:38:30 2024 -0700 Add tests for delete companies endpoint commit8ce2512f55
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:54:44 2024 -0700 Add tests for delete category endpoint commit0ec415d4d0
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:46:22 2024 -0700 Clean up commit2044570e95
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:39:36 2024 -0700 Add tests for delete asset model endpoint commitb336c6273d
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:32:42 2024 -0700 Pluralize test classes commit5299b3e9f0
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:29:44 2024 -0700 Remove code handled by CompanyableChildTrait commit872b76b45f
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:29:10 2024 -0700 Add tests for delete asset maintenance endpoint commit275cf4630e
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:16:37 2024 -0700 Add tests for delete asset endpoint commit5c2660bd34
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 13:02:32 2024 -0700 Introduce interface commitc7ae9d9dfa
Author: Marcus Moore <contact@marcusmoore.io> Date: Thu Sep 12 12:58:47 2024 -0700 Add tests for delete accessory endpoint commit9e5f6d656a
Author: Brady Wetherington <bwetherington@grokability.com> Date: Wed Sep 11 15:45:01 2024 +0100 Improve multi-asset create when using numeric prefixes to asset_tags Signed-off-by: snipe <snipe@snipe.net>
238 lines
14 KiB
PHP
238 lines
14 KiB
PHP
<?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
|
|
| such as the size rules. Feel free to tweak each of these messages.
|
|
|
|
|
*/
|
|
|
|
'accepted' => 'O campo :attribute deve ser aceito.',
|
|
'accepted_if' => 'O campo :attribute deve ser aceito quando :other for :value.',
|
|
'active_url' => 'O campo :attribute deve ser uma URL válida.',
|
|
'after' => 'O campo :attribute deve ser uma data posterior a :date.',
|
|
'after_or_equal' => 'O campo :attribute deve ser uma data posterior ou igual a :date.',
|
|
'alpha' => 'O campo :attribute deve conter apenas letras.',
|
|
'alpha_dash' => 'O campo :attribute deve conter apenas letras, números, traços e sublinhados.',
|
|
'alpha_num' => 'O campo :attribute deve conter apenas letras e números.',
|
|
'array' => 'O campo :attribute deve ser um vetor.',
|
|
'ascii' => 'O campo :attribute deve conter apenas caracteres e símbolos alfanuméricos de um único byte.',
|
|
'before' => 'O campo :attribute deve ser uma data anterior a :date.',
|
|
'before_or_equal' => 'O campo :attribute deve ser uma data anterior ou igual a :date.',
|
|
'between' => [
|
|
'array' => 'O campo :attribute deve ter entre :min e :max itens.',
|
|
'file' => 'O campo :attribute deve ter entre :min e :max kilobytes.',
|
|
'numeric' => 'O campo :attribute deve estar entre :min e :max.',
|
|
'string' => 'O campo :attribute deve ter entre :min e :max caracteres.',
|
|
],
|
|
'boolean' => 'O campo :attribute deve ser verdadeiro ou falso.',
|
|
'can' => 'O campo :attribute contém um valor não autorizado.',
|
|
'confirmed' => 'A confirmação do campo :attribute não corresponde.',
|
|
'contains' => 'O campo "atributo" não contém um valor obrigatório.',
|
|
'current_password' => 'A senha esta incorreta.',
|
|
'date' => 'The :attribute field must be a valid date.',
|
|
'date_equals' => 'The :attribute field must be a date equal to :date.',
|
|
'date_format' => 'The :attribute field must match the format :format.',
|
|
'decimal' => 'The :attribute field must have :decimal decimal places.',
|
|
'declined' => 'The :attribute field must be declined.',
|
|
'declined_if' => 'The :attribute field must be declined when :other is :value.',
|
|
'different' => 'The :attribute field and :other must be different.',
|
|
'digits' => 'The :attribute field must be :digits digits.',
|
|
'digits_between' => 'The :attribute field must be between :min and :max digits.',
|
|
'dimensions' => 'The :attribute field has invalid image dimensions.',
|
|
'distinct' => 'O :attribute tem um valor duplicado.',
|
|
'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.',
|
|
'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
|
|
'email' => 'The :attribute field must be a valid email address.',
|
|
'ends_with' => 'The :attribute field must end with one of the following: :values.',
|
|
'enum' => 'O :attribute selecionado é inválido.',
|
|
'exists' => 'O :attribute selecionado é inválido.',
|
|
'extensions' => 'The :attribute field must have one of the following extensions: :values.',
|
|
'file' => 'O campo :attribute deve ser um arquivo.',
|
|
'filled' => 'O :attribute deve ter um valor.',
|
|
'gt' => [
|
|
'array' => 'The :attribute field must have more than :value items.',
|
|
'file' => 'The :attribute field must be greater than :value kilobytes.',
|
|
'numeric' => 'The :attribute field must be greater than :value.',
|
|
'string' => 'The :attribute field must be greater than :value characters.',
|
|
],
|
|
'gte' => [
|
|
'array' => 'The :attribute field must have :value items or more.',
|
|
'file' => 'The :attribute field must be greater than or equal to :value kilobytes.',
|
|
'numeric' => 'The :attribute field must be greater than or equal to :value.',
|
|
'string' => 'The :attribute field must be greater than or equal to :value characters.',
|
|
],
|
|
'hex_color' => 'The :attribute field must be a valid hexadecimal color.',
|
|
'image' => 'The :attribute field must be an image.',
|
|
'import_field_empty' => 'O valor para :fieldname não pode ser nulo.',
|
|
'in' => 'O :attribute selecionado é inválido.',
|
|
'in_array' => 'The :attribute field must exist in :other.',
|
|
'integer' => 'The :attribute field must be an integer.',
|
|
'ip' => 'The :attribute field must be a valid IP address.',
|
|
'ipv4' => 'The :attribute field must be a valid IPv4 address.',
|
|
'ipv6' => 'The :attribute field must be a valid IPv6 address.',
|
|
'json' => 'The :attribute field must be a valid JSON string.',
|
|
'list' => 'The :attribute field must be a list.',
|
|
'lowercase' => 'The :attribute field must be lowercase.',
|
|
'lt' => [
|
|
'array' => 'The :attribute field must have less than :value items.',
|
|
'file' => 'The :attribute field must be less than :value kilobytes.',
|
|
'numeric' => 'The :attribute field must be less than :value.',
|
|
'string' => 'The :attribute field must be less than :value characters.',
|
|
],
|
|
'lte' => [
|
|
'array' => 'The :attribute field must not have more than :value items.',
|
|
'file' => 'The :attribute field must be less than or equal to :value kilobytes.',
|
|
'numeric' => 'The :attribute field must be less than or equal to :value.',
|
|
'string' => 'The :attribute field must be less than or equal to :value characters.',
|
|
],
|
|
'mac_address' => 'The :attribute field must be a valid MAC address.',
|
|
'max' => [
|
|
'array' => 'The :attribute field must not have more than :max items.',
|
|
'file' => 'The :attribute field must not be greater than :max kilobytes.',
|
|
'numeric' => 'The :attribute field must not be greater than :max.',
|
|
'string' => 'The :attribute field must not be greater than :max characters.',
|
|
],
|
|
'max_digits' => 'The :attribute field must not have more than :max digits.',
|
|
'mimes' => 'The :attribute field must be a file of type: :values.',
|
|
'mimetypes' => 'The :attribute field must be a file of type: :values.',
|
|
'min' => [
|
|
'array' => 'The :attribute field must have at least :min items.',
|
|
'file' => 'The :attribute field must be at least :min kilobytes.',
|
|
'numeric' => 'The :attribute field must be at least :min.',
|
|
'string' => 'The :attribute field must be at least :min characters.',
|
|
],
|
|
'min_digits' => 'The :attribute field must have at least :min digits.',
|
|
'missing' => 'The :attribute field must be missing.',
|
|
'missing_if' => 'The :attribute field must be missing when :other is :value.',
|
|
'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
|
|
'missing_with' => 'The :attribute field must be missing when :values is present.',
|
|
'missing_with_all' => 'The :attribute field must be missing when :values are present.',
|
|
'multiple_of' => 'The :attribute field must be a multiple of :value.',
|
|
'not_in' => 'O :attribute selecionado é inválido.',
|
|
'not_regex' => 'The :attribute field format is invalid.',
|
|
'numeric' => 'The :attribute field must be a number.',
|
|
'password' => [
|
|
'letters' => 'The :attribute field must contain at least one letter.',
|
|
'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
|
|
'numbers' => 'The :attribute field must contain at least one number.',
|
|
'symbols' => 'The :attribute field must contain at least one symbol.',
|
|
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
|
|
],
|
|
'percent' => 'A depreciação mínima deve estar entre 0 e 100 quando o tipo de depreciação for percentual.',
|
|
|
|
'present' => 'O campo:attribute deve estar presente.',
|
|
'present_if' => 'The :attribute field must be present when :other is :value.',
|
|
'present_unless' => 'The :attribute field must be present unless :other is :value.',
|
|
'present_with' => 'The :attribute field must be present when :values is present.',
|
|
'present_with_all' => 'The :attribute field must be present when :values are present.',
|
|
'prohibited' => 'The :attribute field is prohibited.',
|
|
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
|
|
'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
|
|
'prohibits' => 'The :attribute field prohibits :other from being present.',
|
|
'regex' => 'The :attribute field format is invalid.',
|
|
'required' => 'O campo de :attribute é requerido.',
|
|
'required_array_keys' => 'The :attribute field must contain entries for: :values.',
|
|
'required_if' => 'O campo de :attribute é requerido quando :other é :value.',
|
|
'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
|
|
'required_if_declined' => 'The :attribute field is required when :other is declined.',
|
|
'required_unless' => 'O campo:attribute é obrigatório a não ser que: :other estiver em : :values.',
|
|
'required_with' => 'O campo de :attribute é requerido quando :values está presente.',
|
|
'required_with_all' => 'The :attribute field is required when :values are present.',
|
|
'required_without' => 'O campo de :attribute é requerido quando :values não está presente.',
|
|
'required_without_all' => 'O campo :attribute é obrigatório nenhum dos :values está presente.',
|
|
'same' => 'The :attribute field must match :other.',
|
|
'size' => [
|
|
'array' => 'The :attribute field must contain :size items.',
|
|
'file' => 'The :attribute field must be :size kilobytes.',
|
|
'numeric' => 'The :attribute field must be :size.',
|
|
'string' => 'The :attribute field must be :size characters.',
|
|
],
|
|
'starts_with' => 'The :attribute field must start with one of the following: :values.',
|
|
'string' => 'O :attribute deve ser string.',
|
|
'two_column_unique_undeleted' => 'O :attribute deve ser único entre :table1 e :table2. ',
|
|
'unique_undeleted' => 'O :attribute deve ser único.',
|
|
'non_circular' => 'O :attribute não pode criar uma referência circular.',
|
|
'not_array' => ':attribute não pode ser um array.',
|
|
'disallow_same_pwd_as_user_fields' => 'A senha não pode ser igual ao nome de usuário.',
|
|
'letters' => 'A senha deve conter pelo menos uma letra.',
|
|
'numbers' => 'A senha deve conter pelo menos um número.',
|
|
'case_diff' => 'A senha deve conter letras maiúsculas e minusculas.',
|
|
'symbols' => 'A senha deve conter símbolos.',
|
|
'timezone' => 'The :attribute field must be a valid timezone.',
|
|
'unique' => 'O :attribute já foi tomado.',
|
|
'uploaded' => 'O :attribute falhou no upload.',
|
|
'uppercase' => 'The :attribute field must be uppercase.',
|
|
'url' => 'O campo :attribute deve ser uma URL válida.',
|
|
'ulid' => 'The :attribute field must be a valid ULID.',
|
|
'uuid' => 'The :attribute field must be a valid UUID.',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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' => [
|
|
'alpha_space' => 'O campo :attribute contém um caractere que não é permitido.',
|
|
'email_array' => 'Um ou mais e-mails sõ invalidos.',
|
|
'hashed_pass' => 'Sua senha atual está incorreta',
|
|
'dumbpwd' => 'Essa senha é muito comum.',
|
|
'statuslabel_type' => 'Você deve selecionar um tipo de etiqueta de situação válida',
|
|
'custom_field_not_found' => 'This field does not seem to exist, please double check your custom field names.',
|
|
'custom_field_not_found_on_model' => 'This field seems to exist, but is not available on this Asset Model\'s fieldset.',
|
|
|
|
// date_format validation with slightly less stupid messages. It duplicates a lot, but it gets the job done :(
|
|
// We use this because the default error message for date_format is reflects php Y-m-d, which non-PHP
|
|
// people won't know how to format.
|
|
'purchase_date.date_format' => 'O :attribute deve ser uma data válida em formato DD-MM-YYYY',
|
|
'last_audit_date.date_format' => 'O :attribute deve ser uma data válida em formato DD-MM-YYYY hh:mm:ss',
|
|
'expiration_date.date_format' => 'O :attribute deve ser uma data válida em formato DD-MM-YYYY',
|
|
'termination_date.date_format' => 'O :attribute deve ser uma data válida em formato DD-MM-YYYY',
|
|
'expected_checkin.date_format' => 'O :attribute deve ser uma data válida em formato DD-MM-YYYY',
|
|
'start_date.date_format' => 'O :attribute deve ser uma data válida em formato DD-MM-YYYY',
|
|
'end_date.date_format' => 'O :attribute deve ser uma data válida em formato DD-MM-YYYY',
|
|
'checkboxes' => ':attribute contém opções inválidas.',
|
|
'radio_buttons' => ':attribute é inválido.',
|
|
'invalid_value_in_field' => 'Valor inválido incluído neste campo',
|
|
],
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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' => [],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Generic Validation Messages - we use these in the jquery validation where we don't have
|
|
| access to the :attribute
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
'generic' => [
|
|
'invalid_value_in_field' => 'Valor inválido incluído neste campo',
|
|
'required' => 'Este campo é obrigatório',
|
|
'email' => 'Please enter a valid email address',
|
|
],
|
|
|
|
|
|
];
|