- Subset of patch 5613 by Goba: fixed some translation issues.
parent
653733a84c
commit
0db96f196a
|
@ -803,10 +803,10 @@ function format_date($timestamp, $type = "medium", $format = "") {
|
|||
}
|
||||
|
||||
for ($i = strlen($format); $i >= 0; $c = $format[--$i]) {
|
||||
if (strstr("DFlMSw", $c)) {
|
||||
if (strstr("AaDFlM", $c)) {
|
||||
$date = t(date($c, $timestamp)) . $date;
|
||||
}
|
||||
else if (strstr("AaBdgGhHiIjLmnOrstTUWYyZz", $c)) {
|
||||
else if (strstr("BdgGhHiIjLmnOrsStTUwWYyZz", $c)) {
|
||||
$date = date($c, $timestamp) . $date;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -33,8 +33,7 @@ function tablesort($cell, $header) {
|
|||
if ($cell['data'] == $ts['order']) {
|
||||
$cell['class'] = 'cell-highlight';
|
||||
$image = ' <img src="' . theme('image', 'arrow-' . $ts['sort'] . '.gif"') . ' alt="'. t('sort icon') .'" />';
|
||||
$dir = array("asc" => "ascending", "desc" => "descending");
|
||||
$title = t("sort ". $dir[$ts['sort']]);
|
||||
$title = ($ts['sort'] == 'asc' ? t("sort ascending") : t("sort descending"));
|
||||
} else {
|
||||
// If the user clicks a different header, we want to sort ascending initially.
|
||||
$ts['sort'] = "asc";
|
||||
|
|
Loading…
Reference in New Issue