diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-10-12 16:10:54 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-10-12 16:10:54 +0000 |
commit | 2c4a82bda243a006af96cb76be0c0500b4c3a47b (patch) | |
tree | cf68e2c0d1bc4155e432d58e8ca112afcb05607c /modules | |
parent | 7a536c06d41ccfef114525296b96e1078f9c72cb (diff) | |
download | brdo-2c4a82bda243a006af96cb76be0c0500b4c3a47b.tar.gz brdo-2c4a82bda243a006af96cb76be0c0500b4c3a47b.tar.bz2 |
#11503: (more) missing t()
Diffstat (limited to 'modules')
-rw-r--r-- | modules/comment.module | 8 | ||||
-rw-r--r-- | modules/comment/comment.module | 8 | ||||
-rw-r--r-- | modules/statistics.module | 2 | ||||
-rw-r--r-- | modules/statistics/statistics.module | 2 | ||||
-rw-r--r-- | modules/system.module | 2 | ||||
-rw-r--r-- | modules/system/system.module | 2 | ||||
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
8 files changed, 14 insertions, 14 deletions
diff --git a/modules/comment.module b/modules/comment.module index 10ebec947..89beff806 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -955,7 +955,7 @@ function comment_admin_edit($cid) { $form .= form_textfield(t('Subject'), 'subject', $comment->subject, 70, 128); $form .= form_textarea(t('Comment'), 'comment', $comment->comment, 70, 15, ''); $form .= filter_form('format', $comment->format); - $form .= form_radios(t('Status'), 'status', $comment->status, array('published', 'not published')); + $form .= form_radios(t('Status'), 'status', $comment->status, array(t('published'), t('not published'))); $form .= form_hidden('cid', $cid); $form .= form_submit(t('Submit')); print theme('page', form($form)); @@ -1164,7 +1164,7 @@ function comment_vote_settings($mid = 0) { $vote = db_fetch_object(db_query('SELECT vote, weight FROM {moderation_votes} WHERE mid = %d', $mid)); } - $output .= '<br /><h3>'. (isset($mid) ? 'Edit' : 'Add new') .' moderation option</h3>'; + $output .= '<br /><h3>'. (isset($mid) ? t('Edit') : t('Add new')) .' moderation option</h3>'; $form .= form_textfield(t('Vote'), 'vote', $vote->vote, 32, 64, t('The name of this vote. Example: "off topic", "excellent", "sucky".')); $form .= form_textfield(t('Weight'), 'weight', $vote->weight, 32, 64, t('Used to order votes in the comment control box; heavier sink.')); if ($mid) { @@ -1201,7 +1201,7 @@ function comment_threshold_settings($fid = 0) { drupal_set_message(t('The threshold has been added.')); } - $output .= '<h3>Comment threshold overview</h3>'; + $output .= '<h3>'. t('Comment threshold overview') .'</h3>'; // load up and show any thresholds previously defined. $header = array(t('Name'), t('Minimum score'), t('Operations')); @@ -1218,7 +1218,7 @@ function comment_threshold_settings($fid = 0) { $filter = db_fetch_object(db_query('SELECT filter, fid, minimum FROM {moderation_filters} WHERE fid = %d', $fid)); } - $output .= '<br /><h3>'. (isset($fid) ? 'Edit' : 'Add new') .' threshold</h3>'; + $output .= '<br /><h3>'. (isset($fid) ? t('Edit') : t('Add new')) .' threshold</h3>'; $form .= form_textfield(t('Threshold name'), 'filter', $filter->filter, 32, 64, t('The name of this threshold. Example: "good comments", "+1 comments", "everything".')); $form .= form_textfield(t('Minimum score'), 'minimum', $filter->minimum, 32, 64, t('Show all comments whose score is larger or equal to the provided minimal score. Range: -127 +128')); if ($fid) { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 10ebec947..89beff806 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -955,7 +955,7 @@ function comment_admin_edit($cid) { $form .= form_textfield(t('Subject'), 'subject', $comment->subject, 70, 128); $form .= form_textarea(t('Comment'), 'comment', $comment->comment, 70, 15, ''); $form .= filter_form('format', $comment->format); - $form .= form_radios(t('Status'), 'status', $comment->status, array('published', 'not published')); + $form .= form_radios(t('Status'), 'status', $comment->status, array(t('published'), t('not published'))); $form .= form_hidden('cid', $cid); $form .= form_submit(t('Submit')); print theme('page', form($form)); @@ -1164,7 +1164,7 @@ function comment_vote_settings($mid = 0) { $vote = db_fetch_object(db_query('SELECT vote, weight FROM {moderation_votes} WHERE mid = %d', $mid)); } - $output .= '<br /><h3>'. (isset($mid) ? 'Edit' : 'Add new') .' moderation option</h3>'; + $output .= '<br /><h3>'. (isset($mid) ? t('Edit') : t('Add new')) .' moderation option</h3>'; $form .= form_textfield(t('Vote'), 'vote', $vote->vote, 32, 64, t('The name of this vote. Example: "off topic", "excellent", "sucky".')); $form .= form_textfield(t('Weight'), 'weight', $vote->weight, 32, 64, t('Used to order votes in the comment control box; heavier sink.')); if ($mid) { @@ -1201,7 +1201,7 @@ function comment_threshold_settings($fid = 0) { drupal_set_message(t('The threshold has been added.')); } - $output .= '<h3>Comment threshold overview</h3>'; + $output .= '<h3>'. t('Comment threshold overview') .'</h3>'; // load up and show any thresholds previously defined. $header = array(t('Name'), t('Minimum score'), t('Operations')); @@ -1218,7 +1218,7 @@ function comment_threshold_settings($fid = 0) { $filter = db_fetch_object(db_query('SELECT filter, fid, minimum FROM {moderation_filters} WHERE fid = %d', $fid)); } - $output .= '<br /><h3>'. (isset($fid) ? 'Edit' : 'Add new') .' threshold</h3>'; + $output .= '<br /><h3>'. (isset($fid) ? t('Edit') : t('Add new')) .' threshold</h3>'; $form .= form_textfield(t('Threshold name'), 'filter', $filter->filter, 32, 64, t('The name of this threshold. Example: "good comments", "+1 comments", "everything".')); $form .= form_textfield(t('Minimum score'), 'minimum', $filter->minimum, 32, 64, t('Show all comments whose score is larger or equal to the provided minimal score. Range: -127 +128')); if ($fid) { diff --git a/modules/statistics.module b/modules/statistics.module index eaeba22a6..c7891ecfe 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -431,7 +431,7 @@ function statistics_admin_content() { $result = pager_query($sql, 20); // WHERE s.%s <> '0' while ($nid = db_fetch_object($result)) { - $rows[] = array(l($nid->title, 'node/'. $nid->nid, array('title' => t('View this posting.'))), $nid->daycount, $nid->totalcount, format_date($nid->timestamp, 'small'), l('track title', 'admin/logs/hits/page/'. urlencode($nid->title))); + $rows[] = array(l($nid->title, 'node/'. $nid->nid, array('title' => t('View this posting.'))), $nid->daycount, $nid->totalcount, format_date($nid->timestamp, 'small'), l(t('track title'), 'admin/logs/hits/page/'. urlencode($nid->title))); } if ($pager = theme('pager', NULL, 20, 0, tablesort_pager())) { $rows[] = array(array('data' => $pager, 'colspan' => 5)); diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index eaeba22a6..c7891ecfe 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -431,7 +431,7 @@ function statistics_admin_content() { $result = pager_query($sql, 20); // WHERE s.%s <> '0' while ($nid = db_fetch_object($result)) { - $rows[] = array(l($nid->title, 'node/'. $nid->nid, array('title' => t('View this posting.'))), $nid->daycount, $nid->totalcount, format_date($nid->timestamp, 'small'), l('track title', 'admin/logs/hits/page/'. urlencode($nid->title))); + $rows[] = array(l($nid->title, 'node/'. $nid->nid, array('title' => t('View this posting.'))), $nid->daycount, $nid->totalcount, format_date($nid->timestamp, 'small'), l(t('track title'), 'admin/logs/hits/page/'. urlencode($nid->title))); } if ($pager = theme('pager', NULL, 20, 0, tablesort_pager())) { $rows[] = array(array('data' => $pager, 'colspan' => 5)); diff --git a/modules/system.module b/modules/system.module index 80d4ddcbc..b955cdd89 100644 --- a/modules/system.module +++ b/modules/system.module @@ -194,7 +194,7 @@ function system_view_general() { $period['1000000000'] = t('Never'); $group = form_textfield(t('Default 403 (access denied) page'), 'site_403', variable_get('site_403', ''), 70, 70, t('This page is displayed when the requested document is denied to the current user. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.')); $group .= form_textfield(t('Default 404 (not found) page'), 'site_404', variable_get('site_404', ''), 70, 70, t('This page is displayed when no other content matches the requested document. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.')); - $group .= form_select(t('Error reporting'), 'error_level', variable_get('error_level', 1), array('Write errors to the log', 'Write errors to the log and to the screen'), t('Where Drupal, PHP and SQL errors are logged. On a production server it is recommended that errors are only written to the error log. On a test server it can be helpful to write logs to the screen.')); + $group .= form_select(t('Error reporting'), 'error_level', variable_get('error_level', 1), array(t('Write errors to the log'), t('Write errors to the log and to the screen')), t('Where Drupal, PHP and SQL errors are logged. On a production server it is recommended that errors are only written to the error log. On a test server it can be helpful to write logs to the screen.')); $group .= form_select(t('Discard log entries older than'), 'watchdog_clear', variable_get('watchdog_clear', 604800), $period, t('The time log entries should be kept. Older entries will be automatically discarded. Requires crontab.')); $output .= form_group(t('Error handling'), $group); diff --git a/modules/system/system.module b/modules/system/system.module index 80d4ddcbc..b955cdd89 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -194,7 +194,7 @@ function system_view_general() { $period['1000000000'] = t('Never'); $group = form_textfield(t('Default 403 (access denied) page'), 'site_403', variable_get('site_403', ''), 70, 70, t('This page is displayed when the requested document is denied to the current user. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.')); $group .= form_textfield(t('Default 404 (not found) page'), 'site_404', variable_get('site_404', ''), 70, 70, t('This page is displayed when no other content matches the requested document. If you are not using clean URLs, specify the part after "?q=". If unsure, specify nothing.')); - $group .= form_select(t('Error reporting'), 'error_level', variable_get('error_level', 1), array('Write errors to the log', 'Write errors to the log and to the screen'), t('Where Drupal, PHP and SQL errors are logged. On a production server it is recommended that errors are only written to the error log. On a test server it can be helpful to write logs to the screen.')); + $group .= form_select(t('Error reporting'), 'error_level', variable_get('error_level', 1), array(t('Write errors to the log'), t('Write errors to the log and to the screen')), t('Where Drupal, PHP and SQL errors are logged. On a production server it is recommended that errors are only written to the error log. On a test server it can be helpful to write logs to the screen.')); $group .= form_select(t('Discard log entries older than'), 'watchdog_clear', variable_get('watchdog_clear', 604800), $period, t('The time log entries should be kept. Older entries will be automatically discarded. Requires crontab.')); $output .= form_group(t('Error handling'), $group); diff --git a/modules/user.module b/modules/user.module index 2fec399f0..952659c00 100644 --- a/modules/user.module +++ b/modules/user.module @@ -1393,7 +1393,7 @@ function user_admin_perm($edit = array()) { } // Render role/permission overview: - $header = array_merge(array('permission'), $role_names); + $header = array_merge(array(t('permission')), $role_names); foreach (module_list() as $module) { if ($perms = module_invoke($module, 'perm')) { diff --git a/modules/user/user.module b/modules/user/user.module index 2fec399f0..952659c00 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1393,7 +1393,7 @@ function user_admin_perm($edit = array()) { } // Render role/permission overview: - $header = array_merge(array('permission'), $role_names); + $header = array_merge(array(t('permission')), $role_names); foreach (module_list() as $module) { if ($perms = module_invoke($module, 'perm')) { |