Added langs array and fix update lang message

This commit is contained in:
Joseph Cohen
2015-01-14 15:49:38 -06:00
parent 99b5a77543
commit 9e0aa32818
4 changed files with 25 additions and 10 deletions

View File

@@ -6,6 +6,7 @@ use CachetHQ\Cachet\Models\Setting;
use Exception;
use GrahamCampbell\Binput\Facades\Binput;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Lang;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
@@ -168,6 +169,8 @@ class DashSettingsController extends Controller
return Redirect::back()->with('errors', trans('dashboard.settings.edit.failure'));
}
Lang::setLocale(Binput::get('app_locale'));
return Redirect::back()->with('success', trans('dashboard.settings.edit.success'));
}
}