[ticket/14052] Translate installer commands

PHPBB3-14052
This commit is contained in:
Tristan Darricau 2015-07-27 11:40:12 +02:00
parent a0258ae25c
commit 6499a8a6c0
3 changed files with 9 additions and 2 deletions

View file

@ -12,6 +12,7 @@ services:
- @language - @language
- @installer.helper.iohandler_factory - @installer.helper.iohandler_factory
- @installer.installer.install - @installer.installer.install
- @installer.helper.install_helper
tags: tags:
- { name: console.installer.command } - { name: console.installer.command }

View file

@ -12,8 +12,6 @@
* *
*/ */
use Symfony\Component\Console\Input\ArgvInput;
if (php_sapi_name() !== 'cli') if (php_sapi_name() !== 'cli')
{ {
echo 'This program must be run from the command line.' . PHP_EOL; echo 'This program must be run from the command line.' . PHP_EOL;

View file

@ -305,3 +305,11 @@ $lang = array_merge($lang, array(
'INSTALLER_CONFIG_NOT_WRITABLE' => 'The installer config file is not writable.', 'INSTALLER_CONFIG_NOT_WRITABLE' => 'The installer config file is not writable.',
)); ));
// CLI messages
$lang = array_merge($lang, array(
'CLI_INSTALL_BOARD' => 'Install phpBB',
'CLI_INSTALL_SHOW_CONFIG' => 'Show the configuration which will be used',
'CLI_INSTALL_VALIDATE_CONFIG' => 'Validate a configuration file',
'CLI_CONFIG_FILE' => 'Config file to use',
));