thrownew\Exception(dt('Existing config directory @dir not found',['@dir'=>$existing_config_dir]));
thrownew\Exception(dt('Не найден существующий раздел конфигурации @dir',['@dir'=>$existing_config_dir]));
}
}
$this->logger()->info(dt('Installing from existing config at @dir',['@dir'=>$existing_config_dir]));
$this->logger()->info(dt('Установка из существующего раздела конфигурации @dir',['@dir'=>$existing_config_dir]));
}
}
$settings=[
$settings=[
...
@@ -139,7 +139,7 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
...
@@ -139,7 +139,7 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
$current=$value;
$current=$value;
}
}
$msg='Starting Drupal installation. This takes a while.';
$msg='Установка ДАР CMS. Это может занять некоторое время...';
$this->logger()->notice(dt($msg));
$this->logger()->notice(dt($msg));
// Define some functions which alter away the install_finished task.
// Define some functions which alter away the install_finished task.
...
@@ -158,9 +158,9 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
...
@@ -158,9 +158,9 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
}
}
if(empty($options['account-pass'])){
if(empty($options['account-pass'])){
$this->logger()->success(dt('Installation complete. User name: @name User password: @pass',['@name'=>$options['account-name'],'@pass'=>$account_pass]));
$this->logger()->success(dt('становка завершена. Имя пользователя: @name Пароль: @pass. Для входа в систему воспользуйтесь ссылкой http://ваш-домен/user/login',['@name'=>$options['account-name'],'@pass'=>$account_pass]));
$this->logger()->warning(dt('Only lowercase sites-subdir are valid. Switching to !lower.',['!lower'=>$lower]));
$this->logger()->warning(dt('Для значения sites-subdir важно указывать только строчные буквы. Будет использовано значение !lower.',['!lower'=>$lower]));
thrownew\Exception(dt('Could not determine database connection parameters. Pass --db-url option.'));
thrownew\Exception(dt('Не получается подключиться по указанным доступам к базе данных. Укажите --db-url параметр.'));
}
}
}
}
}
}
...
@@ -307,7 +307,7 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
...
@@ -307,7 +307,7 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
}
}
if(!$dir){
if(!$dir){
thrownew\Exception(dt('Could not determine target sites directory for site to install. Use --sites-subdir to specify.'));
thrownew\Exception(dt('Система не может обануржить раздел sites для записи, установка не возможна. Используйте --sites-subdir параметр, чтобы указать путь до sites раздела.'));
}
}
$sites_subdir=Path::join('sites',$dir);
$sites_subdir=Path::join('sites',$dir);
...
@@ -319,10 +319,10 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
...
@@ -319,10 +319,10 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
$msg=[];
$msg=[];
if(!file_exists($settingsfile)){
if(!file_exists($settingsfile)){
$msg[]=dt('Create a @settingsfile file',['@settingsfile'=>$settingsfile]);
@@ -330,40 +330,40 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
...
@@ -330,40 +330,40 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
if(!$program_exists){
if(!$program_exists){
$this->logger()->warning(dt('Program @program not found. Proceed if you have already created or emptied the Drupal database.',['@program'=>$program]));
$this->logger()->warning(dt('Program @program not found. Proceed if you have already created or emptied the Drupal database.',['@program'=>$program]));
}elseif($sql->dbExists()){
}elseif($sql->dbExists()){
$msg[]=dt("DROP all tables in your '@db' database.",['@db'=>$db_spec['database']]);
$msg[]=dt("удалить все таблицы в базе данных '@db'.",['@db'=>$db_spec['database']]);
}else{
}else{
$msg[]=dt("CREATE the '@db' database.",['@db'=>$db_spec['database']]);
$msg[]=dt("оздать базу данных '@db'.",['@db'=>$db_spec['database']]);
}
}
if($msg){
if($msg){
$this->io()->text(dt('You are about to:'));
$this->io()->text(dt('Вы собираетесь:'));
$this->io()->listing($msg);
$this->io()->listing($msg);
}
}
if(!$this->io()->confirm(dt('Do you want to continue?'))){
$this->logger()->warning(dt('Failed to drop or create the database. Do it yourself before installing. @error',['@error'=>$sql->getProcess()->getErrorOutput()]));
$this->logger()->warning(dt('Не удалось создать базу данных, ошибка: @error',['@error'=>$sql->getProcess()->getErrorOutput()]));
}
}
}
}
...
@@ -459,14 +459,14 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
...
@@ -459,14 +459,14 @@ class SiteInstallCommands extends DrushCommands implements SiteAliasManagerAware
thrownew\Exception(dt('The config source directory @config does not exist.',['@config'=>$directory]));
thrownew\Exception(dt('Раздел конфигурации @config не найден.',['@config'=>$directory]));
}
}
if(!is_dir($directory)){
if(!is_dir($directory)){
thrownew\Exception(dt('The config source @config is not a directory.',['@config'=>$directory]));
thrownew\Exception(dt('Раздел конфигурации @config не является разделом.',['@config'=>$directory]));
}
}
// Skip config import with a warning if specified config dir is empty.
// Skip config import with a warning if specified config dir is empty.
if(!$this->hasConfigFiles($directory)){
if(!$this->hasConfigFiles($directory)){
$this->logger()->warning(dt('Configuration import directory @config does not contain any configuration; will skip import.',['@config'=>$directory]));
$this->logger()->warning(dt('Раздел для импорта конфигурации @config не содержит никаких конфигурационных файлов; импорт конфигурации не будет осуществлен.',['@config'=>$directory]));