From 9cc4bbdb961de8acb153fa8a040fbe346a26ce29 Sat, 9 May 2015 15:41:14 +0200 From: hass Date: Sat, 9 May 2015 15:41:06 +0200 Subject: [PATCH] Issue #2486089 by hass: 'Change set' is hard to translate properly diff --git a/core/assets/vendor/jquery-once/jquery.once.js b/core/assets/vendor/jquery-once/jquery.once.js old mode 100755 new mode 100644 diff --git a/core/modules/shortcut/src/Form/SwitchShortcutSet.php b/core/modules/shortcut/src/Form/SwitchShortcutSet.php index 72f5160..6a5d542 100644 --- a/core/modules/shortcut/src/Form/SwitchShortcutSet.php +++ b/core/modules/shortcut/src/Form/SwitchShortcutSet.php @@ -130,7 +130,7 @@ $form['actions'] = array('#type' => 'actions'); $form['actions']['submit'] = array( '#type' => 'submit', - '#value' => $this->t('Change set'), + '#value' => $this->t('Edit shortcut set'), ); } else { diff --git a/core/modules/shortcut/src/Tests/ShortcutSetsTest.php b/core/modules/shortcut/src/Tests/ShortcutSetsTest.php index 56fce39..3b2be4d 100644 --- a/core/modules/shortcut/src/Tests/ShortcutSetsTest.php +++ b/core/modules/shortcut/src/Tests/ShortcutSetsTest.php @@ -93,7 +93,7 @@ // Attempt to switch the default shortcut set to the newly created shortcut // set. - $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', array('set' => $new_set->id()), t('Change set')); + $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', array('set' => $new_set->id()), t('Edit shortcut set')); $this->assertResponse(200); $current_set = shortcut_current_displayed_set($this->adminUser); $this->assertTrue($new_set->id() == $current_set->id(), 'Successfully switched own shortcut set.'); @@ -119,7 +119,7 @@ 'id' => strtolower($this->randomMachineName()), 'label' => $this->randomString(), ); - $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set')); + $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Edit shortcut set')); $current_set = shortcut_current_displayed_set($this->adminUser); $this->assertNotEqual($current_set->id(), $this->set->id(), 'A shortcut set can be switched to at the same time as it is created.'); $this->assertEqual($current_set->label(), $edit['label'], 'The new set is correctly assigned to the user.'); @@ -130,7 +130,7 @@ */ function testShortcutSetSwitchNoSetName() { $edit = array('set' => 'new'); - $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Change set')); + $this->drupalPostForm('user/' . $this->adminUser->id() . '/shortcuts', $edit, t('Edit shortcut set')); $this->assertText(t('The new set label is required.')); $current_set = shortcut_current_displayed_set($this->adminUser); $this->assertEqual($current_set->id(), $this->set->id(), 'Attempting to switch to a new shortcut set without providing a set name does not succeed.');