mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Move `resources/lang` folder * Shift registered middleware * Remove `fruitcake/laravel-cors` dependency * Streamline `$commands` property * Upgrade to Flysystem 3.0 * Shift core files * Convert `optional()` to nullsafe operator * Remove unnecessary `$model` property * Convert route options to fluent methods Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods. * Convert deprecated `$dates` property to `$casts` * Shift config files * Default config files In an effort to make upgrading the constantly changing config files easier, Shift defaulted them and merged your true customizations - where ENV variables may not be used. * Bump Laravel dependencies * Use `<env>` tags for configuration `<env>` tags have a lower precedence than system environment variables making it easier to overwrite PHPUnit configuration values in additional environments, such a CI. Review this blog post for more details on configuration precedence when testing Laravel: https://jasonmccreary.me/articles/laravel-testing-configuration-precedence/ * Fix error provider * Match new symfony syntax * Match upstream syntax * Fix route syntax * generate composer.lock * Sync back configs * routes * composer * Fix more flare * fix cors * sync lang * Apply fixes from StyleCI (#14517) Co-authored-by: StyleCI Bot <bot@styleci.io> * bump larastan * update packages * wip * Temporarily lower phpstan level * Update phpstan.neon * wip * wip * wip * Apply fixes from StyleCI (#14592) Co-authored-by: StyleCI Bot <bot@styleci.io> * test * Update CiHelper.php * Update test.yml * Update CiHelper.php * Update CiHelper.php * Apply fixes from StyleCI (#14616) Co-authored-by: StyleCI Bot <bot@styleci.io> * test? * fix phpstan problems * dont run snmpsim on github ci * Fix whitespace * More whitespace * More whitespace ??? * I think the space broke it * fix the reset of the whitespace * hard code auth guard --------- Co-authored-by: Shift <shift@laravelshift.com> Co-authored-by: StyleCI Bot <bot@styleci.io> Co-authored-by: Tony Murray <murraytony@gmail.com>
171 lines
11 KiB
PHP
171 lines
11 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
|
||
| as the size rules. Feel free to tweak each of these messages here.
|
||
|
|
||
*/
|
||
|
||
'accepted' => ':attribute має бути прийнято.',
|
||
'accepted_if' => ':attribute має бути встановлений коли :other встановлений як :value.',
|
||
'active_url' => ':attribute не є дійсним URL.',
|
||
'after' => ':attribute має бути датою пізнішою за :date.',
|
||
'after_or_equal' => ':attribute має бути датою не ранішою за :date.',
|
||
'alpha' => ':attribute має містити лише літери.',
|
||
'alpha_dash' => ':attribute може містити лише літери, цифри, тире та підкреслення.',
|
||
'alpha_num' => ':attribute може містити лише літери та цифри.',
|
||
'alpha_space' => ':attribute може містити лише літери, числа, _ та пробіли.',
|
||
'array' => ':attribute має бути масивом.',
|
||
'before' => ':attribute має бути датою ранішою за :date.',
|
||
'before_or_equal' => ':attribute має бути датою не пізнішою за :date.',
|
||
'between' => [
|
||
'numeric' => ':attribute має бути у проміжку між :min та :max.',
|
||
'file' => ':attribute має бути у проміжку між :min та :max кілобайт.',
|
||
'string' => ':attribute має містити від :min до :max символів.',
|
||
'array' => ':attribute має містити від :min до :max елементів.',
|
||
],
|
||
'boolean' => ':attribute має бути true чи false.',
|
||
'confirmed' => 'Підтвердження :attribute не співпадає.',
|
||
'current_password' => 'Пароль невірний.',
|
||
'date' => ':attribute не є коректною датою.',
|
||
'date_equals' => ':attribute має бути рівним :date.',
|
||
'date_format' => ':attribute не співпадає з форматом :format.',
|
||
'different' => ':attribute та :other повинні мати різні значення.',
|
||
'digits' => ':attribute має містити :digits цифр.',
|
||
'digits_between' => ':attribute має містити від :min до :max цифр.',
|
||
'dimensions' => ':attribute містить некоректні виміри зображення.',
|
||
'distinct' => 'Поле :attribute містить однакове значення.',
|
||
'email' => ':attribute має бути дійсною адресою електронної пошти.',
|
||
'ends_with' => ':attribute має закінчуватися на одне з наступних значень: :values.',
|
||
'exists' => 'Обраний :attribute не є валідним.',
|
||
'file' => ':attribute має бути файлом.',
|
||
'filled' => 'Поле :attribute повинне мати значення.',
|
||
'gt' => [
|
||
'numeric' => ':attribute має бути більшим за :value.',
|
||
'file' => ':attribute має бути більшим за :value кілобайт.',
|
||
'string' => ':attribute має бути довшим за :value символів.',
|
||
'array' => ':attribute повинен містити більше ніж :value елементів.',
|
||
],
|
||
'gte' => [
|
||
'numeric' => ':attribute має бути не меншим за :value.',
|
||
'file' => ':attribute має бути не меншим за :value кілобайт.',
|
||
'string' => ':attribute має бути не коротшим за :value символів.',
|
||
'array' => ':attribute повинен містити не менше ніж :value елементів.',
|
||
],
|
||
'image' => ':attribute має бути зображенням.',
|
||
'in' => 'Обраний :attribute не є валідним.',
|
||
'in_array' => 'Поле :attribute не існує у :other.',
|
||
'integer' => ':attribute має бути типу integer.',
|
||
'ip' => ':attribute має бути валідною IP адресою.',
|
||
'ip_or_hostname' => ':attribute має бути валідною IP адресою/підмережею або іменем хоста.',
|
||
'ipv4' => ':attribute має бути валідною IPv4.',
|
||
'ipv6' => ':attribute має бути валідною IPv6 адресою.',
|
||
'is_regex' => ':attribute не є валідним регулярним виразом',
|
||
'json' => ':attribute має бути валідним JSON.',
|
||
'keys_in' => ':attribute містить невалідні ключі: :extra. Валідні ключі: :values',
|
||
'lt' => [
|
||
'numeric' => ':attribute має бути меншим за :value.',
|
||
'file' => ':attribute має бути меншим за :value кілобайт.',
|
||
'string' => ':attribute має бути коротшим за :value символів.',
|
||
'array' => ':attribute повинен містити менше ніж :value елементів.',
|
||
],
|
||
'lte' => [
|
||
'numeric' => ':attribute має бути не більшим за :value.',
|
||
'file' => ':attribute має бути не більшим за :value кілобайт.',
|
||
'string' => ':attribute має бути не довшим за :value символів.',
|
||
'array' => ':attribute повинен містити не більше ніж :value елементів.',
|
||
],
|
||
'max' => [
|
||
'numeric' => ':attribute не може бути більшим за :max.',
|
||
'file' => ':attribute не може бути більшим за :max кілобайт.',
|
||
'string' => ':attribute не може бути довшим за :max символів.',
|
||
'array' => ':attribute не може мати більше ніж :max елементів.',
|
||
],
|
||
'mimes' => ':attribute має бути файлом типу: :values.',
|
||
'mimetypes' => ':attribute має бути файлом типу: :values.',
|
||
'min' => [
|
||
'numeric' => ':attribute має бути щонайменше :min.',
|
||
'file' => ':attribute має бути щонайменше :min кілобайт.',
|
||
'string' => ':attribute має бути щонайменше :min символів.',
|
||
'array' => ':attribute має містити щонайменше :min елементів.',
|
||
],
|
||
'multiple_of' => ':attribute має містити декілька :value.',
|
||
'not_in' => 'Обраний :attribute не валідний.',
|
||
'not_regex' => 'Формат :attribute не валідний.',
|
||
'numeric' => ':attribute має бути числом.',
|
||
'password' => 'Пароль невірний.',
|
||
'present' => 'Поле :attribute має бути наявним.',
|
||
'regex' => 'Формат :attribute не валідний.',
|
||
'required' => 'Необхідне поле :attribute.',
|
||
'required_if' => 'Поле :attribute необхідне коли :other має значення :value.',
|
||
'required_unless' => 'Поле :attribute необхідне, окрім випадків коли :other має значення :values.',
|
||
'required_with' => 'Поле :attribute необхідне при наявності одного з :values.',
|
||
'required_with_all' => 'Поле :attribute необхідне при наявності усіх перерахованих :values.',
|
||
'required_without' => 'Поле :attribute необхідне за відсутності одного з :values.',
|
||
'required_without_all' => 'Поле :attribute необхідне за відсутності усіх перерахованих :values.',
|
||
'prohibited' => 'Поле :attribute не дозволене.',
|
||
'prohibited_if' => 'Поле :attribute не дозволене коли :other визначене як :value.',
|
||
'prohibited_unless' => 'Поле :attribute не дозволене якщо :other не визначене як :values.',
|
||
'prohibits' => 'Поле :attribute не дозволяє наявність :other.',
|
||
'same' => ':attribute та :other повинні співпадати.',
|
||
'size' => [
|
||
'numeric' => ':attribute має бути :size.',
|
||
'file' => ':attribute має бути :size кілобайт.',
|
||
'string' => ':attribute повинен складати :size символів.',
|
||
'array' => ':attribute повинен містити :size елементів.',
|
||
],
|
||
'starts_with' => ':attribute повинен починатися з одного з наступних: :values',
|
||
'string' => ':attribute має бути типу string.',
|
||
'timezone' => ':attribute має бути валідною часовою зоною.',
|
||
'unique' => ':attribute вже призначений.',
|
||
'uploaded' => ':attribute не було завантажено успішно.',
|
||
'url' => 'Формат :attribute є не валідним.',
|
||
'uuid' => ':attribute має бути валідним 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' => [
|
||
'attribute-name' => [
|
||
'rule-name' => 'custom-message',
|
||
],
|
||
],
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Custom Validation Attributes
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| The following language lines are used to swap our attribute placeholder
|
||
| with something more reader friendly such as "E-Mail Address" instead
|
||
| of "email". This simply helps us make our message more expressive.
|
||
|
|
||
*/
|
||
|
||
'attributes' => [],
|
||
|
||
'results' => [
|
||
'fix' => 'Виправлення',
|
||
'fetch_failed' => 'Не вдалося отримати результати валідації',
|
||
'show_all' => 'Показати всі',
|
||
'show_less' => 'Показати менше',
|
||
'validate' => 'Валідувати',
|
||
'validating' => 'Валідація в процесі',
|
||
],
|
||
];
|