]> source.dussan.org Git - nextcloud-server.git/commitdiff
Improve wording of error messages
authorMorris Jobke <hey@morrisjobke.de>
Tue, 11 Oct 2016 09:52:49 +0000 (11:52 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Sat, 29 Apr 2017 03:59:09 +0000 (00:59 -0300)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
settings/Controller/UsersController.php
settings/js/users/users.js
tests/Settings/Controller/UsersControllerTest.php

index 7ce4355aa0b576d779e96f898cec36bd71a72636..411269a4351044ad2d58623c02e8e57533c986e5 100644 (file)
@@ -530,7 +530,7 @@ class UsersController extends Controller {
                                array(
                                        'status' => 'error',
                                        'data' => array(
-                                               'message' => (string)$this->l10n->t('Unable to disable user.')
+                                               'message' => (string)$this->l10n->t('Error while disabling user.')
                                        )
                                ),
                                Http::STATUS_FORBIDDEN
@@ -565,7 +565,7 @@ class UsersController extends Controller {
                                array(
                                        'status' => 'error',
                                        'data' => array(
-                                               'message' => (string)$this->l10n->t('Unable to disable user.')
+                                               'message' => (string)$this->l10n->t('Error while disabling user.')
                                        )
                                )
                        );
@@ -587,7 +587,7 @@ class UsersController extends Controller {
                                array(
                                        'status' => 'error',
                                        'data' => array(
-                                               'message' => (string)$this->l10n->t('Unable to enable user.')
+                                               'message' => (string)$this->l10n->t('Error while enabling user.')
                                        )
                                ),
                                Http::STATUS_FORBIDDEN
@@ -622,7 +622,7 @@ class UsersController extends Controller {
                                array(
                                        'status' => 'error',
                                        'data' => array(
-                                               'message' => (string)$this->l10n->t('Unable to enable user.')
+                                               'message' => (string)$this->l10n->t('Error while enabling user.')
                                        )
                                )
                        );
index 117c61b7dcbcef2695b762d2a1617c9643d8d12e..2a0b0c09a92b6c02071fef00534e1ac5e45023e6 100644 (file)
@@ -946,7 +946,7 @@ $(document).ready(function () {
                                                GroupList.setUserCount(GroupList.getGroupLI('_disabledUsers'), count+1);
                                        }
                                } else {
-                                       OC.dialogs.alert(result.data.message, t('settings', 'Unable to change status of {user}', {user: uid}));
+                                       OC.dialogs.alert(result.data.message, t('settings', 'Error while changing status of {user}', {user: uid}));
                                }
                        }
                );
index 5cae52ece70edb9fb8159672a11af59ea8c8a896..b6eba294d3629d8a0deacadf712a354ed6b40ee0 100644 (file)
@@ -2455,7 +2455,7 @@ class UsersControllerTest extends \Test\TestCase {
                        [
                                'status' => 'error',
                                'data' => [
-                                       'message' => 'Unable to disable user.',
+                                       'message' => 'Error while disabling user.',
                                ],
                        ],
                        Http::STATUS_FORBIDDEN
@@ -2530,7 +2530,7 @@ class UsersControllerTest extends \Test\TestCase {
                        [
                                'status' => 'error',
                                'data' => [
-                                       'message' => 'Unable to disable user.',
+                                       'message' => 'Error while disabling user.',
                                ],
                        ]
                );
@@ -2567,7 +2567,7 @@ class UsersControllerTest extends \Test\TestCase {
                        [
                                'status' => 'error',
                                'data' => [
-                                       'message' => 'Unable to disable user.',
+                                       'message' => 'Error while disabling user.',
                                ],
                        ]
                );
@@ -2669,7 +2669,7 @@ class UsersControllerTest extends \Test\TestCase {
                        [
                                'status' => 'error',
                                'data' => [
-                                       'message' => 'Unable to enable user.',
+                                       'message' => 'Error while enabling user.',
                                ],
                        ],
                        Http::STATUS_FORBIDDEN
@@ -2744,7 +2744,7 @@ class UsersControllerTest extends \Test\TestCase {
                        [
                                'status' => 'error',
                                'data' => [
-                                       'message' => 'Unable to enable user.',
+                                       'message' => 'Error while enabling user.',
                                ],
                        ]
                );
@@ -2781,7 +2781,7 @@ class UsersControllerTest extends \Test\TestCase {
                        [
                                'status' => 'error',
                                'data' => [
-                                       'message' => 'Unable to enable user.',
+                                       'message' => 'Error while enabling user.',
                                ],
                        ]
                );