Commit f2f34165 authored by Dries's avatar Dries

- Patch #80934 by timnc: more t() fixes.

parent 163f1acc
......@@ -388,7 +388,7 @@ function theme_pager_link($text, $page_new, $element, $parameters = array(), $at
$attributes['title'] = $titles[$text];
}
else if (is_numeric($text)) {
$attributes['title'] = t('Go to page %number', array('%number' => $text));
$attributes['title'] = t('Go to page @number', array('@number' => $text));
}
}
......
......@@ -63,7 +63,7 @@ function tablesort_sql($header, $before = '') {
function tablesort_header($cell, $header, $ts) {
// Special formatting for the currently sorted column header.
if (is_array($cell) && isset($cell['field'])) {
$title = t('sort by %s', array('%s' => $cell['data']));
$title = t('sort by @s', array('@s' => $cell['data']));
if ($cell['data'] == $ts['name']) {
$ts['sort'] = (($ts['sort'] == 'asc') ? 'desc' : 'asc');
$cell['class'] = 'active';
......
......@@ -324,7 +324,7 @@ function theme_block_admin_display($form) {
// Output region header
if ($status && $region != $last_region) {
$region_title = t('%region', array('%region' => drupal_ucfirst($block_regions[$region])));
$region_title = t('@region', array('@region' => drupal_ucfirst($block_regions[$region])));
$rows[] = array(array('data' => $region_title, 'class' => 'region', 'colspan' => ($throttle ? 7 : 6)));
$last_region = $region;
}
......
......@@ -49,7 +49,7 @@ function blog_access($op, $node) {
function blog_user($type, &$edit, &$user) {
if ($type == 'view' && user_access('edit own blog', $user)) {
$items[] = array('title' => t('Blog'),
'value' => l(t('view recent blog entries'), "blog/$user->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $user->name)))),
'value' => l(t('view recent blog entries'), "blog/$user->uid", array('title' => t("Read @username's latest blog entries.", array('@username' => $user->name)))),
'class' => 'blog',
);
return array(t('History') => $items);
......@@ -249,7 +249,7 @@ function blog_link($type, $node = NULL, $teaser = FALSE) {
$links['blog_usernames_blog'] = array(
'title' => t("@username's blog", array('@username' => $node->name)),
'href' => "blog/$node->uid",
'attributes' => array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)))
'attributes' => array('title' => t("Read @username's latest blog entries.", array('@username' => $node->name)))
);
}
}
......
......@@ -227,7 +227,7 @@ function upload_admin_settings() {
foreach ($roles as $rid => $role) {
$form['settings_role_'. $rid] = array(
'#type' => 'fieldset',
'#title' => t('Settings for %role', array('%role' => $role)),
'#title' => t('Settings for @role', array('@role' => $role)),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
......
......@@ -138,7 +138,7 @@ function chameleon_node($node, $teaser = 0, $page = 0) {
$output .= " </div>\n";
$submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array('#title' => t("By %author at %date", array('%author' => theme('username', $node), '%date' => format_date($node->created, 'small')))) : array();
$submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array('#title' => t("By !author at @date", array('!author' => theme('username', $node), '@date' => format_date($node->created, 'small')))) : array();
$terms = array();
if (module_exists('taxonomy')) {
......@@ -159,7 +159,7 @@ function chameleon_node($node, $teaser = 0, $page = 0) {
}
function chameleon_comment($comment, $links = "") {
$submitted['comment_submitted'] = array('#title' => t('By %author at %date', array('%author' => theme('username', $comment), '%date' => format_date($comment->timestamp. 'small'))));
$submitted['comment_submitted'] = array('#title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp. 'small'))));
$output = "<div class=\"comment". ($comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n";
$output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") ."</h3>\n";
......
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