PageRenderTime 121ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/resources/lang/en/validation.php

https://gitlab.com/rflorat/backend-project
PHP | 296 lines | 228 code | 23 blank | 45 comment | 0 complexity | 5e74e58604dd7398b36b0b77da695811 MD5 | raw file
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Validation Language Lines
  6. |--------------------------------------------------------------------------
  7. |
  8. | The following language lines contain the default error messages used by
  9. | the validator class. Some of these rules have multiple versions such
  10. | as the size rules. Feel free to tweak each of these messages here.
  11. |
  12. */
  13. 'accepted' => 'The :attribute must be accepted.',
  14. 'active_url' => 'The :attribute is not a valid URL.',
  15. 'after' => 'The :attribute must be a date after :date.',
  16. 'alpha' => 'The :attribute may only contain letters.',
  17. 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.',
  18. 'alpha_num' => 'The :attribute may only contain letters and numbers.',
  19. 'array' => 'The :attribute must be an array.',
  20. 'before' => 'The :attribute must be a date before :date.',
  21. 'between' => [
  22. 'numeric' => 'The :attribute must be between :min and :max.',
  23. 'file' => 'The :attribute must be between :min and :max kilobytes.',
  24. 'string' => 'The :attribute must be between :min and :max characters.',
  25. 'array' => 'The :attribute must have between :min and :max items.',
  26. ],
  27. 'boolean' => 'The :attribute field must be true or false.',
  28. 'confirmed' => 'The :attribute confirmation does not match.',
  29. 'date' => 'The :attribute is not a valid date.',
  30. 'date_format' => 'The :attribute does not match the format :format.',
  31. 'different' => 'The :attribute and :other must be different.',
  32. 'digits' => 'The :attribute must be :digits digits.',
  33. 'digits_between' => 'The :attribute must be between :min and :max digits.',
  34. 'email' => 'The :attribute must be a valid email address.',
  35. 'filled' => 'The :attribute field is required.',
  36. 'exists' => 'The selected :attribute is invalid.',
  37. 'image' => 'The :attribute must be an image.',
  38. 'in' => 'The selected :attribute is invalid.',
  39. 'integer' => 'The :attribute must be an integer.',
  40. 'ip' => 'The :attribute must be a valid IP address.',
  41. 'max' => [
  42. 'numeric' => 'The :attribute may not be greater than :max.',
  43. 'file' => 'The :attribute may not be greater than :max kilobytes.',
  44. 'string' => 'The :attribute may not be greater than :max characters.',
  45. 'array' => 'The :attribute may not have more than :max items.',
  46. ],
  47. 'mimes' => 'The :attribute must be a file of type: :values.',
  48. 'min' => [
  49. 'numeric' => 'The :attribute must be at least :min.',
  50. 'file' => 'The :attribute must be at least :min kilobytes.',
  51. 'string' => 'The :attribute must be at least :min characters.',
  52. 'array' => 'The :attribute must have at least :min items.',
  53. ],
  54. 'not_in' => 'The selected :attribute is invalid.',
  55. 'numeric' => 'The :attribute must be a number.',
  56. 'regex' => 'The :attribute format is invalid.',
  57. 'required' => 'The :attribute field is required.',
  58. 'required_if' => 'The :attribute field is required when :other is :value.',
  59. 'required_with' => 'The :attribute field is required when :values is present.',
  60. 'required_with_all' => 'The :attribute field is required when :values is present.',
  61. 'required_without' => 'The :attribute field is required when :values is not present.',
  62. 'required_without_all' => 'The :attribute field is required when none of :values are present.',
  63. 'same' => 'The :attribute and :other must match.',
  64. 'size' => [
  65. 'numeric' => 'The :attribute must be :size.',
  66. 'file' => 'The :attribute must be :size kilobytes.',
  67. 'string' => 'The :attribute must be :size characters.',
  68. 'array' => 'The :attribute must contain :size items.',
  69. ],
  70. 'unique' => 'The :attribute has already been taken.',
  71. 'url' => 'The :attribute format is invalid.',
  72. 'timezone' => 'The :attribute must be a valid zone.',
  73. /*
  74. |--------------------------------------------------------------------------
  75. | Custom Validation Language Lines
  76. |--------------------------------------------------------------------------
  77. |
  78. | Here you may specify custom validation messages for attributes using the
  79. | convention 'attribute.rule' to name the lines. This makes it quick to
  80. | specify a specific custom language line for a given attribute rule.
  81. |
  82. */
  83. 'custom' => [
  84. 'attribute-name' => [
  85. 'rule-name' => 'custom-message',
  86. ],
  87. ],
  88. /*
  89. |--------------------------------------------------------------------------
  90. | Custom Validation Attributes
  91. |--------------------------------------------------------------------------
  92. |
  93. | The following language lines are used to swap attribute place-holders
  94. | with something more reader friendly such as E-Mail Address instead
  95. | of 'email'. This simply helps us make messages a little cleaner.
  96. |
  97. */
  98. 'attributes' => [
  99. // General
  100. 'name' => 'Nome',
  101. 'username' => 'Username',
  102. 'password' => 'Password',
  103. 'age' => 'Age',
  104. 'sex' => 'Sex',
  105. 'gender' => 'Gender',
  106. 'day' => 'Day',
  107. 'month' => 'Month',
  108. 'year' => 'Year',
  109. 'hour' => 'Hour',
  110. 'minute' => 'Minute',
  111. 'second' => 'Second',
  112. 'title' => 'Titolo',
  113. 'website_title' => 'Website title',
  114. 'content' => 'Contenuto',
  115. 'description' => 'Descrizione',
  116. 'excerpt' => 'Excerpt',
  117. 'date' => 'Data',
  118. 'time' => 'Time',
  119. 'available' => 'Available',
  120. 'size' => 'Size',
  121. 'slug' => 'Slug',
  122. 'url' => 'URL',
  123. 'body' => 'Body',
  124. 'meta_keywords' => 'Meta keywords',
  125. 'meta_title' => 'Meta title',
  126. 'meta_description' => 'Meta description',
  127. 'summary' => 'Summary',
  128. 'uri' => 'Uri',
  129. 'online' => 'Online',
  130. 'status' => 'Status',
  131. 'generate' => 'Generate',
  132. 'schedule' => 'Orario',
  133. // Contacts
  134. 'created_at' => 'Created at',
  135. 'email' => 'Email',
  136. 'mr' => 'Mr',
  137. 'mrs' => 'Mrs',
  138. 'website' => 'Website',
  139. 'first_name' => 'First name',
  140. 'last_name' => 'Last name',
  141. 'company' => 'Company',
  142. 'city' => 'Città',
  143. 'country' => 'Country',
  144. 'address' => 'Indirizzo',
  145. 'postcode' => 'Post code',
  146. 'phone' => 'Telefono',
  147. 'mobile' => 'Mobile',
  148. 'fax' => 'Fax',
  149. 'language' => 'Language',
  150. 'message' => 'Message',
  151. 'send' => 'Send',
  152. // Pages
  153. 'rss_enabled' => 'Rss enabled',
  154. 'comments_enabled' => 'Comments enabled',
  155. 'private' => 'Private',
  156. 'is_home' => 'Is home',
  157. 'redirect to first child' => 'Redirect to first child',
  158. 'don’t generate HTML cache' => 'Don’t generate HTML cache',
  159. 'module' => 'Module',
  160. 'template' => 'Template',
  161. 'css' => 'CSS',
  162. 'js' => 'JavaScript',
  163. 'add_to_menu' => 'Add to menu',
  164. // Places
  165. 'latitude' => 'Latitudine',
  166. 'longitude' => 'Longitudine',
  167. 'fax' => 'Fax',
  168. 'info' => 'Info',
  169. 'Show on map' => 'Show on map',
  170. 'category_id' => 'Category',
  171. 'info' => 'Info',
  172. 'place' => 'Luogo',
  173. // Courses
  174. 'video' => 'Video',
  175. 'icon' => 'Icona del corso',
  176. // Partners
  177. 'logo' => 'Logo',
  178. 'homepage' => 'On homepage',
  179. // Events
  180. 'start_date' => 'Start date',
  181. 'end_date' => 'End date',
  182. 'start_time' => 'Start time',
  183. 'end_time' => 'End time',
  184. 'HH:MM' => 'HH:MM',
  185. 'DDMMYYYY' => 'DD.MM.YYYY',
  186. 'DDMMYYYY HHMM' => 'DD.MM.YYYY HH:MM',
  187. 'location' => 'Location',
  188. 'venue' => 'Venue',
  189. 'price' => 'Price',
  190. 'currency' => 'Currency',
  191. // Projects
  192. 'category_id' => 'Category',
  193. // Mots-clés
  194. 'tags' => 'Tags',
  195. 'tag' => 'Tag',
  196. 'uses' => 'Uses',
  197. // Menulinks
  198. 'page_id' => 'Page',
  199. 'menu_id' => 'Menu',
  200. 'module_name' => 'Module name',
  201. 'target' => 'Target',
  202. 'class' => 'Class',
  203. 'icon_class' => 'Icon class',
  204. 'restricted_to' => 'Restricted to',
  205. 'link_type' => 'Link type',
  206. 'has_categories' => 'Show categories',
  207. 'side' => 'Side',
  208. 'Front office' => 'Front office',
  209. 'Back office' => 'Back office',
  210. // Users
  211. 'first_name' => 'First name',
  212. 'last_name' => 'Last name',
  213. 'groups' => 'Groups',
  214. 'email' => 'Email',
  215. 'password' => 'Password',
  216. 'password_confirmation' => 'Password confirmation',
  217. 'reset password' => 'Reset password',
  218. 'register' => 'Register',
  219. 'Change password' => 'Change password',
  220. 'save' => 'Save',
  221. 'save and exit' => 'Save and exit',
  222. 'exit' => 'Exit',
  223. 'log in' => 'Log in',
  224. 'modify' => 'Modify',
  225. 'permissions' => 'Permissions',
  226. 'superuser' => 'Superuser',
  227. 'activated' => 'Activated',
  228. 'getMergedPermissions' => 'Get merged permissions',
  229. // Settings
  230. 'webmaster_email' => 'Webmaster email',
  231. 'google_analytics_code' => 'Google Analytics Tracking Id',
  232. 'lang_chooser' => 'Lang chooser',
  233. 'welcome_message' => 'Administration welcome message',
  234. 'admin_locale' => 'Administration language',
  235. 'auth_public' => 'Authenticate to view website',
  236. 'registration allowed' => 'Registration allowed',
  237. // Galleries
  238. 'galleries' => 'Galleries',
  239. // Translations
  240. 'key' => 'Key',
  241. 'translations' => 'Translations',
  242. // Files
  243. 'alt_attribute' => 'Alt attribute',
  244. 'keywords' => 'Keywords',
  245. 'folder_id' => 'Folder',
  246. 'user_id' => 'User',
  247. 'type' => 'Type',
  248. 'position' => 'Position',
  249. 'name' => 'Nome',
  250. 'path' => 'Path',
  251. 'files' => 'Files',
  252. 'filename' => 'Filename',
  253. 'extension' => 'Extension',
  254. 'mimetype' => 'Mimetype',
  255. 'width' => 'Width',
  256. 'height' => 'Height',
  257. 'download_count' => 'Download_count',
  258. 'file information' => 'File information',
  259. 'image' => 'Immage',
  260. 'replace image' => 'Replace image',
  261. 'file' => 'File',
  262. 'replace file' => 'Replace file',
  263. 'max' => 'Maximum',
  264. 'max :size MB' => 'Maximum :size MB',
  265. 'KB' => 'KB',
  266. 'MB' => 'MB',
  267. 'size (px)' => 'Size (px)',
  268. 'preview' => 'Preview',
  269. 'Submit' => 'Submit',
  270. 'Reset' => 'Reset',
  271. 'Cancel' => 'Cancel',
  272. ],
  273. ];