Commit cf5234a9 authored by alexpott's avatar alexpott
Browse files

Issue #1027074 by blackdog, alansaviolobo, Sutharsan: Add string context to...

Issue #1027074 by blackdog, alansaviolobo, Sutharsan: Add string context to Enabled & Disabled in Shortcut module
parent f4a817a4
......@@ -215,7 +215,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
),
);
$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 @@ public function getRegions() {
'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 @@ public function render() {
),
);
$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));
......
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