Thanks first,
can you explain this a little for me.
function _( $str, $case=0 ) {
$str = trim($str);
if (empty( $str )) {
return '';
}
$x = @$GLOBALS['translate'][$str];
if ($x) {
$str = $x;
} else if (@$this->cfg['locale_warn']) {
if ($this->base_locale != $this->user_locale ||
($this->base_locale == $this->user_locale && !in_array( $str, @$GLOBALS['translate'] )) ) {
$str .= @$this->cfg['locale_alert'];
}
}
switch ($case) {
case UI_CASE_UPPER:
$str = strtoupper( $str );
break;
case UI_CASE_LOWER:
$str = strtolower( $str );
break;
case UI_CASE_UPPERFIRST:
break;
}
/ stripslashes added to fix #811242 on 2004 Jan 10
if no problems occur, delete this comment. (gregor) */
return stripslashes($str);
}
sharma