-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a159a4b
Showing
11 changed files
with
871 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Laravel Nova 4 Slovak language | ||
|
||
This package translate base Laravel Nova 4 files to Slovak language | ||
|
||
``` | ||
. | ||
├── resources | ||
│ ├── lang | ||
│ │ ├── sk | ||
│ │ │ ├── auth.php | ||
│ │ │ ├── pagination.php | ||
│ │ │ ├── passwords.php | ||
│ │ │ └── validation.php | ||
│ │ ├── vendor | ||
│ │ │ ├── nova | ||
│ │ │ │ ├── sk | ||
│ │ │ │ │ └── validation.php | ||
│ │ │ │ └── sk.json | ||
└── └── └── sk.json | ||
``` | ||
|
||
|
||
## Requirements | ||
|
||
- `laravel/nova: ^4.0` | ||
|
||
|
||
## Installation | ||
|
||
```bash | ||
composer require wamesk/laravel-nova-slovak-lang | ||
``` | ||
|
||
```bash | ||
php artisan vendor:publish --provider="Wame\LaravelNovaSlovakLang\PackageServiceProvider" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"name": "wamesk/laravel-nova-slovak-lang", | ||
"description": "Laravel Nova 4 Slovak language.", | ||
"keywords": [ | ||
"laravel", | ||
"nova", | ||
"nova4", | ||
"lang", | ||
"translation", | ||
"translate", | ||
"slovak", | ||
"sk" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "WAME s.r.o.", | ||
"homepage": "https://wame.sk" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://nova.laravel.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.0|^8.1|^8.2", | ||
"laravel/nova": "^4.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Wame\\LaravelNovaSlovakLang\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Wame\\LaravelNovaSlovakLang\\PackageServiceProvider" | ||
] | ||
} | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"The :attribute must contain at least one letter.": ":attribute musí obsahovať minimálne jedno písmeno.", | ||
"The :attribute must contain at least one number.": ":attribute musí obsahovať minimálne jedno číslo.", | ||
"The :attribute must contain at least one symbol.": ":attribute musí obsahovať minimálne jeden znak.", | ||
"The :attribute must contain at least one uppercase and one lowercase letter.": ":attribute musí obsahovať minimálne jedno veľké a jedno malé písmeno.", | ||
"The given :attribute has appeared in a data leak. Please choose a different :attribute.": ":attribute nie je bezpečné. Prosím zvoľte iné heslo." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Authentication Language Lines | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The following language lines are used during authentication for various | ||
| messages that we need to display to the user. You are free to modify | ||
| these language lines according to your application's requirements. | ||
| | ||
*/ | ||
|
||
'failed' => 'Zadané údaje nespĺňajú požadované kritéria.', | ||
'password' => 'Nesprávne heslo.', | ||
'throttle' => 'Príliž veľa pokusov. Prosím opakujte znova o :seconds sekúnd.', | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Pagination Language Lines | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The following language lines are used by the paginator library to build | ||
| the simple pagination links. You are free to change them to anything | ||
| you want to customize your views to better match your application. | ||
| | ||
*/ | ||
|
||
'previous' => '« Predchádzajúca', | ||
'next' => 'Ďalšia »', | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Password Reset Language Lines | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The following language lines are the default lines which match reasons | ||
| that are given by the password broker for a password update attempt | ||
| has failed, such as for an invalid token or invalid new password. | ||
| | ||
*/ | ||
|
||
'reset' => 'Vaše heslo bolo obnovené!', | ||
'sent' => 'Bol vám zaslaný e-mail na obnovu hesla!', | ||
'throttled' => 'Prosím čakajte pred ďalším pokusom.', | ||
'token' => 'Neplatný pokus na obnovu hesla.', | ||
'user' => "Používateľ s danou e-mail adresou neexistuje.", | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
<?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 je správny.', | ||
'accepted_if' => ':attribute je správny, ak :other je :value.', | ||
'active_url' => ':attribute nie je platná URL adresa.', | ||
'after' => ':attribute musí byť dátum väčší než :date.', | ||
'after_or_equal' => ':attribute musí byť dátum väčší alebo rovný dátumu :date.', | ||
'alpha' => ':attribute musí obsahovať len písmená.', | ||
'alpha_dash' => ':attribute musí obsahovať len písmená, čísla, čiarky a podčiarkovníky.', | ||
'alpha_num' => ':attribute musí obsahovať len písmená a čísla.', | ||
'array' => ':attribute musí byť pole.', | ||
'before' => ':attribute musí byť dátum menší než :date.', | ||
'before_or_equal' => ':attribute musí byť dátum menší alebo rovný než :date.', | ||
'between' => [ | ||
'array' => ':attribute musí mať :min až :max položiek.', | ||
'file' => ':attribute musí mať :min až :max kB.', | ||
'numeric' => ':attribute musí byť :min až :max.', | ||
'string' => ':attribute musí mať :min až :max znakov.', | ||
], | ||
'boolean' => ':attribute musí byť áno alebo nie.', | ||
'confirmed' => ':attribute potvrdenie sa nezhoduje.', | ||
'current_password' => 'Nesprávne heslo.', | ||
'date' => ':attribute nie je platný dátum.', | ||
'date_equals' => ':attribute musí byť dátum :date.', | ||
'date_format' => ':attribute nie je platným formátom dátumu podľa :format.', | ||
'declined' => ':attribute musí byť odmietnutý.', | ||
'declined_if' => ':attribute musí byť odmietnutý ak :other má hodnotu :value.', | ||
'different' => ':attribute a :other sa nesmú zhodovať.', | ||
'digits' => ':attribute musí obsahovať :digits čísel.', | ||
'digits_between' => ':attribute musí obsahovať od :min do :max znakov.', | ||
'dimensions' => ':attribute má neplatné rozmery obrázka.', | ||
'distinct' => ':attribute má duplicitnú hodnotu.', | ||
'email' => ':attribute musí byť platný e-mail.', | ||
'ends_with' => ':attribute musí končiť jedným z: :values.', | ||
'enum' => 'Zvolený :attribute nie je platný.', | ||
'exists' => 'Zvolený atribút :attribute nie je platný.', | ||
'file' => ':attribute musí byť súbor.', | ||
'filled' => ':attribute musí byť vyplnený.', | ||
'gt' => [ | ||
'array' => ':attribute musí mať viac než :value položiek', | ||
'file' => ':attribute musí byť väčší než :value kB.', | ||
'numeric' => ':attribute musí byť väčší než :value.', | ||
'string' => ':attribute musí byť väčší než :value znakov.', | ||
], | ||
'gte' => [ | ||
'array' => ':attribute musí mať viac alebo sa rovnať :value položiek', | ||
'file' => ':attribute musí byť väčší alebo sa rovnať :value kB.', | ||
'numeric' => ':attribute musí byť väčší alebo sa rovnať :value.', | ||
'string' => ':attribute musí byť väčší alebo sa rovnať :value znakov.', | ||
], | ||
'image' => ':attribute musí byť obrázok.', | ||
'in' => 'Vybraný atribút nie je platný.', | ||
'in_array' => ':attribute pole sa nenachádza v :other.', | ||
'integer' => ':attribute musí byť celé číslo.', | ||
'ip' => ':attribute musí byť platná IP adresa.', | ||
'ipv4' => ':attribute musí byť platná IPv4 adresa.', | ||
'ipv6' => ':attribute musí byť platná IPv6 adresa.', | ||
'json' => ':attribute musí byť platný JSON reťazec.', | ||
'lt' => [ | ||
'array' => ':attribute musí obsahovať menej než :min položiek.', | ||
'file' => ':attribute musí mať veľkosť menej než :min kB.', | ||
'numeric' => ':attribute musí mať hodnotu menej než :min.', | ||
'string' => ':attribute musí obsahovať menej než :min znakov.', | ||
], | ||
'lte' => [ | ||
'array' => ':attribute musí obsahovať menej alebo maximálne :min položiek.', | ||
'file' => ':attribute musí mať veľkosť menej alebo maximálne :min kB.', | ||
'numeric' => ':attribute musí mať hodnotu menej alebo maximálne :min.', | ||
'string' => ':attribute musí obsahovať menej alebo maximálne :min znakov.', | ||
], | ||
'mac_address' => ':attribute musí byť platná MAC adresa.', | ||
'max' => [ | ||
'array' => ':attribute musí obsahovať maximálne :max položiek.', | ||
'file' => ':attribute musí mať veľkosť maximálne :max kB.', | ||
'numeric' => ':attribute musí mať hodnotu :max maximálne.', | ||
'string' => ':attribute musí obsahovať maximálne :max znakov.', | ||
], | ||
'mimes' => ':attribute musí byť súbor typu: :values.', | ||
'mimetypes' => ':attribute musí byť súbor typu: :values.', | ||
'min' => [ | ||
'array' => ':attribute musí obsahovať minimálne :min položiek.', | ||
'file' => ':attribute musí mať veľkosť minimálne :min kB.', | ||
'numeric' => ':attribute musí mať hodnotu :min minimálne.', | ||
'string' => ':attribute musí obsahovať minimálne :min znakov.', | ||
], | ||
'multiple_of' => ':attribute musí byť násobkom :value.', | ||
'not_in' => 'Vybraný atribút :attribute nie je platný.', | ||
'not_regex' => ':attribute neplatný formát.', | ||
'numeric' => ':attribute musí byť číslo.', | ||
'present' => ':attribute pole musí byť zadané.', | ||
'prohibited' => ':attribute pole nemôže byť vyplnené.', | ||
'prohibited_if' => ':attribute pole nemôže byť vyplnené, ak je v poli :other hodnota :value.', | ||
'prohibited_unless' => ':attribute pole neumožňuje byť zadaným ak pole :other obshuje hodnoty :values.', | ||
'prohibits' => ':attribute pole neumožňuje poľu :other byť zadaným.', | ||
'regex' => ':attribute formát nie je platný.', | ||
'required' => ':attribute pole je povinné.', | ||
'required_array_keys' => ':attribute pole musí obsahovať hodnoty: :values.', | ||
'required_if' => ':attribute je povinné pole len ak pole :other má hodnotu :value.', | ||
'required_unless' => ':attribute je povinné pole len ak pole :other má hodnoty :values.', | ||
'required_with' => ':attribute je povinné pole ak hodnota :values je zadaná.', | ||
'required_with_all' => ':attribute je povinné pole ak hodnoty :values sú zadaná.', | ||
'required_without' => ':attribute je povinné pole ak hodnota :values nie je zadaná.', | ||
'required_without_all' => ':attribute je povinné pole, ak žiadna z hodnôt :values nie je zadaná.', | ||
'same' => ':attribute a :other musia byť zhodné.', | ||
'size' => [ | ||
'array' => ':attribute musí obsahovaťmust :size položiek.', | ||
'file' => ':attribute musí mať veľkosť :size kB.', | ||
'numeric' => ':attribute musí byť :size.', | ||
'string' => ':attribute musí obsahovať :size znakov.', | ||
], | ||
'starts_with' => ':attribute musí začínať jedným z nasledovných: :values.', | ||
'string' => ':attribute musí byť reťazec.', | ||
'timezone' => ':attribute musí byť platná časová zóna.', | ||
'unique' => ':attribute bol už použitý.', | ||
'uploaded' => ':attribute nebolo možné nahrať.', | ||
'url' => 'The :attribute musí byť platná URL adresa.', | ||
'uuid' => ':attribute musí byť platné používateľské 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' => [], | ||
|
||
]; |
Oops, something went wrong.