Issue #1027074 by blackdog, alansaviolobo, Sutharsan: Add string context to Enabled & Disabled in Shortcut module

8.0.x
Alex Pott 2015-01-10 14:47:56 +00:00
parent f4a817a46c
commit cf5234a93f
3 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,7 @@ class BlockListBuilder extends ConfigEntityListBuilder implements FormInterface
), ),
); );
$form['blocks'][$region]['title'] = array( $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( '#wrapper_attributes' => array(
'colspan' => 5, 'colspan' => 5,
), ),

View File

@ -149,7 +149,7 @@ abstract class DisplayOverviewBase extends FormBase {
'message' => $this->t('No field is displayed.') 'message' => $this->t('No field is displayed.')
), ),
'hidden' => array( 'hidden' => array(
'title' => $this->t('Disabled'), 'title' => $this->t('Disabled', array(), array('context' => 'Plural')),
'message' => $this->t('No field is hidden.') 'message' => $this->t('No field is hidden.')
), ),
); );

View File

@ -197,8 +197,8 @@ class ViewListBuilder extends ConfigEntityListBuilder {
), ),
); );
$list['enabled']['heading']['#markup'] = '<h2>' . $this->t('Enabled') . '</h2>'; $list['enabled']['heading']['#markup'] = '<h2>' . $this->t('Enabled', array(), array('context' => 'Plural')) . '</h2>';
$list['disabled']['heading']['#markup'] = '<h2>' . $this->t('Disabled') . '</h2>'; $list['disabled']['heading']['#markup'] = '<h2>' . $this->t('Disabled', array(), array('context' => 'Plural')) . '</h2>';
foreach (array('enabled', 'disabled') as $status) { foreach (array('enabled', 'disabled') as $status) {
$list[$status]['#type'] = 'container'; $list[$status]['#type'] = 'container';
$list[$status]['#attributes'] = array('class' => array('views-list-section', $status)); $list[$status]['#attributes'] = array('class' => array('views-list-section', $status));