Commit fc45b90e authored by alexpott's avatar alexpott

Issue #2572599 by stefan.r, dawehner, pwolanin, amateescu: Replace...

Issue #2572599 by stefan.r, dawehner, pwolanin, amateescu: Replace !placeholder with @placeholder in a few remaining places
parent b89752c1
...@@ -549,16 +549,22 @@ function drupal_verify_profile($install_state) { ...@@ -549,16 +549,22 @@ function drupal_verify_profile($install_state) {
$requirements = array(); $requirements = array();
if (count($missing_modules)) { if ($missing_modules) {
$modules = array(); $build = [
'#theme' => 'item_list',
'#context' => ['list_style' => 'comma-list'],
];
foreach ($missing_modules as $module) { foreach ($missing_modules as $module) {
$modules[] = '<span class="admin-missing">' . Unicode::ucfirst($module) . '</span>'; $build['#items'][] = array('#markup' => '<span class="admin-missing">' . Unicode::ucfirst($module) . '</span>');
} }
$modules_list = \Drupal::service('renderer')->renderPlain($build);
$requirements['required_modules'] = array( $requirements['required_modules'] = array(
'title' => t('Required modules'), 'title' => t('Required modules'),
'value' => t('Required modules not found.'), 'value' => t('Required modules not found.'),
'severity' => REQUIREMENT_ERROR, 'severity' => REQUIREMENT_ERROR,
'description' => t('The following modules are required but were not found. Move them into the appropriate modules subdirectory, such as <em>/modules</em>. Missing modules: !modules', array('!modules' => implode(', ', $modules))), 'description' => t('The following modules are required but were not found. Move them into the appropriate modules subdirectory, such as <em>/modules</em>. Missing modules: @modules', array('@modules' => $modules_list)),
); );
} }
return $requirements; return $requirements;
......
...@@ -141,10 +141,10 @@ function settingsForm(array $form, FormStateInterface $form_state) { ...@@ -141,10 +141,10 @@ function settingsForm(array $form, FormStateInterface $form_state) {
public function settingsSummary() { public function settingsSummary() {
$summary = array(); $summary = array();
$summary[] = t('Date part order: !order', array('!order' => $this->getSetting('date_order'))); $summary[] = t('Date part order: @order', array('@order' => $this->getSetting('date_order')));
if ($this->getFieldSetting('datetime_type') == 'datetime') { if ($this->getFieldSetting('datetime_type') == 'datetime') {
$summary[] = t('Time type: !time_type', array('!time_type' => $this->getSetting('time_type'))); $summary[] = t('Time type: @time_type', array('@time_type' => $this->getSetting('time_type')));
$summary[] = t('Time increments: !increment', array('!increment' => $this->getSetting('increment'))); $summary[] = t('Time increments: @increment', array('@increment' => $this->getSetting('increment')));
} }
return $summary; return $summary;
......
...@@ -26,7 +26,7 @@ public function getDerivativeDefinitions($base_plugin_definition) { ...@@ -26,7 +26,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
$configurable_types = $language_manager->getLanguageTypes(); $configurable_types = $language_manager->getLanguageTypes();
foreach ($configurable_types as $type) { foreach ($configurable_types as $type) {
$this->derivatives[$type] = $base_plugin_definition; $this->derivatives[$type] = $base_plugin_definition;
$this->derivatives[$type]['admin_label'] = t('Language switcher (!type)', array('!type' => $info[$type]['name'])); $this->derivatives[$type]['admin_label'] = t('Language switcher (@type)', array('@type' => $info[$type]['name']));
} }
// If there is just one configurable type then change the title of the // If there is just one configurable type then change the title of the
// block. // block.
......
...@@ -148,8 +148,8 @@ public function __construct(MigrationInterface $migration, MigrateMessageInterfa ...@@ -148,8 +148,8 @@ public function __construct(MigrationInterface $migration, MigrateMessageInterfa
break; break;
default: default:
$limit = PHP_INT_MAX; $limit = PHP_INT_MAX;
$this->message->display($this->t('Invalid PHP memory_limit !limit, setting to unlimited.', $this->message->display($this->t('Invalid PHP memory_limit @limit, setting to unlimited.',
array('!limit' => $limit))); array('@limit' => $limit)));
} }
} }
$this->memoryLimit = $limit; $this->memoryLimit = $limit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment