diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-02-05 22:58:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-02-05 22:58:59 +0000 |
commit | 0db96f196a89956e60ad38aaf8fac1dcbdf0fa4c (patch) | |
tree | 1107dff8ad9c9d530a157ae048f5d9e9aba93edd /includes | |
parent | 653733a84c6b369979b475a4eb4f3cc7e6e3c530 (diff) | |
download | brdo-0db96f196a89956e60ad38aaf8fac1dcbdf0fa4c.tar.gz brdo-0db96f196a89956e60ad38aaf8fac1dcbdf0fa4c.tar.bz2 |
- Subset of patch 5613 by Goba: fixed some translation issues.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 | ||||
-rw-r--r-- | includes/tablesort.inc | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc index 3afdf3cfd..27ae73d3b 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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 { diff --git a/includes/tablesort.inc b/includes/tablesort.inc index 308693b3c..a15bcdfe4 100644 --- a/includes/tablesort.inc +++ b/includes/tablesort.inc @@ -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"; |