mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-25 17:57:28 +08:00
b670ab61d6
Squashed commit of the following: commit 23861a31bb2398ca61655c584bd8c75ee9bccdad Merge:d44acf4b
1c6287f2
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 22:18:50 2020 +0000 Merge branch 'master' into l10n_master commitd44acf4b64
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 19:39:46 2020 +0000 New translations errors.php (Portuguese, Brazilian) commitc1a4cc5d12
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 19:14:49 2020 +0000 New translations errors.php (Spanish, Argentina) commitfb3c5dcffc
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 19:14:48 2020 +0000 New translations errors.php (Spanish) commitf65c84635d
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:42:05 2020 +0000 New translations errors.php (German Informal) commit99fba6932a
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:57 2020 +0000 New translations errors.php (French) commitbc4c9684b5
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:55 2020 +0000 New translations errors.php (Portuguese, Brazilian) commit0afce79807
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:43 2020 +0000 New translations errors.php (Russian) commitf3daf77b95
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:41 2020 +0000 New translations errors.php (Hungarian) commit63848278a5
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:40 2020 +0000 New translations errors.php (Italian) commit53b5fce93c
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:38 2020 +0000 New translations errors.php (Japanese) commit2638f7a663
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:37 2020 +0000 New translations errors.php (Korean) commitf19ffa468c
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:36 2020 +0000 New translations errors.php (Persian) commit477ae0b845
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:34 2020 +0000 New translations errors.php (Polish) commit56beebe12c
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:33 2020 +0000 New translations errors.php (German) commit2b6540654a
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:32 2020 +0000 New translations errors.php (Portuguese) commit80f7275011
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:30 2020 +0000 New translations errors.php (Spanish) commit74c65f90ab
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:28 2020 +0000 New translations errors.php (Spanish, Argentina) commit3bd9e4fb86
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:27 2020 +0000 New translations errors.php (Swedish) commita698db00e3
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:26 2020 +0000 New translations errors.php (Turkish) commitf3cfc63b5c
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:25 2020 +0000 New translations errors.php (Ukrainian) commit61eb76ac89
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:23 2020 +0000 New translations errors.php (Vietnamese) commitcfda94e2a8
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:22 2020 +0000 New translations errors.php (Slovak) commitf0659025a9
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:20 2020 +0000 New translations errors.php (Dutch) commit27ac377ed6
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:19 2020 +0000 New translations errors.php (Chinese Traditional) commit04bf21a325
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:18 2020 +0000 New translations errors.php (Chinese Simplified) commit4dd5802979
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:16 2020 +0000 New translations errors.php (Arabic) commit368cf2d248
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:11 2020 +0000 New translations errors.php (Slovenian) commit52381df7be
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:08 2020 +0000 New translations errors.php (Czech) commit7e8330510f
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 14 18:41:07 2020 +0000 New translations errors.php (Danish) commit1bf07c6acf
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 22:57:41 2020 +0000 New translations entities.php (Slovenian) commit4d2d120b57
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 22:27:35 2020 +0000 New translations entities.php (Slovenian) commitedfc88eb8e
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 21:55:51 2020 +0000 New translations entities.php (Slovenian) commit840ed35d34
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 21:22:08 2020 +0000 New translations entities.php (Slovenian) commitaa130af285
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 14:02:50 2020 +0000 New translations common.php (Czech) commit5007fee528
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 14:02:25 2020 +0000 New translations entities.php (Slovenian) commit1ad8874e6b
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 13:30:21 2020 +0000 New translations auth.php (Czech) commit56f17ff7d4
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 13:29:57 2020 +0000 New translations entities.php (Slovenian) commit33789962cc
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 11:09:18 2020 +0000 New translations components.php (Slovenian) commit1002cf9e3b
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 10:08:48 2020 +0000 New translations components.php (Slovenian) commitd5a6083ae8
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 09:37:23 2020 +0000 New translations components.php (Slovenian) commit0d8df3a72e
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 09:07:01 2020 +0000 New translations components.php (Slovenian) commit22337688f9
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 09:07:00 2020 +0000 New translations common.php (Slovenian) commitff812694e2
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 08:20:44 2020 +0000 New translations common.php (Slovenian) commit57b9e04927
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 06:17:11 2020 +0000 New translations auth.php (Spanish) commit25343baac1
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 06:16:52 2020 +0000 New translations activities.php (Spanish) commita5c72ee5f1
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Wed Mar 11 05:37:55 2020 +0000 New translations activities.php (Spanish) commit6a6f28d095
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 15:49:14 2020 +0000 New translations auth.php (Slovenian) commit33f30876e1
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 15:18:30 2020 +0000 New translations auth.php (Slovenian) commit8bf8bc0fe5
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 14:48:46 2020 +0000 New translations auth.php (Slovenian) commit303dc07704
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 14:48:44 2020 +0000 New translations activities.php (Slovenian) commitc219fb67aa
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 09:59:45 2020 +0000 New translations activities.php (Slovenian) commitf45b6c6c82
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 08:34:32 2020 +0000 New translations activities.php (Slovenian) commit7d690eb13f
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 02:56:48 2020 +0000 New translations entities.php (Russian) commit86aab0529e
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Tue Mar 10 02:56:43 2020 +0000 New translations common.php (Russian) commit4fc1945543
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 20:37:26 2020 +0000 New translations errors.php (Russian) commit09791b736d
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 20:07:52 2020 +0000 New translations settings.php (Russian) commit9cb04bea4c
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:50 2020 +0000 New translations validation.php (Slovenian) commit7964a5a2a0
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:34 2020 +0000 New translations settings.php (Slovenian) commit361be13ff7
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:32 2020 +0000 New translations passwords.php (Slovenian) commit9b6a7f0f64
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:31 2020 +0000 New translations pagination.php (Slovenian) commita815adc24f
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:30 2020 +0000 New translations errors.php (Slovenian) commitae6040af3a
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:28 2020 +0000 New translations entities.php (Slovenian) commitf1d0177dce
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:26 2020 +0000 New translations components.php (Slovenian) commit16ba9f1fe1
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:24 2020 +0000 New translations common.php (Slovenian) commitcaa47464ba
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:23 2020 +0000 New translations auth.php (Slovenian) commit4b9a78aef8
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Mon Mar 9 18:49:21 2020 +0000 New translations activities.php (Slovenian) commit6a55161fe9
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sun Mar 8 01:36:31 2020 +0000 New translations common.php (French) commit94235393fa
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 7 18:49:01 2020 +0000 New translations errors.php (Portuguese, Brazilian) commita0f75e7724
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 7 10:24:26 2020 +0000 New translations settings.php (Russian) commit65437712a2
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 7 09:37:34 2020 +0000 New translations auth.php (Russian) commitf7f6a92dcf
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 7 00:01:07 2020 +0000 New translations entities.php (Russian) commitac8819edd3
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Sat Mar 7 00:00:57 2020 +0000 New translations settings.php (Russian) commitf1290f2b87
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Fri Mar 6 23:23:44 2020 +0000 New translations entities.php (Russian) commit8efb9bd571
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Fri Mar 6 22:45:53 2020 +0000 New translations entities.php (Russian) commit4fd31df14e
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Fri Mar 6 22:45:44 2020 +0000 New translations settings.php (Russian) commit262a2b3e4e
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Fri Mar 6 22:11:41 2020 +0000 New translations entities.php (Russian) commit15c98a64b8
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Fri Mar 6 15:10:54 2020 +0000 New translations errors.php (French) commit7a274db381
Author: Dan Brown <ssddanbrown@googlemail.com> Date: Fri Mar 6 15:10:43 2020 +0000 New translations settings.php (French)
115 lines
6.5 KiB
PHP
115 lines
6.5 KiB
PHP
<?php
|
|
/**
|
|
* Validation 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.
|
|
*/
|
|
return [
|
|
|
|
// Standard laravel validation lines
|
|
'accepted' => 'The :attribute must be accepted.',
|
|
'active_url' => 'The :attribute is not a valid URL.',
|
|
'after' => 'The :attribute must be a date after :date.',
|
|
'alpha' => 'The :attribute may only contain letters.',
|
|
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
|
|
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
|
'array' => 'The :attribute must be an array.',
|
|
'before' => 'The :attribute must be a date before :date.',
|
|
'between' => [
|
|
'numeric' => 'The :attribute must be between :min and :max.',
|
|
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
|
'string' => 'The :attribute must be between :min and :max characters.',
|
|
'array' => 'The :attribute must have between :min and :max items.',
|
|
],
|
|
'boolean' => 'The :attribute field must be true or false.',
|
|
'confirmed' => 'The :attribute confirmation does not match.',
|
|
'date' => 'The :attribute is not a valid date.',
|
|
'date_format' => 'The :attribute does not match the format :format.',
|
|
'different' => 'The :attribute and :other must be different.',
|
|
'digits' => 'The :attribute must be :digits digits.',
|
|
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
|
'email' => 'The :attribute must be a valid email address.',
|
|
'ends_with' => 'The :attribute must end with one of the following: :values',
|
|
'filled' => 'The :attribute field is required.',
|
|
'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.',
|
|
],
|
|
'exists' => 'The selected :attribute is invalid.',
|
|
'image' => 'The :attribute must be an image.',
|
|
'image_extension' => 'The :attribute must have a valid & supported image extension.',
|
|
'in' => 'The selected :attribute is invalid.',
|
|
'integer' => 'The :attribute must be an integer.',
|
|
'ip' => 'The :attribute must be a valid 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' => 'The :attribute may not be greater than :max.',
|
|
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
|
'string' => 'The :attribute may not be greater than :max characters.',
|
|
'array' => 'The :attribute may not have more than :max items.',
|
|
],
|
|
'mimes' => 'The :attribute must be a file of type: :values.',
|
|
'min' => [
|
|
'numeric' => 'The :attribute must be at least :min.',
|
|
'file' => 'The :attribute must be at least :min kilobytes.',
|
|
'string' => 'The :attribute must be at least :min characters.',
|
|
'array' => 'The :attribute must have at least :min items.',
|
|
],
|
|
'no_double_extension' => 'The :attribute must only have a single file extension.',
|
|
'not_in' => 'The selected :attribute is invalid.',
|
|
'not_regex' => 'The :attribute format is invalid.',
|
|
'numeric' => 'The :attribute must be a number.',
|
|
'regex' => 'The :attribute format is invalid.',
|
|
'required' => 'The :attribute field is required.',
|
|
'required_if' => 'The :attribute field is required when :other is :value.',
|
|
'required_with' => 'The :attribute field is required when :values is present.',
|
|
'required_with_all' => 'The :attribute field is required when :values is present.',
|
|
'required_without' => 'The :attribute field is required when :values is not present.',
|
|
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
|
'same' => 'The :attribute and :other must match.',
|
|
'size' => [
|
|
'numeric' => 'The :attribute must be :size.',
|
|
'file' => 'The :attribute must be :size kilobytes.',
|
|
'string' => 'The :attribute must be :size characters.',
|
|
'array' => 'The :attribute must contain :size items.',
|
|
],
|
|
'string' => 'The :attribute must be a string.',
|
|
'timezone' => 'The :attribute must be a valid zone.',
|
|
'unique' => 'The :attribute has already been taken.',
|
|
'url' => 'The :attribute format is invalid.',
|
|
'uploaded' => 'The file could not be uploaded. The server may not accept files of this size.',
|
|
|
|
// Custom validation lines
|
|
'custom' => [
|
|
'password-confirm' => [
|
|
'required_with' => 'Password confirmation required',
|
|
],
|
|
],
|
|
|
|
// Custom validation attributes
|
|
'attributes' => [],
|
|
];
|