--- org.support.module 2009-09-10 23:48:42.984375000 +0200 +++ my.support.module 2009-09-11 00:03:37.437500000 +0200 @@ -1685,7 +1685,7 @@ function _support_states($all = TRUE, $s } // include the current state, even if user doesn't actually have access if ($sid && !in_array($sid, $states["$admin-$all-$sid"])) { - $states["$admin-$all-$sid"][$sid] = db_result(db_query("SELECT state FROM {support_states} WHERE sid = %d", $sid)); + $states["$admin-$all-$sid"][$sid] = t(db_result(db_query("SELECT state FROM {support_states} WHERE sid = %d", $sid))); } } @@ -1700,7 +1700,7 @@ function _support_state_default() { if (!$default) { $default = db_result(db_query_range('SELECT sid FROM {support_states} WHERE isdefault = 1 ORDER BY weight ASC', 0, 1)); } - return $default; + return t($default); } /** @@ -1711,7 +1711,7 @@ function _support_state_default() { if (!$secondary) { $secondary = db_result(db_query_range('SELECT sid FROM {support_states} WHERE phase2 = 1 ORDER BY weight ASC', 0, 1)); } - return $secondary; + return t($secondary); } /** @@ -1723,7 +1723,7 @@ function _support_priorities($pid = NULL if (empty($priorities)) { $result = db_query('SELECT pid, priority FROM {support_priority} ORDER BY weight'); while ($priority = db_fetch_object($result)) { - $priorities[$priority->pid] = $priority->priority; + $priorities[$priority->pid] = t($priority->priority); } } @@ -1744,7 +1744,7 @@ function _support_priorities($pid = NULL function _support_priority_default() { static $default = NULL; if (!$default) { - $default = db_result(db_query_range('SELECT pid FROM {support_priority} WHERE isdefault = 1', 0, 1)); + $default = t(db_result(db_query_range('SELECT pid FROM {support_priority} WHERE isdefault = 1', 0, 1))); } return $default; } @@ -1766,7 +1766,7 @@ function _support_state($state) { $state_name[$state] = db_result(db_query('SELECT state FROM {support_states} WHERE sid = %d', $state)); } - return $state_name[$state]; + return t($state_name[$state]); } /**