]> BookStack Code Mirror - bookstack/blobdiff - resources/lang/it/validation.php
Code cleanup, bug squashing
[bookstack] / resources / lang / it / validation.php
index 832480d4cc0a04feb47cf3bdf8610940823f12b9..3b85303d2b879477e83f4309db786bfde8b152ed 100755 (executable)
@@ -1,18 +1,13 @@
 <?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 [
 
-    /*
-    |--------------------------------------------------------------------------
-    | 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.
-    |
-    */
-
+    // Standard laravel validation lines
     'accepted'             => ':attribute deve essere accettato.',
     'active_url'           => ':attribute non è uno URL valido.',
     'after'                => ':attribute deve essere una data dopo il :date.',
@@ -35,12 +30,41 @@ return [
     'digits'               => 'Il campo :attribute deve essere di :digits numeri.',
     'digits_between'       => 'Il campo :attribute deve essere tra i numeri :min e :max.',
     'email'                => 'Il campo :attribute deve essere un indirizzo email valido.',
+    'ends_with' => ':attribute deve terminare con uno dei seguenti: :values',
     'filled'               => 'Il campo :attribute field is required.',
+    'gt'                   => [
+        'numeric' => ':attribute deve essere maggiore di :value.',
+        'file'    => ':attribute deve essere maggiore di :value kilobytes.',
+        'string'  => ':attribute deve essere maggiore di :value caratteri.',
+        'array'   => ':attribute deve avere più di :value elementi.',
+    ],
+    'gte'                  => [
+        'numeric' => ':attribute deve essere maggiore o uguale a :value.',
+        'file'    => ':attribute deve essere maggiore o uguale a :value kilobytes.',
+        'string'  => ':attribute deve essere maggiore o uguale a :value caratteri.',
+        'array'   => ':attribute deve avere :value elementi o più.',
+    ],
     'exists'               => 'Il campo :attribute non è valido.',
     'image'                => 'Il campo :attribute deve essere un\'immagine.',
+    'image_extension'      => ':attribute deve avere un\'estensione immagine valida e supportata.',
     'in'                   => 'Il campo :attribute selezionato non è valido.',
     'integer'              => 'Il campo :attribute deve essere un intero.',
     'ip'                   => 'Il campo :attribute deve essere un indirizzo IP valido.',
+    'ipv4'                 => ':attribute deve essere un indirizzo IPv4 valido.',
+    'ipv6'                 => ':attribute deve essere un indirizzo IPv6 valido.',
+    'json'                 => ':attribute deve essere una stringa JSON valida.',
+    'lt'                   => [
+        'numeric' => ':attribute deve essere inferiore a :value.',
+        'file'    => ':attribute deve essere inferiore a :value kilobytes.',
+        'string'  => ':attribute deve essere inferiore a :value caratteri.',
+        'array'   => ':attribute deve avere meno di :value elementi.',
+    ],
+    'lte'                  => [
+        'numeric' => ':attribute deve essere minore o uguale :value.',
+        'file'    => ':attribute deve essere minore o uguale a :value kilobytes.',
+        'string'  => ':attribute deve essere minore o uguale a :value caratteri.',
+        'array'   => ':attribute non deve avere più di :value elementi.',
+    ],
     'max'                  => [
         'numeric' => 'Il campo :attribute non deve essere maggiore di :max.',
         'file'    => 'Il campo :attribute non deve essere maggiore di :max kilobytes.',
@@ -54,7 +78,9 @@ return [
         'string'  => 'Il campo :attribute deve essere almeno :min caratteri.',
         'array'   => 'Il campo :attribute deve contenere almeno :min elementi.',
     ],
+    'no_double_extension'  => ':attribute deve avere solo un\'estensione.',
     'not_in'               => 'Il :attribute selezionato non è valido.',
+    'not_regex'            => 'Il formato di :attribute non è valido.',
     'numeric'              => ':attribute deve essere un numero.',
     'regex'                => 'Il formato di :attribute non è valido.',
     'required'             => 'Il campo :attribute è richiesto.',
@@ -74,35 +100,15 @@ return [
     'timezone'             => ':attribute deve essere una zona valida.',
     'unique'               => ':attribute è già preso.',
     'url'                  => 'Il formato :attribute non è valido.',
+    'uploaded'             => 'Il file non può essere caricato. Il server potrebbe non accettare file di questa dimensione.',
 
-    /*
-    |--------------------------------------------------------------------------
-    | 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 validation lines
     'custom' => [
         'password-confirm' => [
             'required_with' => 'Conferma della password richiesta',
         ],
     ],
 
-    /*
-    |--------------------------------------------------------------------------
-    | 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.
-    |
-    */
-
+    // Custom validation attributes
     'attributes' => [],
-
 ];