mirror of
https://github.com/brunofontes/shareit.git
synced 2025-11-15 07:50:54 -03:00
chore: Update to Laravel 9.0
This commit is contained in:
19
lang/en/auth.php
Normal file
19
lang/en/auth.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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' => 'These credentials do not match our records.',
|
||||
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||
|
||||
];
|
||||
73
lang/en/help.php
Normal file
73
lang/en/help.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/**
|
||||
* Strings from the Help page
|
||||
* They are separeted by help group
|
||||
*/
|
||||
|
||||
return [
|
||||
'helpTitle' => 'Help...',
|
||||
/**
|
||||
* What is it?
|
||||
*/
|
||||
'whatIsIt' => 'What is it?',
|
||||
'siteHelpOthers' => '<p><strong>Share It!</strong> is a site dedicated to help you sharing items with others.</p>
|
||||
<p>But before sharing anything, you just need to understand 2 basic ideas:</p>',
|
||||
'product_item' => '<li><strong>Product</strong> - The category that has some similar items</li>
|
||||
<li><strong>Item</strong> - The item that will be shared. Every item belongs to a <strong>Product</strong></li>',
|
||||
'examples' => "<strong><em>Examples:</em></strong> You can create the following Categories/Items</p>
|
||||
<p>
|
||||
<ul>
|
||||
<li>Books -> Don Quixote, The Hitchhiker's Guide to the Galaxy</li>
|
||||
<li>Matrix Movies -> Matrix 1, Matrix 2, Matrix 3</li>
|
||||
<li>Website Y -> <em>YourAccount</em>*</li>
|
||||
</ul>
|
||||
<p><em>* Please note that many websites does not allow sharing your account. Read the site EULA before include it here.</em></p>",
|
||||
|
||||
/**
|
||||
* Step-by-step
|
||||
*/
|
||||
'step_title' => 'Step-by-step',
|
||||
'step_sharing_subtitle' => 'Sharing a product/item',
|
||||
'step_sharing_steps' => '<li>Go to the <strong><a href="/product">Products</a></strong> page;</li>
|
||||
<li>Include the Product and click on it;</li>
|
||||
<li>Include an Item that belongs to that Product and click on it;</li>
|
||||
<li>Add other people with their subscribed e-mail address.</li>',
|
||||
|
||||
'step_sharedItem_subtitle' => 'Using a shared item',
|
||||
'step_sharedItem_steps' => '<li>Go to the <strong><a href="/home">Home</a></strong> page (tip: add this page as a bookmark);</li>
|
||||
<li>Click on <strong>Take</strong> to take the item you want to use;</li>
|
||||
<li>When you finish using it, click on <strong>Return</strong> button.</li>',
|
||||
|
||||
'step_getAlerted_subtitle' => 'Getting alerted when an item is available',
|
||||
'step_getAlerted_steps' => '<li>Go to the <strong><a href="/home">Home</a></strong> page (tip: add this page as a bookmark);</li>
|
||||
<li>Click on <strong>Alert me</strong> next the taken item;</li>
|
||||
<li>The active user will be alerted you want to use it later. When the person return it, you will be notified.</li>',
|
||||
|
||||
/**
|
||||
* Screens
|
||||
*/
|
||||
'screens_title' => 'Screens',
|
||||
|
||||
/**
|
||||
* Home
|
||||
*/
|
||||
'home_title' => 'Home',
|
||||
'home_body' => '<p>The <strong>Home</strong> is the main screen where you will going to <strong>Take</strong>
|
||||
and <strong>Return</strong> items.</p>
|
||||
<p>It shows all items that were shared with you or that you are sharing, unless you remove yourself from there.</p>
|
||||
<p>If the item has a website, the items name will become a link, so you can just click on it to open.</p>
|
||||
<p>When the item you want is already taken, you are going to see who got it and for how long.
|
||||
So you can identify if the person is still using it or if someone just forgot to return it.</p>
|
||||
<p>You can also ask to be alerted when the item is available. This will notify the active
|
||||
user that you want to use that item. So the person can return it as soon as they finish using it.</p>',
|
||||
|
||||
/**
|
||||
* Products
|
||||
*/
|
||||
'products_title' => 'Products',
|
||||
'products_body' => '<p>The <strong>Products</strong> is the screen to include Products and Items.</p>
|
||||
<p>You can also <strong>add users</strong> to your items from this screen.
|
||||
To be able to do that you just need to select the item.</p>
|
||||
<p class="mb-4">When adding a Product, you can specify a webpage (this is optional).</p>',
|
||||
|
||||
];
|
||||
12
lang/en/home.php
Normal file
12
lang/en/home.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
// /resources/views/home.blade.php
|
||||
|
||||
return [
|
||||
'no_messages' => 'There are no items shared with you yet.',
|
||||
'share_item' => 'Share an item!',
|
||||
'return' => 'Return It',
|
||||
'cancel_alert' => 'Cancel Alert',
|
||||
'alert_me' => 'Alert me',
|
||||
'take' => 'Take It'
|
||||
];
|
||||
40
lang/en/item.php
Normal file
40
lang/en/item.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/**
|
||||
* Strings from Item Delete button menu
|
||||
*/
|
||||
'confirmation' => 'Confirmation...',
|
||||
'confirmDeletion' => 'Would you like to delete the item <strong>:itemname</strong>?',
|
||||
'notAbleRestore' => 'You will not be able to restore it after deletion.',
|
||||
'close' => 'Close',
|
||||
'delete' => 'Delete',
|
||||
|
||||
/**
|
||||
* Strings from Item Edit button menu
|
||||
*/
|
||||
'edit' => 'Edit',
|
||||
'edititem' => 'Edit item',
|
||||
'newname' => 'New name:',
|
||||
|
||||
/**
|
||||
* Strings from the Users box on Item page
|
||||
*/
|
||||
'users' => 'Users:',
|
||||
'noItems' => 'There are no items yet. Include one with the form above.',
|
||||
'addUser' => 'Add user',
|
||||
'email' => 'E-mail: ',
|
||||
'nameDomain' => 'name@domain.com',
|
||||
'insert' => 'Insert',
|
||||
|
||||
/**
|
||||
* String from otherItems.blade.php - Other items box from item page
|
||||
*/
|
||||
'otherItems' => 'Other items from the same product',
|
||||
|
||||
/**
|
||||
* String from item.blade.php
|
||||
*/
|
||||
'back' => 'BACK',
|
||||
|
||||
];
|
||||
19
lang/en/pagination.php
Normal file
19
lang/en/pagination.php
Normal file
@@ -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' => '« Previous',
|
||||
'next' => 'Next »',
|
||||
|
||||
];
|
||||
22
lang/en/passwords.php
Normal file
22
lang/en/passwords.php
Normal file
@@ -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.
|
||||
|
|
||||
*/
|
||||
|
||||
'password' => 'Passwords must be at least six characters and match the confirmation.',
|
||||
'reset' => 'Your password has been reset!',
|
||||
'sent' => 'We have e-mailed your password reset link!',
|
||||
'token' => 'This password reset token is invalid.',
|
||||
'user' => "We can't find a user with that e-mail address.",
|
||||
|
||||
];
|
||||
63
lang/en/product.php
Normal file
63
lang/en/product.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* Strings from the product pages
|
||||
* They are separeted by the file that calls them.
|
||||
* Sometimes, a string is used on another file,
|
||||
* so it will stay at the common segment.
|
||||
*/
|
||||
|
||||
return [
|
||||
/**
|
||||
* COMMON
|
||||
*/
|
||||
'insert' => 'Insert',
|
||||
'close' => 'Close',
|
||||
'' => '',
|
||||
'' => '',
|
||||
|
||||
/**
|
||||
* addItemForm.blade.php
|
||||
*/
|
||||
'item' => 'Item:',
|
||||
'100yearsSolitude' => 'One Hundred Years of Solitude',
|
||||
|
||||
/**
|
||||
* addProductForm.blade.php
|
||||
*/
|
||||
'name' => 'Name:',
|
||||
'book' => 'Book',
|
||||
'url' => 'URL:',
|
||||
'optionalUrlExample' => '(Optional) http://bookwebsite.com',
|
||||
|
||||
/**
|
||||
* deleteButton.blade.php
|
||||
*/
|
||||
'delete' => 'Delete',
|
||||
'confirmation' => 'Confirmation...',
|
||||
'wannaDelete' => "Would you like to delete the product <strong>:productname</strong> and it's items?",
|
||||
'notAbleRestore' => 'You will not be able to restore it after deletion.',
|
||||
|
||||
/**
|
||||
* editButton.blade.php
|
||||
*/
|
||||
'edit' => 'Edit',
|
||||
'editProduct' => 'Edit product',
|
||||
'newName' => 'New name:',
|
||||
'newUrl' => 'New url:',
|
||||
|
||||
/**
|
||||
* index.blade.php
|
||||
*/
|
||||
'products' => 'Products',
|
||||
'noProductsYet' => 'There are no products yet. Include one with the form above.',
|
||||
'addProduct' => 'Add product',
|
||||
'yourItems' => 'Your items',
|
||||
|
||||
/**
|
||||
* show.blade.php
|
||||
*/
|
||||
'items' => 'Items:',
|
||||
'noItemsYet' => 'There are no items yet. Include one with the form above.',
|
||||
'addItem' => 'Add item',
|
||||
'back' => 'BACK',
|
||||
];
|
||||
15
lang/en/test.php
Normal file
15
lang/en/test.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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' => 'These credentials do not match our records.',
|
||||
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
|
||||
];
|
||||
146
lang/en/validation.php
Normal file
146
lang/en/validation.php
Normal file
@@ -0,0 +1,146 @@
|
||||
<?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' => 'The :attribute must be accepted.',
|
||||
'active_url' => 'The :attribute is not a valid URL.',
|
||||
'after' => 'The :attribute must be a date after :date.',
|
||||
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
|
||||
'alpha' => 'The :attribute may only contain letters.',
|
||||
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
|
||||
'alpha_num' => 'The :attribute may only contain letters and numbers.',
|
||||
'array' => 'The :attribute must be an array.',
|
||||
'before' => 'The :attribute must be a date before :date.',
|
||||
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
|
||||
'between' => [
|
||||
'numeric' => 'The :attribute must be between :min and :max.',
|
||||
'file' => 'The :attribute must be between :min and :max kilobytes.',
|
||||
'string' => 'The :attribute must be between :min and :max characters.',
|
||||
'array' => 'The :attribute must have between :min and :max items.',
|
||||
],
|
||||
'boolean' => 'The :attribute field must be true or false.',
|
||||
'confirmed' => 'The :attribute confirmation does not match.',
|
||||
'date' => 'The :attribute is not a valid date.',
|
||||
'date_format' => 'The :attribute does not match the format :format.',
|
||||
'different' => 'The :attribute and :other must be different.',
|
||||
'digits' => 'The :attribute must be :digits digits.',
|
||||
'digits_between' => 'The :attribute must be between :min and :max digits.',
|
||||
'dimensions' => 'The :attribute has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'email' => 'The :attribute must be a valid email address.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'file' => 'The :attribute must be a file.',
|
||||
'filled' => 'The :attribute field must have a value.',
|
||||
'gt' => [
|
||||
'numeric' => 'The :attribute must be greater than :value.',
|
||||
'file' => 'The :attribute must be greater than :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than :value characters.',
|
||||
'array' => 'The :attribute must have more than :value items.',
|
||||
],
|
||||
'gte' => [
|
||||
'numeric' => 'The :attribute must be greater than or equal :value.',
|
||||
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be greater than or equal :value characters.',
|
||||
'array' => 'The :attribute must have :value items or more.',
|
||||
],
|
||||
'image' => 'The :attribute must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'in_array' => 'The :attribute field does not exist in :other.',
|
||||
'integer' => 'The :attribute must be an integer.',
|
||||
'ip' => 'The :attribute must be a valid IP address.',
|
||||
'ipv4' => 'The :attribute must be a valid IPv4 address.',
|
||||
'ipv6' => 'The :attribute must be a valid IPv6 address.',
|
||||
'json' => 'The :attribute must be a valid JSON string.',
|
||||
'lt' => [
|
||||
'numeric' => 'The :attribute must be less than :value.',
|
||||
'file' => 'The :attribute must be less than :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than :value characters.',
|
||||
'array' => 'The :attribute must have less than :value items.',
|
||||
],
|
||||
'lte' => [
|
||||
'numeric' => 'The :attribute must be less than or equal :value.',
|
||||
'file' => 'The :attribute must be less than or equal :value kilobytes.',
|
||||
'string' => 'The :attribute must be less than or equal :value characters.',
|
||||
'array' => 'The :attribute must not have more than :value items.',
|
||||
],
|
||||
'max' => [
|
||||
'numeric' => 'The :attribute may not be greater than :max.',
|
||||
'file' => 'The :attribute may not be greater than :max kilobytes.',
|
||||
'string' => 'The :attribute may not be greater than :max characters.',
|
||||
'array' => 'The :attribute may not have more than :max items.',
|
||||
],
|
||||
'mimes' => 'The :attribute must be a file of type: :values.',
|
||||
'mimetypes' => 'The :attribute must be a file of type: :values.',
|
||||
'min' => [
|
||||
'numeric' => 'The :attribute must be at least :min.',
|
||||
'file' => 'The :attribute must be at least :min kilobytes.',
|
||||
'string' => 'The :attribute must be at least :min characters.',
|
||||
'array' => 'The :attribute must have at least :min items.',
|
||||
],
|
||||
'not_in' => 'The selected :attribute is invalid.',
|
||||
'not_regex' => 'The :attribute format is invalid.',
|
||||
'numeric' => 'The :attribute must be a number.',
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'regex' => 'The :attribute format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values is present.',
|
||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||
'same' => 'The :attribute and :other must match.',
|
||||
'size' => [
|
||||
'numeric' => 'The :attribute must be :size.',
|
||||
'file' => 'The :attribute must be :size kilobytes.',
|
||||
'string' => 'The :attribute must be :size characters.',
|
||||
'array' => 'The :attribute must contain :size items.',
|
||||
],
|
||||
'string' => 'The :attribute must be a string.',
|
||||
'timezone' => 'The :attribute must be a valid zone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'uploaded' => 'The :attribute failed to upload.',
|
||||
'url' => 'The :attribute format is invalid.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| 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 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' => [],
|
||||
|
||||
];
|
||||
10
lang/en/welcome.php
Normal file
10
lang/en/welcome.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
return [
|
||||
'Home' => 'Home',
|
||||
'Login' => 'Login',
|
||||
'Register' => 'Register',
|
||||
'Products' => 'Products',
|
||||
'Help' => 'Help',
|
||||
'copyright' => '© 2018 Bruno Fontes All Rights Reserved',
|
||||
'byAuthor' => 'By Bruno Fontes',
|
||||
];
|
||||
Reference in New Issue
Block a user