Commit 2c4a82bd authored by Steven Wittens's avatar Steven Wittens

#11503: (more) missing t()

parent 7a536c06
......@@ -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) {
......
......@@ -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) {
......
......@@ -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));
......
......@@ -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));
......
......@@ -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);
......
......@@ -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);
......
......@@ -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')) {
......
......@@ -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')) {
......
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