Commit 11bcbce3 authored by Dries's avatar Dries

Issue #1784806 by beltofte: Standardize capitalization on actions in book: 'edit order and titles'.

parent 09be764c
......@@ -27,7 +27,7 @@ function book_admin_overview() {
);
$links = array();
$links['edit'] = array(
'title' => t('edit order and titles'),
'title' => t('Edit order and titles'),
'href' => 'admin/content/book/' . $book['nid'],
);
$row[] = array(
......@@ -305,17 +305,17 @@ function theme_book_admin_table($variables) {
);
$links = array();
$links['view'] = array(
'title' => t('view'),
'title' => t('View'),
'href' => $href,
);
if ($access) {
$links['edit'] = array(
'title' => t('edit'),
'title' => t('Edit'),
'href' => "node/$nid/edit",
'query' => $destination,
);
$links['delete'] = array(
'title' => t('delete'),
'title' => t('Delete'),
'href' => "node/$nid/delete",
'query' => $destination,
);
......
......@@ -479,11 +479,11 @@ function _book_add_form_elements(&$form, &$form_state, Node $node) {
if (user_access('create new books') && ($nid == 'new' || ($nid != $node->book['original_bid']))) {
// The node can become a new book, if it is not one already.
$options = array($nid => '<' . t('create a new book') . '>') + $options;
$options = array($nid => t('- Create a new book -')) + $options;
}
if (!$node->book['mlid']) {
// The node is not currently in the hierarchy.
$options = array(0 => '<' . t('none') . '>') + $options;
$options = array(0 => t('- None -')) + $options;
}
// Add a drop-down to select the destination book.
......
......@@ -178,7 +178,7 @@ function checkBookNode(Node $node, $nodes, $previous = FALSE, $up = FALSE, $next
}
if ($up) {
$this->assertRaw(l('up', 'node/' . $up->nid, array('html'=> TRUE, 'attributes' => array('title' => t('Go to parent page')))), 'Up page link found.');
$this->assertRaw(l('Up', 'node/' . $up->nid, array('html'=> TRUE, 'attributes' => array('title' => t('Go to parent page')))), 'Up page link found.');
}
if ($next) {
......
......@@ -44,7 +44,7 @@
<?php endif; ?>
<?php if ($parent_url): ?>
<li class="up">
<a href="<?php print $parent_url; ?>" title="<?php print t('Go to parent page'); ?>"><?php print t('up'); ?></a>
<a href="<?php print $parent_url; ?>" title="<?php print t('Go to parent page'); ?>"><?php print t('Up'); ?></a>
</li>
<?php endif; ?>
<?php if ($next_url): ?>
......
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