aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/User
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-09-21 17:44:32 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2024-02-13 21:06:30 +0100
commit839ddaa3547bb0042b6225edf2df7bff1831cdd5 (patch)
tree353d49dd856548ca243bf1b9e15274372bbc518b /core/Command/User
parentb63abdae8c1708693addf1dc3b2f862131e0299d (diff)
downloadnextcloud-server-839ddaa3547bb0042b6225edf2df7bff1831cdd5.tar.gz
nextcloud-server-839ddaa3547bb0042b6225edf2df7bff1831cdd5.zip
feat: rename users to account or person
Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'core/Command/User')
-rw-r--r--core/Command/User/Add.php16
-rw-r--r--core/Command/User/AuthTokens/Add.php8
-rw-r--r--core/Command/User/LastSeen.php2
-rw-r--r--core/Command/User/Report.php2
-rw-r--r--core/Command/User/ResetPassword.php2
-rw-r--r--core/Command/User/Setting.php2
6 files changed, 16 insertions, 16 deletions
diff --git a/core/Command/User/Add.php b/core/Command/User/Add.php
index 5e8ab92070d..83bc08a54ab 100644
--- a/core/Command/User/Add.php
+++ b/core/Command/User/Add.php
@@ -49,11 +49,11 @@ class Add extends Command {
protected function configure() {
$this
->setName('user:add')
- ->setDescription('adds a user')
+ ->setDescription('adds an account')
->addArgument(
'uid',
InputArgument::REQUIRED,
- 'User ID used to login (must only contain a-z, A-Z, 0-9, -, _ and @)'
+ 'Account ID used to login (must only contain a-z, A-Z, 0-9, -, _ and @)'
)
->addOption(
'password-from-env',
@@ -65,20 +65,20 @@ class Add extends Command {
'display-name',
null,
InputOption::VALUE_OPTIONAL,
- 'User name used in the web UI (can contain any characters)'
+ 'Account name used in the web UI (can contain any characters)'
)
->addOption(
'group',
'g',
InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- 'groups the user should be added to (The group will be created if it does not exist)'
+ 'groups the account should be added to (The group will be created if it does not exist)'
);
}
protected function execute(InputInterface $input, OutputInterface $output): int {
$uid = $input->getArgument('uid');
if ($this->userManager->userExists($uid)) {
- $output->writeln('<error>The user "' . $uid . '" already exists.</error>');
+ $output->writeln('<error>The account "' . $uid . '" already exists.</error>');
return 1;
}
@@ -121,9 +121,9 @@ class Add extends Command {
if ($user instanceof IUser) {
- $output->writeln('<info>The user "' . $user->getUID() . '" was created successfully</info>');
+ $output->writeln('<info>The account "' . $user->getUID() . '" was created successfully</info>');
} else {
- $output->writeln('<error>An error occurred while creating the user</error>');
+ $output->writeln('<error>An error occurred while creating the account</error>');
return 1;
}
@@ -151,7 +151,7 @@ class Add extends Command {
}
if ($group instanceof IGroup) {
$group->addUser($user);
- $output->writeln('User "' . $user->getUID() . '" added to group "' . $group->getGID() . '"');
+ $output->writeln('Account "' . $user->getUID() . '" added to group "' . $group->getGID() . '"');
}
}
return 0;
diff --git a/core/Command/User/AuthTokens/Add.php b/core/Command/User/AuthTokens/Add.php
index e067c069c79..ac18b45f176 100644
--- a/core/Command/User/AuthTokens/Add.php
+++ b/core/Command/User/AuthTokens/Add.php
@@ -54,11 +54,11 @@ class Add extends Command {
$this
->setName('user:auth-tokens:add')
->setAliases(['user:add-app-password'])
- ->setDescription('Add app password for the named user')
+ ->setDescription('Add app password for the named account')
->addArgument(
'user',
InputArgument::REQUIRED,
- 'Username to add app password for'
+ 'Account name to add app password for'
)
->addOption(
'password-from-env',
@@ -75,7 +75,7 @@ class Add extends Command {
$user = $this->userManager->get($username);
if (is_null($user)) {
- $output->writeln('<error>User does not exist</error>');
+ $output->writeln('<error>Account does not exist</error>');
return 1;
}
@@ -89,7 +89,7 @@ class Add extends Command {
/** @var QuestionHelper $helper */
$helper = $this->getHelper('question');
- $question = new Question('Enter the user password: ');
+ $question = new Question('Enter the account password: ');
$question->setHidden(true);
/** @var null|string $password */
$password = $helper->ask($input, $output, $question);
diff --git a/core/Command/User/LastSeen.php b/core/Command/User/LastSeen.php
index 90ddb6992d9..5c6d44a2245 100644
--- a/core/Command/User/LastSeen.php
+++ b/core/Command/User/LastSeen.php
@@ -60,7 +60,7 @@ class LastSeen extends Base {
$lastLogin = $user->getLastLogin();
if ($lastLogin === 0) {
- $output->writeln('User ' . $user->getUID() .
+ $output->writeln('Account ' . $user->getUID() .
' has never logged in, yet.');
} else {
$date = new \DateTime();
diff --git a/core/Command/User/Report.php b/core/Command/User/Report.php
index 74ab5c29cc1..b54ec2b0308 100644
--- a/core/Command/User/Report.php
+++ b/core/Command/User/Report.php
@@ -63,7 +63,7 @@ class Report extends Command {
protected function execute(InputInterface $input, OutputInterface $output): int {
$table = new Table($output);
- $table->setHeaders(['User Report', '']);
+ $table->setHeaders(['Account Report', '']);
$userCountArray = $this->countUsers();
$total = 0;
if (!empty($userCountArray)) {
diff --git a/core/Command/User/ResetPassword.php b/core/Command/User/ResetPassword.php
index 6719f893be3..926b913a021 100644
--- a/core/Command/User/ResetPassword.php
+++ b/core/Command/User/ResetPassword.php
@@ -55,7 +55,7 @@ class ResetPassword extends Base {
->addArgument(
'user',
InputArgument::REQUIRED,
- 'Username to reset password'
+ 'Account name to reset password'
)
->addOption(
'password-from-env',
diff --git a/core/Command/User/Setting.php b/core/Command/User/Setting.php
index 8a8736fdaa2..9134d174418 100644
--- a/core/Command/User/Setting.php
+++ b/core/Command/User/Setting.php
@@ -51,7 +51,7 @@ class Setting extends Base {
->addArgument(
'uid',
InputArgument::REQUIRED,
- 'User ID used to login'
+ 'Account ID used to login'
)
->addArgument(
'app',