From 36173eb47d1c48ba6225f7c44caef79eabd4b8f0 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 5 Mar 2017 14:10:55 +0000 Subject: [PATCH] Removed extension from translation script link Also fixed bug causing EN translation backup to not be passed to javascript translation system. Closes #328 --- app/Http/Controllers/HomeController.php | 13 +++++-------- resources/views/base.blade.php | 2 +- routes/web.php | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index f4706a5c4..7892fe8ae 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -1,10 +1,7 @@ - trans('common', [], null, 'en'), - 'components' => trans('components', [], null, 'en'), - 'entities' => trans('entities', [], null, 'en'), - 'errors' => trans('errors', [], null, 'en') + 'common' => trans('common', [], 'en'), + 'components' => trans('components', [], 'en'), + 'entities' => trans('entities', [], 'en'), + 'errors' => trans('errors', [], 'en') ]; $translations = array_replace_recursive($enTrans, $translations); } diff --git a/resources/views/base.blade.php b/resources/views/base.blade.php index bb00ce19e..4287014c2 100644 --- a/resources/views/base.blade.php +++ b/resources/views/base.blade.php @@ -17,7 +17,7 @@ - + @yield('head') diff --git a/routes/web.php b/routes/web.php index 4bd2b4a06..8259a633b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,6 +1,6 @@ 'auth'], function () {