Commit 265717b9 authored by catch's avatar catch

Issue #1785038 by beltofte: Standardize capitalization on actions in user...

Issue #1785038 by beltofte: Standardize capitalization on actions in user admin: 'edit permissions', 'edit role', 'edit', 'translate', 'view', 'cancel'.
parent 35741dcd
......@@ -77,7 +77,7 @@ function render($values) {
* The acutal rendered text (without the link) of this field.
*/
public function render_link(EntityInterface $entity, \stdClass $values) {
$text = !empty($this->options['text']) ? $this->options['text'] : t('view');
$text = !empty($this->options['text']) ? $this->options['text'] : t('View');
$this->options['alter']['make_link'] = TRUE;
$uri = $entity->uri();
......
......@@ -29,7 +29,7 @@ public function render_link(EntityInterface $entity, \stdClass $values) {
if ($entity && $entity->access('delete')) {
$this->options['alter']['make_link'] = TRUE;
$text = !empty($this->options['text']) ? $this->options['text'] : t('cancel');
$text = !empty($this->options['text']) ? $this->options['text'] : t('Cancel');
$uri = $entity->uri();
$this->options['alter']['path'] = $uri['path'] . '/cancel';
......
......@@ -29,7 +29,7 @@ public function render_link(EntityInterface $entity, \stdClass $values) {
if ($entity && $entity->access('edit')) {
$this->options['alter']['make_link'] = TRUE;
$text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
$text = !empty($this->options['text']) ? $this->options['text'] : t('Edit');
$uri = $entity->uri();
$this->options['alter']['path'] = $uri['path'] . '/edit';
......
......@@ -45,7 +45,7 @@ function testUserAdmin() {
$this->assertText($admin_user->name, 'Found Admin user on admin users page');
// Test for existence of edit link in table.
$link = l(t('edit'), "user/$user_a->uid/edit", array('query' => array('destination' => 'admin/people')));
$link = l(t('Edit'), "user/$user_a->uid/edit", array('query' => array('destination' => 'admin/people')));
$this->assertRaw($link, 'Found user A edit link on admin users page');
// Filter the users by permission 'administer taxonomy'.
......
......@@ -228,13 +228,13 @@ function user_admin_account() {
);
$links = array();
$links['edit'] = array(
'title' => t('edit'),
'title' => t('Edit'),
'href' => 'user/' . $account->uid . '/edit',
'query' => $destination,
);
if (module_invoke('translation_entity', 'translate_access', $account)) {
$links['translate'] = array(
'title' => t('translate'),
'title' => t('Translate'),
'href' => 'user/' . $account->uid . '/translations',
'query' => $destination,
);
......@@ -865,12 +865,12 @@ function user_admin_roles($form, $form_state) {
'#attributes' => array('class' => array('role-weight')),
);
$links['edit'] = array(
'title' => t('edit role'),
'title' => t('Edit role'),
'href' => 'admin/people/roles/edit/' . $rid,
'weight' => 0,
);
$links['permissions'] = array(
'title' => t('edit permissions'),
'title' => t('Edit permissions'),
'href' => 'admin/people/permissions/' . $rid,
'weight' => 5,
);
......
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