diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-20 12:58:49 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-23 11:19:32 +0300 |
commit | c8911608091e853c10f7260f53c9077f3eff644a (patch) | |
tree | 74d6ef160b89343a75d58d8bea493cff05fb003f /lib | |
parent | 0d100363d69d052470a28cd5225d595a19338080 (diff) |
Translate error messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/SettingsController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index fc3b9a6..8b7f05a 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -94,7 +94,7 @@ class SettingsController extends Controller { if ($user === null) { return new JSONResponse( [ - 'message' => sprintf('No user found for %s', $userId), + 'message' => $this->l->t('User not found'), ], Http::STATUS_NOT_FOUND ); @@ -113,7 +113,7 @@ class SettingsController extends Controller { if ($user->getLastLogin() === 0) { return new JSONResponse( [ - 'message' => sprintf('Can\'t impersonate %s, user has to be logged in at least once.', $userId), + 'message' => $this->l->t('Can not impersonate the user because it was never logged in.'), ], Http::STATUS_FORBIDDEN ); |