diff --git a/classes/admin.php b/classes/admin.php index e22be6b7..2416193b 100644 --- a/classes/admin.php +++ b/classes/admin.php @@ -179,7 +179,7 @@ class Admin /** @var Grav $grav */ $grav = $this->grav; - $this->setMessage($this->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN'), 'info'); + $this->setMessage($this->grav['language']->translate('PLUGIN_ADMIN.LOGIN_LOGGED_IN', [$this->user->language]), 'info'); $redirect_route = $this->uri->route(); $grav->redirect($redirect_route);