Commit 3e07700c authored by xjm's avatar xjm

Issue #2753049 by pguillard, pashupathi nath gajawada, ChandeepKhosa, ifrik:...

Issue #2753049 by pguillard, pashupathi nath gajawada, ChandeepKhosa, ifrik: Change "Save changes" to "Save"
parent 60a17522
......@@ -139,7 +139,7 @@ public function getDefaultOperations(EntityInterface $entity) {
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['actions']['submit']['#value'] = $this->t('Save changes');
$form['actions']['submit']['#value'] = $this->t('Save');
return $form;
}
......
......@@ -130,7 +130,7 @@ function testFormatAdmin() {
$edit = array(
"formats[$format_id][weight]" => 5,
);
$this->drupalPostForm('admin/config/content/formats', $edit, t('Save changes'));
$this->drupalPostForm('admin/config/content/formats', $edit, t('Save'));
$this->assertFieldByName("formats[$format_id][weight]", 5, 'Text format weight was saved.');
// Edit text format.
......
......@@ -48,7 +48,7 @@ function testDefaultTextFormats() {
$edit = array();
$edit['formats[' . $first_format->id() . '][weight]'] = -2;
$edit['formats[' . $second_format->id() . '][weight]'] = -1;
$this->drupalPostForm('admin/config/content/formats', $edit, t('Save changes'));
$this->drupalPostForm('admin/config/content/formats', $edit, t('Save'));
$this->resetFilterCaches();
// Check that each user's default format is the lowest weighted format that
......@@ -64,7 +64,7 @@ function testDefaultTextFormats() {
// default.
$edit = array();
$edit['formats[' . $second_format->id() . '][weight]'] = -3;
$this->drupalPostForm('admin/config/content/formats', $edit, t('Save changes'));
$this->drupalPostForm('admin/config/content/formats', $edit, t('Save'));
$this->resetFilterCaches();
$this->assertEqual(filter_default_format($first_user), filter_default_format($second_user), 'After the formats are reordered, both users have the same default format.');
}
......
......@@ -88,7 +88,7 @@ protected function actions(array $form, FormStateInterface $form_state) {
return array(
'submit' => array(
'#type' => 'submit',
'#value' => t('Save changes'),
'#value' => t('Save'),
'#access' => (bool) Element::getVisibleChildren($form['shortcuts']['links']),
'#submit' => array('::submitForm', '::save'),
),
......
......@@ -88,7 +88,7 @@ function testShortcutSetEdit() {
$weight--;
}
$this->drupalPostForm(NULL, $edit, t('Save changes'));
$this->drupalPostForm(NULL, $edit, t('Save'));
$this->assertRaw(t('The shortcut set has been updated.'));
\Drupal::entityManager()->getStorage('shortcut')->resetCache();
......
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