mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-13 20:32:11 +02:00
[ticket/12684] Move all lang keys to cli
PHPBB3-12684
This commit is contained in:
parent
e905c6226d
commit
0ca4484525
@ -309,8 +309,6 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'SHOW_ALL_OPERATIONS' => 'Show all operations',
|
||||
|
||||
'SUCCESS_ADD_USER' => 'Successfully added user %s.',
|
||||
|
||||
'TASKS_NOT_READY' => 'Not ready tasks:',
|
||||
'TASKS_READY' => 'Ready tasks:',
|
||||
'TOTAL_SIZE' => 'Total size',
|
||||
|
@ -124,6 +124,8 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'CLI_THUMBNAIL_NOTHING_TO_GENERATE' => 'No thumbnails to generate.',
|
||||
'CLI_THUMBNAIL_NOTHING_TO_DELETE' => 'No thumbnails to delete.',
|
||||
|
||||
'CLI_USER_ADD_SUCCESS' => 'Successfully added user %s.',
|
||||
));
|
||||
|
||||
// Additional help for commands.
|
||||
|
@ -197,7 +197,7 @@ class add extends \phpbb\console\command\command
|
||||
$this->send_activation_email($user_id, $data);
|
||||
}
|
||||
|
||||
$io->success($this->language->lang('SUCCESS_ADD_USER', $data['username']));
|
||||
$io->success($this->language->lang('CLI_USER_ADD_SUCCESS', $data['username']));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ class phpbb_console_command_user_add_test extends phpbb_database_test_case
|
||||
));
|
||||
|
||||
$this->assertNotEquals(null, $this->get_user_id('foo'));
|
||||
$this->assertContains('SUCCESS_ADD_USER', $command_tester->getDisplay());
|
||||
$this->assertContains('CLI_USER_ADD_SUCCESS', $command_tester->getDisplay());
|
||||
}
|
||||
|
||||
public function test_add_dialog()
|
||||
@ -118,7 +118,7 @@ class phpbb_console_command_user_add_test extends phpbb_database_test_case
|
||||
));
|
||||
|
||||
$this->assertNotEquals(null, $this->get_user_id('bar'));
|
||||
$this->assertContains('SUCCESS_ADD_USER', $command_tester->getDisplay());
|
||||
$this->assertContains('CLI_USER_ADD_SUCCESS', $command_tester->getDisplay());
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user