Issue #1027074 by blackdog, alansaviolobo, Sutharsan: Add string context to Enabled & Disabled in Shortcut module
parent
f4a817a46c
commit
cf5234a93f
|
@ -215,7 +215,7 @@ class BlockListBuilder extends ConfigEntityListBuilder implements FormInterface
|
|||
),
|
||||
);
|
||||
$form['blocks'][$region]['title'] = array(
|
||||
'#markup' => $region != BlockInterface::BLOCK_REGION_NONE ? $title : t('Disabled'),
|
||||
'#markup' => $region != BlockInterface::BLOCK_REGION_NONE ? $title : t('Disabled', array(), array('context' => 'Plural')),
|
||||
'#wrapper_attributes' => array(
|
||||
'colspan' => 5,
|
||||
),
|
||||
|
|
|
@ -149,7 +149,7 @@ abstract class DisplayOverviewBase extends FormBase {
|
|||
'message' => $this->t('No field is displayed.')
|
||||
),
|
||||
'hidden' => array(
|
||||
'title' => $this->t('Disabled'),
|
||||
'title' => $this->t('Disabled', array(), array('context' => 'Plural')),
|
||||
'message' => $this->t('No field is hidden.')
|
||||
),
|
||||
);
|
||||
|
|
|
@ -197,8 +197,8 @@ class ViewListBuilder extends ConfigEntityListBuilder {
|
|||
),
|
||||
);
|
||||
|
||||
$list['enabled']['heading']['#markup'] = '<h2>' . $this->t('Enabled') . '</h2>';
|
||||
$list['disabled']['heading']['#markup'] = '<h2>' . $this->t('Disabled') . '</h2>';
|
||||
$list['enabled']['heading']['#markup'] = '<h2>' . $this->t('Enabled', array(), array('context' => 'Plural')) . '</h2>';
|
||||
$list['disabled']['heading']['#markup'] = '<h2>' . $this->t('Disabled', array(), array('context' => 'Plural')) . '</h2>';
|
||||
foreach (array('enabled', 'disabled') as $status) {
|
||||
$list[$status]['#type'] = 'container';
|
||||
$list[$status]['#attributes'] = array('class' => array('views-list-section', $status));
|
||||
|
|
Loading…
Reference in New Issue