Removed extension from translation script link
Also fixed bug causing EN translation backup to not be passed to javascript translation system. Closes #328
This commit is contained in:
parent
bcafa73faf
commit
36173eb47d
|
@ -1,10 +1,7 @@
|
||||||
<?php
|
<?php namespace BookStack\Http\Controllers;
|
||||||
|
|
||||||
namespace BookStack\Http\Controllers;
|
|
||||||
|
|
||||||
use Activity;
|
use Activity;
|
||||||
use BookStack\Repos\EntityRepo;
|
use BookStack\Repos\EntityRepo;
|
||||||
use BookStack\Http\Requests;
|
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
use Views;
|
use Views;
|
||||||
|
|
||||||
|
@ -63,10 +60,10 @@ class HomeController extends Controller
|
||||||
];
|
];
|
||||||
if ($locale !== 'en') {
|
if ($locale !== 'en') {
|
||||||
$enTrans = [
|
$enTrans = [
|
||||||
'common' => trans('common', [], null, 'en'),
|
'common' => trans('common', [], 'en'),
|
||||||
'components' => trans('components', [], null, 'en'),
|
'components' => trans('components', [], 'en'),
|
||||||
'entities' => trans('entities', [], null, 'en'),
|
'entities' => trans('entities', [], 'en'),
|
||||||
'errors' => trans('errors', [], null, 'en')
|
'errors' => trans('errors', [], 'en')
|
||||||
];
|
];
|
||||||
$translations = array_replace_recursive($enTrans, $translations);
|
$translations = array_replace_recursive($enTrans, $translations);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="{{ baseUrl('/libs/jquery/jquery.min.js?version=2.1.4') }}"></script>
|
<script src="{{ baseUrl('/libs/jquery/jquery.min.js?version=2.1.4') }}"></script>
|
||||||
<script src="{{ baseUrl('/libs/jquery/jquery-ui.min.js?version=1.11.4') }}"></script>
|
<script src="{{ baseUrl('/libs/jquery/jquery-ui.min.js?version=1.11.4') }}"></script>
|
||||||
<script src="{{ baseUrl('/translations.js') }}"></script>
|
<script src="{{ baseUrl('/translations') }}"></script>
|
||||||
|
|
||||||
@yield('head')
|
@yield('head')
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
Route::get('/translations.js', 'HomeController@getTranslations');
|
Route::get('/translations', 'HomeController@getTranslations');
|
||||||
|
|
||||||
// Authenticated routes...
|
// Authenticated routes...
|
||||||
Route::group(['middleware' => 'auth'], function () {
|
Route::group(['middleware' => 'auth'], function () {
|
||||||
|
|
Loading…
Reference in New Issue