diff -r b25d34fbc7ab -r e0787bb6285b includes/functions.php --- a/includes/functions.php Sun Jan 20 22:34:02 2008 -0500 +++ b/includes/functions.php Mon Jan 21 10:09:48 2008 -0500 @@ -2079,6 +2079,8 @@ function paginate($q, $tpl_text, $num_results, $result_url, $start = 0, $perpage = 10, $callers = Array(), $header = '', $footer = '') { global $db, $session, $paths, $template, $plugins; // Common objects + global $lang; + $parser = $template->makeParserText($tpl_text); $num_pages = ceil ( $num_results / $perpage ); $out = ''; @@ -2093,7 +2095,7 @@ 'display: table; margin: 10px 0 0 auto;'; $begin = '
- '; + '; $block = ''; $end = '
Page:
' . $lang->get('paginate_lbl_page') . '{LINK}
'; $blk = $template->makeParserText($block); @@ -2140,7 +2142,7 @@ } } $url = sprintf($result_url, '0'); - $link = ( 0 == $start ) ? "First" : "« First"; + $link = ( 0 == $start ) ? "" . $lang->get('pagination_btn_first') . "" : "« " . $lang->get('pagination_btn_first') . ""; $blk->assign_vars(array( 'CLASS'=>$cls, 'LINK'=>$link @@ -2182,7 +2184,7 @@ $offset = strval($total); $url = sprintf($result_url, $offset); $j = $i + 1; - $link = ( $offset == strval($start) ) ? "Last" : "Last »"; + $link = ( $offset == strval($start) ) ? "" . $lang->get('pagination_btn_last') . "" : "" . $lang->get('pagination_btn_last') . " »"; $blk->assign_vars(array( 'CLASS'=>$cls, 'LINK'=>$link @@ -2271,7 +2273,7 @@ if ( $start > 0 ) { $url = sprintf($result_url, abs($start - $perpage)); - $link = "« Prev"; + $link = "« " . $lang->get('paginate_btn_prev') . ""; $cls = ( $cls == 'row1' ) ? 'row2' : 'row1'; $blk->assign_vars(array( 'CLASS'=>$cls, @@ -2320,7 +2322,7 @@ } } $url = sprintf($result_url, '0'); - $link = ( 0 == $start ) ? "First" : "« First"; + $link = ( 0 == $start ) ? "" . $lang->get('pagination_btn_first') . "" : "« " . $lang->get('pagination_btn_first') . ""; $blk->assign_vars(array( 'CLASS'=>$cls, 'LINK'=>$link @@ -2360,7 +2362,7 @@ $offset = strval($total); $url = sprintf($result_url, $offset); $j = $i + 1; - $link = ( $offset == strval($start) ) ? "Last" : "Last »"; + $link = ( $offset == strval($start) ) ? "" . $lang->get('pagination_btn_last') . "" : "" . $lang->get('pagination_btn_last') . " »"; $blk->assign_vars(array( 'CLASS'=>$cls, 'LINK'=>$link @@ -2374,7 +2376,7 @@ { $link_offset = abs($start + $perpage); $url = htmlspecialchars(sprintf($result_url, strval($link_offset))); - $link = "Next »"; + $link = "" . $lang->get('paginate_btn_next') . " »"; $cls = ( $cls == 'row1' ) ? 'row2' : 'row1'; $blk->assign_vars(array( 'CLASS'=>$cls,