Attendize/resources/lang/pl/validation.php

123 lines
6.0 KiB
PHP
Raw Normal View History

(localization) Several big changes: 1) Added localization components to the package. They allow usage of localized routes, like http://attendize.site/en/login 2) Added English and Polish localization files. They are ugly, repetitive, but mostly true to the original and relevant. It required rewriting several phrases, and certainly required editing most of the views and controllers. 3) Edited routes to accomodate point 1 4) Rewritten several rules regarding dates. In most cases using English notation (with English names for months) is bad in all other languages. I used environment wide date format that is used. 5) Updated installer. Haven't tested it yet, but should work. Rewrites .env.example file instead of creating it from scratch (by concatenating strings). There are some minor changes that were simple fixes or other funky requirements from my employer that kinda make sense: 1) QR code reader wasn't working in firefox, fixed it. Works in chrome/firefox on mobile on https sites. 2) Added subscript text in some instances: below ticket registration, below ticket. It is kinda dumb, but in most cases is necessary to receive less complaints from clients. 3) Fixed geocoding api by adding api key in env file. At some point in 2016-2017 it was required by google to use API key from developer console and this requirement wasn't challenged in the code. 4) Ticket has been displaying either flyer or site logo on the side. Now displays both (which may affect 1d barcode - it might need some fixin). Regarding the same issue - description of an event contained the flyer image on the side, it was removed, cause it didn't fit in here. 5) Ticket style was updated, because of the above and because it didn't fit longer character strings. Now it's slightly uglier, but works in all cases. and other. There are also some inconveniences, like: 1) Unfinished translations. It was impossible for me to create translations based on strings located inside of a database, which I ignored (I think it's only at one place - surveys). 2) Ugly translation files. At some point I thought it is going to be easier to locate when I try translating vased by file name. Later I divided it by topics, and then I segmented it even more. It might require some serious clean-up. 3) Redundancy. In some cases there are several definitions for the same phrase in my localization files. I used it mostly to protect myself from different contexts for the phrase usage in different languages. 4) File division. There are several files that are placed in dedicated language directory (in /view/, like /view/pl/ or /view/en/). These files don't use language phrases, but they are translated as a whole. Mostly because using language phrases would make those view files unreadable. 5) Localzation helper marks some phrases as obsolete (in file "basic"), because they are used in app/Helpers folder (where this plugin doesn't reach)
2018-05-03 21:41:22 +00:00
<?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 musi zostać zaakceptowany.',
'active_url' => ':attribute jest nieprawidłowym adresem URL.',
'after' => ':attribute musi być datą późniejszą od :date.',
'after_or_equal' => ':attribute musi być datą nie wcześniejszą niż :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.',
'before_or_equal' => ':attribute musi być datą nie późniejszą niż :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' => ':attribute ma niepoprawne wymiary.',
'distinct' => ':attribute ma zduplikowane wartości.',
'email' => 'Format :attribute jest nieprawidłowy.',
'exists' => 'Zaznaczony :attribute jest nieprawidłowy.',
'file' => ':attribute musi być plikiem.',
'filled' => 'Pole :attribute jest wymagane.',
'image' => ':attribute musi być obrazkiem.',
'in' => 'Zaznaczony :attribute jest nieprawidłowy.',
'in_array' => ':attribute nie znajduje się w :other.',
'integer' => ':attribute musi być liczbą całkowitą.',
'ip' => ':attribute musi być prawidłowym adresem IP.',
'ipv4' => ':attribute musi być prawidłowym adresem IPv4.',
'ipv6' => ':attribute musi być prawidłowym adresem IPv6.',
'json' => ':attribute musi być poprawnym ciągiem znaków JSON.',
'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.',
'mimetypes' => ':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.',
'not_regex' => 'Format :attribute jest nieprawidłowy.',
'numeric' => ':attribute musi być liczbą.',
'present' => 'Pole :attribute musi być obecne.',
'regex' => 'Format :attribute jest nieprawidłowy.',
'required' => 'Pole :attribute jest wymagane.',
'required_if' => 'Pole :attribute jest wymagane gdy :other jest :value.',
'required_unless' => ':attribute jest wymagany jeżeli :other nie znajduje się w :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' => ':attribute musi być ciągiem znaków.',
'timezone' => ':attribute musi być prawidłową strefą czasową.',
'unique' => 'Taki :attribute już występuje.',
'uploaded' => 'Nie udało się wgrać pliku :attribute.',
'url' => 'Format :attribute jest nieprawidłowy.',
/*
|--------------------------------------------------------------------------
| 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' => [
'terms_agreed' => [
'required' => 'Proszę, zaakceptuj Warunki Użytkowania.'
]
],
/*
|--------------------------------------------------------------------------
| 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' => [],
];