feat(12-01): add Laravel request validation to lagoon
- lagoon.ValidateRequest ports Laravel 9 request validation: wildcard expansion, implicit-rule stop, bail, sometimes/nullable/blank skipping, size messages split by type and character-counted string lengths - ParseRules, In, CustomRule, UploadedFile and ErrorKeys for rule tables - pl/en lagoon::validation catalogs ported verbatim from WinterCMS - lagoon.Validate answers a numeric range failure with the bound that failed (min, max or numeric between) instead of always max
This commit is contained in:
69
modules/phrasebook/lang/pl/validation.yaml
Normal file
69
modules/phrasebook/lang/pl/validation.yaml
Normal file
@@ -0,0 +1,69 @@
|
||||
# Port of WinterCMS modules/system/lang/pl/validation.php (Laravel validator
|
||||
# messages). Text is copied verbatim; keys absent from this locale fall back to
|
||||
# app.fallback_locale as in Winter. Loaded as lagoon::validation.*
|
||||
accepted: ":attribute musi zostać zaakceptowany."
|
||||
active_url: ":attribute jest nieprawidłowym adresem URL."
|
||||
after: ":attribute musi być datą późniejszą od :date."
|
||||
alpha: ":attribute może zawierać jedynie litery."
|
||||
alpha_dash: ":attribute może zawierać jedynie litery, cyfry i myślniki."
|
||||
alpha_num: ":attribute może zawierać jedynie litery i cyfry."
|
||||
array: ":attribute musi być tablicą."
|
||||
before: ":attribute musi być datą wcześniejszą od :date."
|
||||
between:
|
||||
numeric: ":attribute musi zawierać się w granicach :min - :max."
|
||||
file: ":attribute musi zawierać się w granicach :min - :max kilobajtów."
|
||||
string: ":attribute musi zawierać się w granicach :min - :max znaków."
|
||||
array: ":attribute musi składać się z :min - :max elementów."
|
||||
boolean: ":attribute musi mieć wartość prawda albo fałsz"
|
||||
confirmed: "Potwierdzenie :attribute nie zgadza się."
|
||||
date: ":attribute nie jest prawidłową datą."
|
||||
date_format: ":attribute nie jest w formacie :format."
|
||||
different: ":attribute oraz :other muszą się różnić."
|
||||
digits: ":attribute musi składać się z :digits cyfr."
|
||||
digits_between: ":attribute musi mieć od :min do :max cyfr."
|
||||
dimensions: "The :attribute has invalid image dimensions."
|
||||
distinct: "The :attribute field has a duplicate value."
|
||||
email: "Format :attribute jest nieprawidłowy."
|
||||
exists: "Zaznaczony :attribute jest nieprawidłowy."
|
||||
file: "The :attribute must be a file."
|
||||
filled: "Pole :attribute jest wymagane."
|
||||
image: ":attribute musi być obrazkiem."
|
||||
in: "Zaznaczony :attribute jest nieprawidłowy."
|
||||
in_array: "The :attribute field does not exist in :other."
|
||||
integer: ":attribute musi być liczbą całkowitą."
|
||||
ip: ":attribute musi być prawidłowym adresem IP."
|
||||
json: "The :attribute must be a valid JSON string."
|
||||
max:
|
||||
numeric: ":attribute nie może być większy niż :max."
|
||||
file: ":attribute nie może być większy niż :max kilobajtów."
|
||||
string: ":attribute nie może być dłuższy niż :max znaków."
|
||||
array: ":attribute nie może mieć więcej niż :max elementów."
|
||||
mimes: ":attribute musi być plikiem typu :values."
|
||||
min:
|
||||
numeric: ":attribute musi być nie mniejszy od :min."
|
||||
file: ":attribute musi mieć przynajmniej :min kilobajtów."
|
||||
string: ":attribute musi mieć przynajmniej :min znaków."
|
||||
array: ":attribute musi mieć przynajmniej :min elementów."
|
||||
not_in: "Zaznaczony :attribute jest nieprawidłowy."
|
||||
numeric: ":attribute musi być liczbą."
|
||||
present: "The :attribute field must be present."
|
||||
regex: "Format :attribute jest nieprawidłowy."
|
||||
required: "Pole :attribute jest wymagane."
|
||||
required_if: "Pole :attribute jest wymagane gdy :other jest :value."
|
||||
required_unless: "The :attribute field is required unless :other is in :values."
|
||||
required_with: "Pole :attribute jest wymagane gdy :values jest obecny."
|
||||
required_with_all: "Pole :attribute jest wymagane gdy :values jest obecny."
|
||||
required_without: "Pole :attribute jest wymagane gdy :values nie jest obecny."
|
||||
required_without_all: "Pole :attribute jest wymagane gdy żadne z :values nie są obecne."
|
||||
same: "Pole :attribute i :other muszą się zgadzać."
|
||||
size:
|
||||
numeric: ":attribute musi mieć :size."
|
||||
file: ":attribute musi mieć :size kilobajtów."
|
||||
string: ":attribute musi mieć :size znaków."
|
||||
array: ":attribute musi zawierać :size elementów."
|
||||
string: "The :attribute must be a string."
|
||||
timezone: ":attribute musi być prawidłową strefą czasową."
|
||||
unique: "Taki :attribute już występuje."
|
||||
url: "Format :attribute jest nieprawidłowy."
|
||||
custom: {}
|
||||
attributes: {}
|
||||
Reference in New Issue
Block a user