From fa25c7a0ca13b57f098f0d2a2f7379ce73086723 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Thu, 19 Aug 2004 15:41:57 +0000 Subject: [PATCH] - Code improvements by Stefan: use capital letters for header titles (and added some missing t() functions). --- includes/locale.inc | 4 +- modules/aggregator.module | 6 +-- modules/aggregator/aggregator.module | 6 +-- modules/block.module | 2 +- modules/block/block.module | 2 +- modules/book.module | 4 +- modules/book/book.module | 4 +- modules/comment.module | 22 +++++------ modules/comment/comment.module | 22 +++++------ modules/filter.module | 8 ++-- modules/filter/filter.module | 8 ++-- modules/menu.module | 2 +- modules/menu/menu.module | 2 +- modules/node.module | 4 +- modules/node/node.module | 4 +- modules/path.module | 6 +-- modules/path/path.module | 6 +-- modules/profile.module | 2 +- modules/profile/profile.module | 2 +- modules/queue.module | 2 +- modules/statistics.module | 58 ++++++++++++++-------------- modules/statistics/statistics.module | 58 ++++++++++++++-------------- modules/system.module | 4 +- modules/system/system.module | 4 +- modules/taxonomy.module | 2 +- modules/taxonomy/taxonomy.module | 2 +- modules/tracker.module | 2 +- modules/tracker/tracker.module | 2 +- modules/upload.module | 8 ++-- modules/upload/upload.module | 8 ++-- modules/user.module | 12 +++--- modules/user/user.module | 12 +++--- modules/watchdog.module | 8 ++-- modules/watchdog/watchdog.module | 8 ++-- 34 files changed, 153 insertions(+), 153 deletions(-) diff --git a/includes/locale.inc b/includes/locale.inc index 04c846444e10..2f5421587336 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -41,7 +41,7 @@ function _locale_admin_manage_screen() { $edit = &$_POST['edit']; $languages = locale_supported_languages(TRUE, TRUE); - $header = array(array('data' => t('code')), array('data' => t('English name')), array('data' => t('enabled')), array('data' => t('default')), array('data' => t('translated')), array('data' => t('operations'))); + $header = array(array('data' => t('Code')), array('data' => t('English name')), array('data' => t('Enabled')), array('data' => t('default')), array('data' => t('translated')), array('data' => t('Operations'))); foreach ($languages['name'] as $key => $lang) { @@ -1001,7 +1001,7 @@ function _locale_string_seek() { $result = pager_query($sql, 50); - $header = array(t('string'), t('locales'), array('data' => t('operations'), 'colspan' => '2')); + $header = array(t('String'), t('Locales'), array('data' => t('Operations'), 'colspan' => '2')); $arr = array(); while ($locale = db_fetch_object($result)) { $arr[$locale->lid]['locales'][$locale->locale] = $locale->translation; diff --git a/modules/aggregator.module b/modules/aggregator.module index 5a5d2ab712ef..77e0cf6f2abc 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -696,7 +696,7 @@ function aggregator_view() { $output .= '<h3>'. t('Feed overview') .'</h3>'; - $header = array(t('title'), t('items'), t('last update'), t('next update'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Items'), t('Last update'), t('Next update'), array('data' => t('Operations'), 'colspan' => 3)); $rows = array(); while ($feed = db_fetch_object($result)) { $rows[] = array(l($feed->title, "aggregator/sources/$feed->fid"), format_plural($feed->items, '1 item', '%count items'), ($feed->checked ? t('%time ago', array('%time' => format_interval(time() - $feed->checked))) : t('never')), ($feed->checked ? t('%time left', array('%time' => format_interval($feed->checked + $feed->refresh - time()))) : t('never')), l(t('edit'), "admin/aggregator/edit/feed/$feed->fid"), l(t('remove items'), "admin/aggregator/remove/$feed->fid"), l(t('update items'), "admin/aggregator/update/$feed->fid")); @@ -707,7 +707,7 @@ function aggregator_view() { $output .= '<h3>'. t('Category overview') .'</h3>'; - $header = array(t('title'), t('items'), t('operations')); + $header = array(t('Title'), t('Items'), t('Operations')); $rows = array(); while ($category = db_fetch_object($result)) { $rows[] = array(l($category->title, "aggregator/categories/$category->cid"), format_plural($category->items, '1 item', '%count items'), l(t('edit'), "admin/aggregator/edit/category/$category->cid")); @@ -928,7 +928,7 @@ function _aggregator_page_list($sql, $op, $header = '') { } } if ($categorize) { - $output .= form(theme('table', array('', t('categorize')), $rows) . form_submit(t('Save categories'))); + $output .= form(theme('table', array('', t('Categorize')), $rows) . form_submit(t('Save categories'))); } $output .= '</div>'; diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 5a5d2ab712ef..77e0cf6f2abc 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -696,7 +696,7 @@ function aggregator_view() { $output .= '<h3>'. t('Feed overview') .'</h3>'; - $header = array(t('title'), t('items'), t('last update'), t('next update'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Items'), t('Last update'), t('Next update'), array('data' => t('Operations'), 'colspan' => 3)); $rows = array(); while ($feed = db_fetch_object($result)) { $rows[] = array(l($feed->title, "aggregator/sources/$feed->fid"), format_plural($feed->items, '1 item', '%count items'), ($feed->checked ? t('%time ago', array('%time' => format_interval(time() - $feed->checked))) : t('never')), ($feed->checked ? t('%time left', array('%time' => format_interval($feed->checked + $feed->refresh - time()))) : t('never')), l(t('edit'), "admin/aggregator/edit/feed/$feed->fid"), l(t('remove items'), "admin/aggregator/remove/$feed->fid"), l(t('update items'), "admin/aggregator/update/$feed->fid")); @@ -707,7 +707,7 @@ function aggregator_view() { $output .= '<h3>'. t('Category overview') .'</h3>'; - $header = array(t('title'), t('items'), t('operations')); + $header = array(t('Title'), t('Items'), t('Operations')); $rows = array(); while ($category = db_fetch_object($result)) { $rows[] = array(l($category->title, "aggregator/categories/$category->cid"), format_plural($category->items, '1 item', '%count items'), l(t('edit'), "admin/aggregator/edit/category/$category->cid")); @@ -928,7 +928,7 @@ function _aggregator_page_list($sql, $op, $header = '') { } } if ($categorize) { - $output .= form(theme('table', array('', t('categorize')), $rows) . form_submit(t('Save categories'))); + $output .= form(theme('table', array('', t('Categorize')), $rows) . form_submit(t('Save categories'))); } $output .= '</div>'; diff --git a/modules/block.module b/modules/block.module index 2979a4b20b95..7a755f7e7607 100644 --- a/modules/block.module +++ b/modules/block.module @@ -167,7 +167,7 @@ function block_admin_display() { $formats[$box->bid] = $box->format; } - $header = array(t('block'), t('enabled'), t('custom'), t('throttle'), t('weight'), t('region'), t('path'), array('data' => t('operations'), 'colspan' => 2)); + $header = array(t('Block'), t('Enabled'), t('Custom'), t('Throttle'), t('Weight'), t('Region'), t('Path'), array('data' => t('Operations'), 'colspan' => 2)); foreach ($blocks as $block) { if ($block['module'] == 'block') { diff --git a/modules/block/block.module b/modules/block/block.module index 2979a4b20b95..7a755f7e7607 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -167,7 +167,7 @@ function block_admin_display() { $formats[$box->bid] = $box->format; } - $header = array(t('block'), t('enabled'), t('custom'), t('throttle'), t('weight'), t('region'), t('path'), array('data' => t('operations'), 'colspan' => 2)); + $header = array(t('Block'), t('Enabled'), t('Custom'), t('Throttle'), t('Weight'), t('Region'), t('Path'), array('data' => t('Operations'), 'colspan' => 2)); foreach ($blocks as $block) { if ($block['module'] == 'block') { diff --git a/modules/book.module b/modules/book.module index a962f7ee78d8..4dcdf18fbb50 100644 --- a/modules/book.module +++ b/modules/book.module @@ -685,7 +685,7 @@ function book_admin_view($nid, $depth = 0) { $output .= '<h3>'. $node->title .'</h3>'; - $header = array(t('title'), t('weight'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Weight'), array('data' => t('Operations'), 'colspan' => 3)); $rows[] = book_admin_view_line($node); $rows = array_merge($rows, book_admin_view_book($nid)); @@ -733,7 +733,7 @@ function book_admin_orphan() { if ($pages) { $output .= '<h3>'. t('Orphan pages') .'</h3>'; - $header = array(t('title'), t('weight'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Weight'), array('data' => t('Operations'), 'colspan' => 3)); foreach ($pages as $nid => $node) { if ($node->parent && empty($pages[$node->parent])) { $rows[] = book_admin_view_line($node, $depth); diff --git a/modules/book/book.module b/modules/book/book.module index a962f7ee78d8..4dcdf18fbb50 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -685,7 +685,7 @@ function book_admin_view($nid, $depth = 0) { $output .= '<h3>'. $node->title .'</h3>'; - $header = array(t('title'), t('weight'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Weight'), array('data' => t('Operations'), 'colspan' => 3)); $rows[] = book_admin_view_line($node); $rows = array_merge($rows, book_admin_view_book($nid)); @@ -733,7 +733,7 @@ function book_admin_orphan() { if ($pages) { $output .= '<h3>'. t('Orphan pages') .'</h3>'; - $header = array(t('title'), t('weight'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Weight'), array('data' => t('Operations'), 'colspan' => 3)); foreach ($pages as $nid => $node) { if ($node->parent && empty($pages[$node->parent])) { $rows[] = book_admin_view_line($node, $depth); diff --git a/modules/comment.module b/modules/comment.module index 96dfbb93bdf7..082c150a4930 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -264,7 +264,7 @@ function comment_node_link($node) { if (user_access('administer comments')) { $result = db_query('SELECT c.cid, c.subject, c.name, c.homepage, u.uid, u.name AS registered_name, c.name FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE nid = %d AND c.status = 0 ORDER BY c.timestamp', $node->nid); - $header = array(t('title'), t('author'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Author'), array('data' => t('Operations'), 'colspan' => 3)); while ($comment = db_fetch_object($result)) { $comment->name = $comment->registered_name ? $comment->registered_name : $comment->name; @@ -1016,11 +1016,11 @@ function comment_save($id, $edit) { function comment_admin_overview($type = 'new') { $header = array( - array('data' => t('subject'), 'field' => 'subject'), - array('data' => t('author'), 'field' => 'u.name'), - array('data' => t('status'), 'field' => 'status'), - array('data' => t('time'), 'field' => 'c.timestamp', 'sort' => 'desc'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('Subject'), 'field' => 'subject'), + array('data' => t('Author'), 'field' => 'u.name'), + array('data' => t('Status'), 'field' => 'status'), + array('data' => t('Time'), 'field' => 'c.timestamp', 'sort' => 'desc'), + array('data' => t('Operations'), 'colspan' => 2) ); $status = ($type == 'approval') ? 1 : 0; @@ -1063,7 +1063,7 @@ function comment_matrix_settings() { drupal_set_message(t('The vote values have been saved.')); } - $output .= '<h3>Moderation vote/value matrix</h3>'; + $output .= '<h3>'. t('Moderation vote/value matrix') .'</h3>'; $result = db_query("SELECT r.rid, r.name FROM {role} r, {permission} p WHERE r.rid = p.rid AND p.perm LIKE '%moderate comments%'"); $role_names = array(); @@ -1076,7 +1076,7 @@ function comment_matrix_settings() { $mod_roles[$role->rid][$role->mid] = $role->value; } - $header = array_merge(array(t('votes')), array_values($role_names)); + $header = array_merge(array(t('Votes')), array_values($role_names)); $result = db_query('SELECT mid, vote FROM {moderation_votes} ORDER BY weight'); while ($vote = db_fetch_object($result)) { @@ -1114,7 +1114,7 @@ function comment_role_settings() { $result = db_query("SELECT r.rid, r.name FROM {role} r, {permission} p WHERE r.rid = p.rid AND p.perm LIKE '%post comments%'"); - $header = array(t('user role'), t('initial score')); + $header = array(t('User role'), t('Initial score')); while ($role = db_fetch_object($result)) { $rows[] = array($role->name, array('data' => form_textfield(NULL, $role->rid, $start_values[$role->rid], 4, 3), 'align' => 'center')); @@ -1153,7 +1153,7 @@ function comment_vote_settings($mid = 0) { $output .= '<h3>'. t('Moderation votes overview') .'</h3>'; // load up and show any vote types previously defined. - $header = array(t('votes'), t('weight'), t('operations')); + $header = array(t('Votes'), t('Weight'), t('Operations')); $result = db_query('SELECT mid, vote, weight FROM {moderation_votes} ORDER BY weight'); while ($vote = db_fetch_object($result)) { $rows[] = array($vote->vote, array('data' => $vote->weight), array('data' => l(t('edit'), "admin/comment/configure/votes/$vote->mid"))); @@ -1207,7 +1207,7 @@ function comment_threshold_settings($fid = 0) { $output .= '<h3>Comment threshold overview</h3>'; // load up and show any thresholds previously defined. - $header = array(t('name'), t('minimum score'), t('operations')); + $header = array(t('Name'), t('Minimum score'), t('Operations')); $result = db_query('SELECT fid, filter, minimum FROM {moderation_filters} ORDER BY minimum'); while ($filter = db_fetch_object($result)) { $rows[] = array($filter->filter, array('data' => $filter->minimum), array('data' => l(t('edit'), "admin/comment/configure/thresholds/$filter->fid"))); diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 96dfbb93bdf7..082c150a4930 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -264,7 +264,7 @@ function comment_node_link($node) { if (user_access('administer comments')) { $result = db_query('SELECT c.cid, c.subject, c.name, c.homepage, u.uid, u.name AS registered_name, c.name FROM {comments} c INNER JOIN {users} u ON u.uid = c.uid WHERE nid = %d AND c.status = 0 ORDER BY c.timestamp', $node->nid); - $header = array(t('title'), t('author'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Title'), t('Author'), array('data' => t('Operations'), 'colspan' => 3)); while ($comment = db_fetch_object($result)) { $comment->name = $comment->registered_name ? $comment->registered_name : $comment->name; @@ -1016,11 +1016,11 @@ function comment_save($id, $edit) { function comment_admin_overview($type = 'new') { $header = array( - array('data' => t('subject'), 'field' => 'subject'), - array('data' => t('author'), 'field' => 'u.name'), - array('data' => t('status'), 'field' => 'status'), - array('data' => t('time'), 'field' => 'c.timestamp', 'sort' => 'desc'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('Subject'), 'field' => 'subject'), + array('data' => t('Author'), 'field' => 'u.name'), + array('data' => t('Status'), 'field' => 'status'), + array('data' => t('Time'), 'field' => 'c.timestamp', 'sort' => 'desc'), + array('data' => t('Operations'), 'colspan' => 2) ); $status = ($type == 'approval') ? 1 : 0; @@ -1063,7 +1063,7 @@ function comment_matrix_settings() { drupal_set_message(t('The vote values have been saved.')); } - $output .= '<h3>Moderation vote/value matrix</h3>'; + $output .= '<h3>'. t('Moderation vote/value matrix') .'</h3>'; $result = db_query("SELECT r.rid, r.name FROM {role} r, {permission} p WHERE r.rid = p.rid AND p.perm LIKE '%moderate comments%'"); $role_names = array(); @@ -1076,7 +1076,7 @@ function comment_matrix_settings() { $mod_roles[$role->rid][$role->mid] = $role->value; } - $header = array_merge(array(t('votes')), array_values($role_names)); + $header = array_merge(array(t('Votes')), array_values($role_names)); $result = db_query('SELECT mid, vote FROM {moderation_votes} ORDER BY weight'); while ($vote = db_fetch_object($result)) { @@ -1114,7 +1114,7 @@ function comment_role_settings() { $result = db_query("SELECT r.rid, r.name FROM {role} r, {permission} p WHERE r.rid = p.rid AND p.perm LIKE '%post comments%'"); - $header = array(t('user role'), t('initial score')); + $header = array(t('User role'), t('Initial score')); while ($role = db_fetch_object($result)) { $rows[] = array($role->name, array('data' => form_textfield(NULL, $role->rid, $start_values[$role->rid], 4, 3), 'align' => 'center')); @@ -1153,7 +1153,7 @@ function comment_vote_settings($mid = 0) { $output .= '<h3>'. t('Moderation votes overview') .'</h3>'; // load up and show any vote types previously defined. - $header = array(t('votes'), t('weight'), t('operations')); + $header = array(t('Votes'), t('Weight'), t('Operations')); $result = db_query('SELECT mid, vote, weight FROM {moderation_votes} ORDER BY weight'); while ($vote = db_fetch_object($result)) { $rows[] = array($vote->vote, array('data' => $vote->weight), array('data' => l(t('edit'), "admin/comment/configure/votes/$vote->mid"))); @@ -1207,7 +1207,7 @@ function comment_threshold_settings($fid = 0) { $output .= '<h3>Comment threshold overview</h3>'; // load up and show any thresholds previously defined. - $header = array(t('name'), t('minimum score'), t('operations')); + $header = array(t('Name'), t('Minimum score'), t('Operations')); $result = db_query('SELECT fid, filter, minimum FROM {moderation_filters} ORDER BY minimum'); while ($filter = db_fetch_object($result)) { $rows[] = array($filter->filter, array('data' => $filter->minimum), array('data' => l(t('edit'), "admin/comment/configure/thresholds/$filter->fid"))); diff --git a/modules/filter.module b/modules/filter.module index f1e4183b304d..612a2b037942 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -174,11 +174,11 @@ function filter_admin_overview() { $roles = user_roles(); $error = false; - $header = array(t('name'), t('default')); + $header = array(t('Name'), t('Default')); foreach ($roles as $name) { $header[] = $name; } - $header[] = array('data' => t('operations'), 'colspan' => 2); + $header[] = array('data' => t('Operations'), 'colspan' => 2); $rows = array(); foreach ($formats as $id => $format) { @@ -332,7 +332,7 @@ function filter_admin_filters() { $enabled = filter_list_format($format); // Table with filters - $header = array('enabled', 'name', 'description'); + $header = array(t('Enabled'), t('Name'), t('Description')); $rows = array(); foreach ($all as $id => $filter) { $row = array(); @@ -405,7 +405,7 @@ function filter_admin_order() { // Get list (with forced refresh) $filters = filter_list_format($format); - $header = array(t('name'), t('weight')); + $header = array(t('Name'), t('Weight')); $rows = array(); foreach ($filters as $id => $filter) { diff --git a/modules/filter/filter.module b/modules/filter/filter.module index f1e4183b304d..612a2b037942 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -174,11 +174,11 @@ function filter_admin_overview() { $roles = user_roles(); $error = false; - $header = array(t('name'), t('default')); + $header = array(t('Name'), t('Default')); foreach ($roles as $name) { $header[] = $name; } - $header[] = array('data' => t('operations'), 'colspan' => 2); + $header[] = array('data' => t('Operations'), 'colspan' => 2); $rows = array(); foreach ($formats as $id => $format) { @@ -332,7 +332,7 @@ function filter_admin_filters() { $enabled = filter_list_format($format); // Table with filters - $header = array('enabled', 'name', 'description'); + $header = array(t('Enabled'), t('Name'), t('Description')); $rows = array(); foreach ($all as $id => $filter) { $row = array(); @@ -405,7 +405,7 @@ function filter_admin_order() { // Get list (with forced refresh) $filters = filter_list_format($format); - $header = array(t('name'), t('weight')); + $header = array(t('Name'), t('Weight')); $rows = array(); foreach ($filters as $id => $filter) { diff --git a/modules/menu.module b/modules/menu.module index cfc0b211d81c..c90536c0ff13 100644 --- a/modules/menu.module +++ b/modules/menu.module @@ -338,7 +338,7 @@ function menu_edit_item_save($edit) { */ function menu_overview_tree() { $menu = menu_get_menu(); - $header = array(t('menu item'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Menu item'), array('data' => t('Operations'), 'colspan' => 3)); $output = ''; foreach ($menu['items'][0]['children'] as $mid) { diff --git a/modules/menu/menu.module b/modules/menu/menu.module index cfc0b211d81c..c90536c0ff13 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -338,7 +338,7 @@ function menu_edit_item_save($edit) { */ function menu_overview_tree() { $menu = menu_get_menu(); - $header = array(t('menu item'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Menu item'), array('data' => t('Operations'), 'colspan' => 3)); $output = ''; foreach ($menu['items'][0]['children'] as $mid) { diff --git a/modules/node.module b/modules/node.module index 1d5fbbae466b..90abd53e907a 100644 --- a/modules/node.module +++ b/modules/node.module @@ -769,7 +769,7 @@ function node_admin_nodes() { $output .= "<div class=\"container-inline\">$form</div>"; // Overview table: - $header = array(NULL, t('title'), t('type'), t('author'), t('status'), array('data' => t('operations'), 'colspan' => 2)); + $header = array(NULL, t('Title'), t('Type'), t('Author'), t('Status'), array('data' => t('Operations'), 'colspan' => 2)); while ($node = db_fetch_object($result)) { $rows[] = array(form_checkbox(NULL, 'status]['. $node->nid, 1, 0), l($node->title, 'node/'. $node->nid) .' '. (node_is_new($node->nid, $node->changed) ? theme_mark() : ''), node_invoke($node, 'node_name'), format_name($node), ($node->status ? t('published') : t('not published')), l(t('edit'), 'node/'. $node->nid .'/edit'), l(t('delete'), 'admin/node/delete/'. $node->nid)); @@ -835,7 +835,7 @@ function node_revision_overview($nid) { drupal_set_title($node->title); if ($node->revisions) { - $header = array(t('older revisions'), array('colspan' => '3', 'data' => t('operations'))); + $header = array(t('Older revisions'), array('colspan' => '3', 'data' => t('Operations'))); foreach ($node->revisions as $key => $revision) { $rows[] = array(t('revision #%r revised by %u on %d', array('%r' => $key, '%u' => format_name(user_load(array('uid' => $revision['uid']))), '%d' => format_date($revision['timestamp'], 'small'))) . ($revision['history'] ? '<br /><small>'. $revision['history'] .'</small>' : ''), l(t('view'), "node/$node->nid", array(), "revision=$key"), l(t('rollback'), "node/$node->nid/rollback-revision/$key"), l(t('delete'), "node/$node->nid/delete-revision/$key")); diff --git a/modules/node/node.module b/modules/node/node.module index 1d5fbbae466b..90abd53e907a 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -769,7 +769,7 @@ function node_admin_nodes() { $output .= "<div class=\"container-inline\">$form</div>"; // Overview table: - $header = array(NULL, t('title'), t('type'), t('author'), t('status'), array('data' => t('operations'), 'colspan' => 2)); + $header = array(NULL, t('Title'), t('Type'), t('Author'), t('Status'), array('data' => t('Operations'), 'colspan' => 2)); while ($node = db_fetch_object($result)) { $rows[] = array(form_checkbox(NULL, 'status]['. $node->nid, 1, 0), l($node->title, 'node/'. $node->nid) .' '. (node_is_new($node->nid, $node->changed) ? theme_mark() : ''), node_invoke($node, 'node_name'), format_name($node), ($node->status ? t('published') : t('not published')), l(t('edit'), 'node/'. $node->nid .'/edit'), l(t('delete'), 'admin/node/delete/'. $node->nid)); @@ -835,7 +835,7 @@ function node_revision_overview($nid) { drupal_set_title($node->title); if ($node->revisions) { - $header = array(t('older revisions'), array('colspan' => '3', 'data' => t('operations'))); + $header = array(t('Older revisions'), array('colspan' => '3', 'data' => t('Operations'))); foreach ($node->revisions as $key => $revision) { $rows[] = array(t('revision #%r revised by %u on %d', array('%r' => $key, '%u' => format_name(user_load(array('uid' => $revision['uid']))), '%d' => format_date($revision['timestamp'], 'small'))) . ($revision['history'] ? '<br /><small>'. $revision['history'] .'</small>' : ''), l(t('view'), "node/$node->nid", array(), "revision=$key"), l(t('rollback'), "node/$node->nid/rollback-revision/$key"), l(t('delete'), "node/$node->nid/delete-revision/$key")); diff --git a/modules/path.module b/modules/path.module index cee8385fb086..52279451d1a4 100644 --- a/modules/path.module +++ b/modules/path.module @@ -252,9 +252,9 @@ function path_perm() { function path_overview() { $sql = 'SELECT * FROM {url_alias}'; $header = array( - array('data' => t('alias'), 'field' => 'dst', 'sort' => 'asc'), - array('data' => t('system'), 'field' => 'src'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('Alias'), 'field' => 'dst', 'sort' => 'asc'), + array('data' => t('System'), 'field' => 'src'), + array('data' => t('Operations'), 'colspan' => 2) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50); diff --git a/modules/path/path.module b/modules/path/path.module index cee8385fb086..52279451d1a4 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -252,9 +252,9 @@ function path_perm() { function path_overview() { $sql = 'SELECT * FROM {url_alias}'; $header = array( - array('data' => t('alias'), 'field' => 'dst', 'sort' => 'asc'), - array('data' => t('system'), 'field' => 'src'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('Alias'), 'field' => 'dst', 'sort' => 'asc'), + array('data' => t('System'), 'field' => 'src'), + array('data' => t('Operations'), 'colspan' => 2) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50); diff --git a/modules/profile.module b/modules/profile.module index 73f5ef8a2b96..9d43d5aef85f 100644 --- a/modules/profile.module +++ b/modules/profile.module @@ -498,7 +498,7 @@ function profile_admin_overview() { $rows[] = array(array('data' => t('No fields defined.'), 'colspan' => '6')); } - $header = array(t('title'), t('name'), t('type'), t('category'), array('data' => t('operations'), 'colspan' => '2')); + $header = array(t('Title'), t('Name'), t('Type'), t('Category'), array('data' => t('Operations'), 'colspan' => '2')); $output = theme('table', $header, $rows); $output .= '<h2>'. t('Add new field') .'</h2>'; diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 73f5ef8a2b96..9d43d5aef85f 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -498,7 +498,7 @@ function profile_admin_overview() { $rows[] = array(array('data' => t('No fields defined.'), 'colspan' => '6')); } - $header = array(t('title'), t('name'), t('type'), t('category'), array('data' => t('operations'), 'colspan' => '2')); + $header = array(t('Title'), t('Name'), t('Type'), t('Category'), array('data' => t('Operations'), 'colspan' => '2')); $output = theme('table', $header, $rows); $output .= '<h2>'. t('Add new field') .'</h2>'; diff --git a/modules/queue.module b/modules/queue.module index 658827ca3db3..3aefe0102261 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -113,7 +113,7 @@ function queue_vote($node, $vote) { function queue_overview() { global $user; - $header = array(array('data' => t('subject')), array('data' => t('author')), array('data' => t('type')), array('data' => t('score'))); + $header = array(array('data' => t('Subject')), array('data' => t('Author')), array('data' => t('Type')), array('data' => t('Score'))); $sresult = pager_query('SELECT n.*, u.name, u.uid FROM {node} n INNER JOIN {users} u ON n.uid = u.uid WHERE n.moderate = 1', 10, 0); diff --git a/modules/statistics.module b/modules/statistics.module index f8aa1ad897d3..0634806d4e64 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -226,12 +226,12 @@ function statistics_admin_displaylog($type = 'all', $id = 0) { } $header = array( - array('data' => t('timestamp'), 'field' => 'timestamp', 'sort' => 'desc'), - array('data' => t('post'), 'field' => 'title'), - array('data' => t('user'), 'field' => 'uid'), - array('data' => t('hostname'), 'field' => 'hostname'), - array('data' => t('referrer'), 'field' => 'url'), - array('data' => t('operations'), 'colspan' => '3') + array('data' => t('Timestamp'), 'field' => 'timestamp', 'sort' => 'desc'), + array('data' => t('Post'), 'field' => 'title'), + array('data' => t('User'), 'field' => 'uid'), + array('data' => t('Hostname'), 'field' => 'hostname'), + array('data' => t('Referrer'), 'field' => 'url'), + array('data' => t('Operations'), 'colspan' => '3') ); $sql .= tablesort_sql($header); @@ -274,11 +274,11 @@ function statistics_top_titles() { $page_title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('post'), 'field' => 'title'), - array('data' => t('last path'), 'field' => 'path'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit'), - array('data' => t('operations')) + array('data' => t('Post'), 'field' => 'title'), + array('data' => t('Last path'), 'field' => 'path'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit'), + array('data' => t('Operations')) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50, 0, $sql_cnt); @@ -305,11 +305,11 @@ function statistics_top_users() { $page_title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('user'), 'field' => 'user'), - array('data' => t('last hostname'), 'field' => 'hostname'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('User'), 'field' => 'user'), + array('data' => t('Last hostname'), 'field' => 'hostname'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit'), + array('data' => t('Operations'), 'colspan' => 2) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50, 0, $sql_cnt); @@ -337,11 +337,11 @@ function statistics_top_hostnames() { $page_title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('hostname'), 'field' => 'hostname'), - array('data' => t('last user'), 'field' => 'user'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('Hostname'), 'field' => 'hostname'), + array('data' => t('Last user'), 'field' => 'user'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit'), + array('data' => t('Operations'), 'colspan' => 2) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50, 0, $sql_cnt); @@ -387,9 +387,9 @@ function statistics_top_referrers($view = 'all') { $title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('URL'), 'field' => 'url'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit') + array('data' => t('Url'), 'field' => 'url'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit') ); $query .= tablesort_sql($header); @@ -412,11 +412,11 @@ function statistics_top_referrers($view = 'all') { */ function statistics_admin_content() { $header = array( - array('data' => t('post'), 'field' => 'n.title'), - array('data' => t('today'), 'field' => 's.daycount', 'sort' => 'desc'), - array('data' => t('all time'), 'field' => 's.totalcount'), - array('data' => t('last hit'), 'field' => 's.timestamp'), - array('data' => t('operations')) + array('data' => t('Post'), 'field' => 'n.title'), + array('data' => t('Today'), 'field' => 's.daycount', 'sort' => 'desc'), + array('data' => t('All time'), 'field' => 's.totalcount'), + array('data' => t('Last hit'), 'field' => 's.timestamp'), + array('data' => t('Operations')) ); $sql = 'SELECT s.nid, s.daycount, s.totalcount, s.timestamp, n.title FROM {node_counter} s INNER JOIN {node} n ON s.nid = n.nid'; $sql .= tablesort_sql($header); diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index f8aa1ad897d3..0634806d4e64 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -226,12 +226,12 @@ function statistics_admin_displaylog($type = 'all', $id = 0) { } $header = array( - array('data' => t('timestamp'), 'field' => 'timestamp', 'sort' => 'desc'), - array('data' => t('post'), 'field' => 'title'), - array('data' => t('user'), 'field' => 'uid'), - array('data' => t('hostname'), 'field' => 'hostname'), - array('data' => t('referrer'), 'field' => 'url'), - array('data' => t('operations'), 'colspan' => '3') + array('data' => t('Timestamp'), 'field' => 'timestamp', 'sort' => 'desc'), + array('data' => t('Post'), 'field' => 'title'), + array('data' => t('User'), 'field' => 'uid'), + array('data' => t('Hostname'), 'field' => 'hostname'), + array('data' => t('Referrer'), 'field' => 'url'), + array('data' => t('Operations'), 'colspan' => '3') ); $sql .= tablesort_sql($header); @@ -274,11 +274,11 @@ function statistics_top_titles() { $page_title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('post'), 'field' => 'title'), - array('data' => t('last path'), 'field' => 'path'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit'), - array('data' => t('operations')) + array('data' => t('Post'), 'field' => 'title'), + array('data' => t('Last path'), 'field' => 'path'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit'), + array('data' => t('Operations')) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50, 0, $sql_cnt); @@ -305,11 +305,11 @@ function statistics_top_users() { $page_title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('user'), 'field' => 'user'), - array('data' => t('last hostname'), 'field' => 'hostname'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('User'), 'field' => 'user'), + array('data' => t('Last hostname'), 'field' => 'hostname'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit'), + array('data' => t('Operations'), 'colspan' => 2) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50, 0, $sql_cnt); @@ -337,11 +337,11 @@ function statistics_top_hostnames() { $page_title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('hostname'), 'field' => 'hostname'), - array('data' => t('last user'), 'field' => 'user'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit'), - array('data' => t('operations'), 'colspan' => 2) + array('data' => t('Hostname'), 'field' => 'hostname'), + array('data' => t('Last user'), 'field' => 'user'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit'), + array('data' => t('Operations'), 'colspan' => 2) ); $sql .= tablesort_sql($header); $result = pager_query($sql, 50, 0, $sql_cnt); @@ -387,9 +387,9 @@ function statistics_top_referrers($view = 'all') { $title = strtr($describe, array('%interval' => format_interval(variable_get('statistics_flush_accesslog_timer', 259200)))); $header = array( - array('data' => t('URL'), 'field' => 'url'), - array('data' => t('hits'), 'field' => 'hits', 'sort' => 'desc'), - array('data' => t('last hit'), 'field' => 'last_hit') + array('data' => t('Url'), 'field' => 'url'), + array('data' => t('Hits'), 'field' => 'hits', 'sort' => 'desc'), + array('data' => t('Last hit'), 'field' => 'last_hit') ); $query .= tablesort_sql($header); @@ -412,11 +412,11 @@ function statistics_top_referrers($view = 'all') { */ function statistics_admin_content() { $header = array( - array('data' => t('post'), 'field' => 'n.title'), - array('data' => t('today'), 'field' => 's.daycount', 'sort' => 'desc'), - array('data' => t('all time'), 'field' => 's.totalcount'), - array('data' => t('last hit'), 'field' => 's.timestamp'), - array('data' => t('operations')) + array('data' => t('Post'), 'field' => 'n.title'), + array('data' => t('Today'), 'field' => 's.daycount', 'sort' => 'desc'), + array('data' => t('All time'), 'field' => 's.totalcount'), + array('data' => t('Last hit'), 'field' => 's.timestamp'), + array('data' => t('Operations')) ); $sql = 'SELECT s.nid, s.daycount, s.totalcount, s.timestamp, n.title FROM {node_counter} s INNER JOIN {node} n ON s.nid = n.nid'; $sql .= tablesort_sql($header); diff --git a/modules/system.module b/modules/system.module index ceb1eac969c6..fc116064c08c 100644 --- a/modules/system.module +++ b/modules/system.module @@ -233,11 +233,11 @@ function system_listing($type) { // the throttle mechanism requires additional modules always be enabled $throttle_required = array_merge($required, array('modules/statistics.module', 'modules/throttle.module')); - $header = array(t('name'), t('description'), t('status'), t('throttle')); + $header = array(t('Name'), t('Description'), t('Status'), t('Throttle')); } else { $required = array(); - $header = array(t('name'), t('description'), t('enable'), t('default')); + $header = array(t('Name'), t('Description'), t('Enable'), t('Default')); } foreach ($files as $filename => $file) { diff --git a/modules/system/system.module b/modules/system/system.module index ceb1eac969c6..fc116064c08c 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -233,11 +233,11 @@ function system_listing($type) { // the throttle mechanism requires additional modules always be enabled $throttle_required = array_merge($required, array('modules/statistics.module', 'modules/throttle.module')); - $header = array(t('name'), t('description'), t('status'), t('throttle')); + $header = array(t('Name'), t('Description'), t('Status'), t('Throttle')); } else { $required = array(); - $header = array(t('name'), t('description'), t('enable'), t('default')); + $header = array(t('Name'), t('Description'), t('Enable'), t('Default')); } foreach ($files as $filename => $file) { diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 546ca6e4ea59..72a4c2889f0b 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -294,7 +294,7 @@ function _taxonomy_confirm_del_term($tid) { * Generate a tabular listing of administrative functions for vocabularies. */ function taxonomy_overview() { - $header = array(t('name'), t('node types'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Name'), t('Node types'), array('data' => t('Operations'), 'colspan' => 3)); $vocabularies = taxonomy_get_vocabularies(); diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 546ca6e4ea59..72a4c2889f0b 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -294,7 +294,7 @@ function _taxonomy_confirm_del_term($tid) { * Generate a tabular listing of administrative functions for vocabularies. */ function taxonomy_overview() { - $header = array(t('name'), t('node types'), array('data' => t('operations'), 'colspan' => 3)); + $header = array(t('Name'), t('Node types'), array('data' => t('Operations'), 'colspan' => 3)); $vocabularies = taxonomy_get_vocabularies(); diff --git a/modules/tracker.module b/modules/tracker.module index 66816fece505..fcf057d8307d 100644 --- a/modules/tracker.module +++ b/modules/tracker.module @@ -75,7 +75,7 @@ function tracker_page($uid = 0) { $rows[] = array(array('data' => $pager, 'colspan' => 5)); } - $header = array(t('type'), t('post'), t('author'), t('replies'), t('last post')); + $header = array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last post')); $output .= '<div id="tracker">'; $output .= theme('table', $header, $rows); diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 66816fece505..fcf057d8307d 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -75,7 +75,7 @@ function tracker_page($uid = 0) { $rows[] = array(array('data' => $pager, 'colspan' => 5)); } - $header = array(t('type'), t('post'), t('author'), t('replies'), t('last post')); + $header = array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last post')); $output .= '<div id="tracker">'; $output .= theme('table', $header, $rows); diff --git a/modules/upload.module b/modules/upload.module index b89630ab2e4f..12afc40397e3 100644 --- a/modules/upload.module +++ b/modules/upload.module @@ -111,7 +111,7 @@ function upload_nodeapi(&$node, $op, $arg) { $node->list[$key] = $file->list; } } - + if (($file = file_check_upload('upload')) && user_access('upload files')) { global $user; @@ -146,7 +146,7 @@ function upload_nodeapi(&$node, $op, $arg) { $error['usersize']++; } } - + if ($error['extension'] == count($user->roles) && $user->uid != 1) { form_set_error('upload', t('Error attaching file %name: invalid extension', array('%name' => "<em>$file->filename</em>"))); } @@ -177,7 +177,7 @@ function upload_nodeapi(&$node, $op, $arg) { break; case 'view': if ($node->files) { - $header = array(t('attachment'), t('size')); + $header = array(t('Attachment'), t('Size')); $rows = array(); $previews = array(); @@ -278,7 +278,7 @@ function upload_delete($node) { } function upload_form($node) { - $header = array(t('Delete'), t('List'), t('URL'), t('Size')); + $header = array(t('Delete'), t('List'), t('Url'), t('Size')); $rows = array(); if (is_array($node->files)) { diff --git a/modules/upload/upload.module b/modules/upload/upload.module index b89630ab2e4f..12afc40397e3 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -111,7 +111,7 @@ function upload_nodeapi(&$node, $op, $arg) { $node->list[$key] = $file->list; } } - + if (($file = file_check_upload('upload')) && user_access('upload files')) { global $user; @@ -146,7 +146,7 @@ function upload_nodeapi(&$node, $op, $arg) { $error['usersize']++; } } - + if ($error['extension'] == count($user->roles) && $user->uid != 1) { form_set_error('upload', t('Error attaching file %name: invalid extension', array('%name' => "<em>$file->filename</em>"))); } @@ -177,7 +177,7 @@ function upload_nodeapi(&$node, $op, $arg) { break; case 'view': if ($node->files) { - $header = array(t('attachment'), t('size')); + $header = array(t('Attachment'), t('Size')); $rows = array(); $previews = array(); @@ -278,7 +278,7 @@ function upload_delete($node) { } function upload_form($node) { - $header = array(t('Delete'), t('List'), t('URL'), t('Size')); + $header = array(t('Delete'), t('List'), t('Url'), t('Size')); $rows = array(); if (is_array($node->files)) { diff --git a/modules/user.module b/modules/user.module index 7b6b858a652d..9032c6736360 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1297,7 +1297,7 @@ function user_admin_access($edit = array()) { drupal_set_message(t('The access rule has been deleted.')); } - $header = array(t('type'), t('mask'), t('operations')); + $header = array(t('Type'), t('Mask'), t('Operations')); $result = db_query("SELECT * FROM {access} WHERE type = '%s' AND status = 1 ORDER BY mask", $type); while ($rule = db_fetch_object($result)) { $rows[] = array(t('Allow'), $rule->mask, array('data' => l(t('delete'), "admin/user/configure/access/$type/$rule->aid"), 'align' => 'center')); @@ -1440,7 +1440,7 @@ function user_admin_role($edit = array()) { // Render the role overview. $result = db_query('SELECT * FROM {role} ORDER BY name'); - $header = array(t('name'), t('operations')); + $header = array(t('Name'), t('Operations')); while ($role = db_fetch_object($result)) { if ($role->name != 'anonymous user' && $role->name != 'authenticated user') { $rows[] = array($role->name, array('data' => l(t('edit'), "admin/user/configure/role/$role->rid"), 'align' => 'center')); @@ -1461,10 +1461,10 @@ function user_admin_role($edit = array()) { function user_admin_account() { $header = array( array('data' => t('ID'), 'field' => 'u.uid'), - array('data' => t('username'), 'field' => 'u.name'), - array('data' => t('status'), 'field' => 'u.status'), - array('data' => t('roles')), - array('data' => t('last access'), 'field' => 'u.changed', 'sort' => 'desc'), + array('data' => t('Username'), 'field' => 'u.name'), + array('data' => t('Status'), 'field' => 'u.status'), + array('data' => t('Roles')), + array('data' => t('Last access'), 'field' => 'u.changed', 'sort' => 'desc'), t('operations') ); $sql = 'SELECT u.uid, u.name, u.status, u.changed FROM {users} u WHERE uid != 0'; diff --git a/modules/user/user.module b/modules/user/user.module index 7b6b858a652d..9032c6736360 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1297,7 +1297,7 @@ function user_admin_access($edit = array()) { drupal_set_message(t('The access rule has been deleted.')); } - $header = array(t('type'), t('mask'), t('operations')); + $header = array(t('Type'), t('Mask'), t('Operations')); $result = db_query("SELECT * FROM {access} WHERE type = '%s' AND status = 1 ORDER BY mask", $type); while ($rule = db_fetch_object($result)) { $rows[] = array(t('Allow'), $rule->mask, array('data' => l(t('delete'), "admin/user/configure/access/$type/$rule->aid"), 'align' => 'center')); @@ -1440,7 +1440,7 @@ function user_admin_role($edit = array()) { // Render the role overview. $result = db_query('SELECT * FROM {role} ORDER BY name'); - $header = array(t('name'), t('operations')); + $header = array(t('Name'), t('Operations')); while ($role = db_fetch_object($result)) { if ($role->name != 'anonymous user' && $role->name != 'authenticated user') { $rows[] = array($role->name, array('data' => l(t('edit'), "admin/user/configure/role/$role->rid"), 'align' => 'center')); @@ -1461,10 +1461,10 @@ function user_admin_role($edit = array()) { function user_admin_account() { $header = array( array('data' => t('ID'), 'field' => 'u.uid'), - array('data' => t('username'), 'field' => 'u.name'), - array('data' => t('status'), 'field' => 'u.status'), - array('data' => t('roles')), - array('data' => t('last access'), 'field' => 'u.changed', 'sort' => 'desc'), + array('data' => t('Username'), 'field' => 'u.name'), + array('data' => t('Status'), 'field' => 'u.status'), + array('data' => t('Roles')), + array('data' => t('Last access'), 'field' => 'u.changed', 'sort' => 'desc'), t('operations') ); $sql = 'SELECT u.uid, u.name, u.status, u.changed FROM {users} u WHERE uid != 0'; diff --git a/modules/watchdog.module b/modules/watchdog.module index 1a222700509b..3a3ad74f1221 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -87,10 +87,10 @@ function watchdog_overview($type = '') { } $header = array( - array('data' => t('date'), 'field' => 'w.timestamp', 'sort' => 'desc'), - array('data' => t('message'), 'field' => 'w.message'), - array('data' => t('user'), 'field' => 'u.name'), - array('data' => t('operations'), 'colspan' => '2') + array('data' => t('Date'), 'field' => 'w.timestamp', 'sort' => 'desc'), + array('data' => t('Message'), 'field' => 'w.message'), + array('data' => t('User'), 'field' => 'u.name'), + array('data' => t('Operations'), 'colspan' => '2') ); $sql = 'SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid '. ($type ? $query[$type] : '') . tablesort_sql($header); $result = pager_query($sql, 50); diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index 1a222700509b..3a3ad74f1221 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -87,10 +87,10 @@ function watchdog_overview($type = '') { } $header = array( - array('data' => t('date'), 'field' => 'w.timestamp', 'sort' => 'desc'), - array('data' => t('message'), 'field' => 'w.message'), - array('data' => t('user'), 'field' => 'u.name'), - array('data' => t('operations'), 'colspan' => '2') + array('data' => t('Date'), 'field' => 'w.timestamp', 'sort' => 'desc'), + array('data' => t('Message'), 'field' => 'w.message'), + array('data' => t('User'), 'field' => 'u.name'), + array('data' => t('Operations'), 'colspan' => '2') ); $sql = 'SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid '. ($type ? $query[$type] : '') . tablesort_sql($header); $result = pager_query($sql, 50); -- GitLab