Added PTB Translation of emails and some pages

Now the main page, item page and e-mails are translated
into Brazilian Portuguese
This commit is contained in:
2018-09-27 13:00:03 -03:00
parent 1ff8a4f492
commit 63ef369e16
28 changed files with 476 additions and 66 deletions

View File

@@ -13,7 +13,11 @@ class TakeController extends Controller
{
$item = User::loggedIn()->items()->find(request('item'));
if ($item->used_by) {
return back()->withErrors("This item is already taken");
return back()->withErrors(
\Lang::getFromJson(
"This item is already taken"
)
);
}
$item->used_by = \Auth::id();
$item->save();