mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-20 03:39:48 -06:00
- github action updated with new ruleset in pint.json - codebase linted with new ruleset - contributors can now run `./vendor/bin/pint` - action workflow will auto correct any lint issues upon commit/opened pull request
160 lines
10 KiB
PHP
160 lines
10 KiB
PHP
<?php
|
|
/**
|
|
* NOTICE OF LICENSE.
|
|
*
|
|
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
|
|
* The details is bundled with this project in the file LICENSE.txt.
|
|
*
|
|
* @project UNIT3D Community Edition
|
|
*
|
|
* @author HDVinnie <hdinnovations@protonmail.com>
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
|
|
*/
|
|
|
|
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 ត្រូវបានទទួលយក។',
|
|
'active_url' => ':attribute មិនមែនជា URL ត្រឹមត្រូវឡើយ។',
|
|
'after' => ':attribute ត្រូវតែមានកាលបរិច្ឆេទបន្ទាប់ពី :date។',
|
|
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
|
'alpha' => ':attribute អាចមានអក្សរតែប៉ុណ្ណោះ។',
|
|
'alpha_dash' => ':attribute អាចមានតែអក្សរ លេខ និងសហសញ្ញា(-)។',
|
|
'alpha_num' => ':attribute អាចមានតែអក្សរ និងលេខ។',
|
|
'array' => ':attribute ត្រូវតែជា អារេ។',
|
|
'before' => ':attribute ត្រូវតែមានកាលបរិច្ឆេទមុន :date។',
|
|
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
|
'between' => [
|
|
'numeric' => ':attribute ត្រូវតែមានរវាង :min និង :max។',
|
|
'file' => ':attribute ត្រូវតែមានរវាង :min និង :max គីឡូបៃ។',
|
|
'string' => ':attribute ត្រូវតែមានរវាង :min និង :max តួអក្សរ។',
|
|
'array' => ':attribute ត្រូវតែមានធាតុរវាង :min និង :max។',
|
|
],
|
|
'boolean' => 'The :attribute field must be true or false',
|
|
'confirmed' => ':attribute ការបញ្ជាក់មិនផ្គូផ្គង។',
|
|
'date' => ':attribute គឺមិនមែនជាកាលបរិច្ឆេទត្រឹមត្រូវ។',
|
|
'date_equals' => 'The :attribute must be a date equal to :date.',
|
|
'date_format' => ':attribute មិនត្រឹមត្រូវនិងទំរង :formatនេះ។',
|
|
'different' => ':attribute និង :other ត្រូវតែបញ្ជាក់។',
|
|
'digits' => ':attribute ត្រូវជាខ្ទុង :digits។',
|
|
'digits_between' => ':attribute ត្រូវចាប់ពីខ្ទុង :minទៅ :max។',
|
|
'dimensions' => 'The :attribute has invalid image dimensions.',
|
|
'distinct' => 'The :attribute field has a duplicate value.',
|
|
'email' => ':attribute ទំរង់នេះមិនត្រឹមត្រូវ។',
|
|
'exists' => 'ការជ្រើសរើស :attribute ត្រឹមត្រូវ។',
|
|
'file' => 'The :attribute must be a file.',
|
|
'filled' => 'ទំរង់ :attribute នេះគឺទាមទារឲ្យមាន។',
|
|
'gt' => [
|
|
'numeric' => 'The :attribute must be greater than :value.',
|
|
'file' => 'The :attribute must be greater than :value kilobytes.',
|
|
'string' => 'The :attribute must be greater than :value characters.',
|
|
'array' => 'The :attribute must have more than :value items.',
|
|
],
|
|
'gte' => [
|
|
'numeric' => 'The :attribute must be greater than or equal :value.',
|
|
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
|
|
'string' => 'The :attribute must be greater than or equal :value characters.',
|
|
'array' => 'The :attribute must have :value items or more.',
|
|
],
|
|
'image' => ':attribute ត្រូវតៃជារូបភាព។',
|
|
'in' => 'ការជ្រើសរើស :attribute មិនត្រឹមត្រូវ។',
|
|
'in_array' => 'The :attribute field does not exist in :other.',
|
|
'integer' => ':attribute ត្រូវតែជាចំនួនគត់។',
|
|
'ip' => ':attribute ត្រូវតែជា IP addressត្រឹមត្រូវ។',
|
|
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
|
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
|
'json' => 'The :attribute must be a valid JSON string.',
|
|
'lt' => [
|
|
'numeric' => 'The :attribute must be less than :value.',
|
|
'file' => 'The :attribute must be less than :value kilobytes.',
|
|
'string' => 'The :attribute must be less than :value characters.',
|
|
'array' => 'The :attribute must have less than :value items.',
|
|
],
|
|
'lte' => [
|
|
'numeric' => 'The :attribute must be less than or equal :value.',
|
|
'file' => 'The :attribute must be less than or equal :value kilobytes.',
|
|
'string' => 'The :attribute must be less than or equal :value characters.',
|
|
'array' => 'The :attribute must not have more than :value items.',
|
|
],
|
|
'max' => [
|
|
'numeric' => ':attribute មិនត្រូវធំជាង :max។',
|
|
'file' => ':attribute មិនត្រូវធំជាង :max គីឡូបៃ។',
|
|
'string' => ':attribute មិនត្រូវធំជាង :max តួអក្សរ។',
|
|
'array' => ':attribute មិនត្រូវច្រើនជាងធាតុនេះ :max។',
|
|
],
|
|
'mimes' => ':attribute ត្រូវតែជាប្រភេទឯកសារ type: :values នេះ។',
|
|
'mimetypes' => ':attribute ត្រូវតែជាប្រភេទឯកសារ type: :values នេះ។',
|
|
'min' => [
|
|
'numeric' => ':attribute ត្រូវតែតូចជាង :min។',
|
|
'file' => ':attribute ត្រូវតៃតួចជាង :min គីឡូបៃ។',
|
|
'string' => ':attribute ត្រូវតែតូចជាង :min តួអក្សរ។',
|
|
'array' => ':attribute ត្រូវតែតិចជាងធាតុនេះ :min។',
|
|
],
|
|
'not_in' => 'ការជ្រើសរើស :attribute គឺត្រឹមត្រូវ។',
|
|
'not_regex' => 'The :attribute format is invalid.',
|
|
'numeric' => ':attribute ត្រូវតែជាលេខ។',
|
|
'present' => 'The :attribute field must be present.',
|
|
'regex' => ':attribute ទំរងមិនត្រឹមត្រូវ។',
|
|
'required' => 'ទំរង់ :attribute នេះគឺទាមទារឲ្យមាន។',
|
|
'required_if' => 'ទំរង់ :attribute នេះគឺទាមទារនៅពេល :other គឺ :value។',
|
|
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
|
'required_with' => 'ទំរង់ :attribute នេះគឺទាមទារនៅពេល :values ត្រូវបង្ហាញ។',
|
|
'required_with_all' => 'The :attribute field is required when :values is present.',
|
|
'required_without' => 'ទំរង់ :attribute នេះគឺទាមទារនៅពេល :values មិនត្រូវបង្ហាញ។',
|
|
'required_without_all' => 'ទំរង់ :attribute នេះគឺត្រូវបានទាមទារពេលគ្មាន :values បានបង្ហាញ។',
|
|
'same' => 'ទំរង់ :attribute និង :other ត្រូវតែដូចគ្នា។',
|
|
'size' => [
|
|
'numeric' => ':attribute ត្រូវតែ :size។',
|
|
'file' => ':attribute ត្រូវតែ :size គីឡូបៃ។',
|
|
'string' => ':attribute ត្រូវតែ :size តួអក្សរ។',
|
|
'array' => ':attribute ត្រូវតែមានទំហំ :size។',
|
|
],
|
|
'starts_with' => 'The :attribute must start with one of the following: :values',
|
|
'string' => 'The :attribute must be a string.',
|
|
'timezone' => 'The :attribute must be a valid zone.',
|
|
'unique' => ':attribute ត្រូវបានប្រើរួចហើយ។',
|
|
'uploaded' => 'The :attribute failed to upload.',
|
|
'url' => ':attribute ទំរង់ត្រឹមត្រូវ។',
|
|
'uuid' => 'The :attribute 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' => [
|
|
'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' => [
|
|
],
|
|
];
|