Changeset 7207
- Timestamp:
- 01/04/07 15:34:36 (2 years ago)
- Files:
-
- wp-stats/trunk/stats/stats.php (modified) (4 diffs)
- wp-stats/trunk/stats/wp-stats.pot (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-stats/trunk/stats/stats.php
r7204 r7207 563 563 564 564 $temp_stats .= '<h2>'.__('Comments Posted By', 'wp-stats').' '.$comment_author.'</h2>'."\n"; 565 $temp_stats .= '<p>'.sprintf(__('Displaying <strong>%s</strong> To <strong>% t</strong> Of <strong>%u</strong> Comments', 'wp-stats'), $displayonpage, $maxonpage, $totalcomments).'</p>'."\n";565 $temp_stats .= '<p>'.sprintf(__('Displaying <strong>%s</strong> To <strong>%s</strong> Of <strong>%s</strong> Comments', 'wp-stats'), $displayonpage, $maxonpage, $totalcomments).'</p>'."\n"; 566 566 567 567 // Get Comments … … 580 580 if($post_title != $cache_post_title) { 581 581 $temp_stats .= "<p><strong><a href=\"".get_permalink()."\" title=\"".__('Posted On', 'wp-stats')." $post_date\">".__('Protected', 'wp-stats').": $post_title</a></strong></p>\n"; 582 $temp_stats .= '<blockquote>'.__('Comments Protected', 'wp-stats').'</blockquote>' ."\n";582 $temp_stats .= '<blockquote>'.__('Comments Protected', 'wp-stats').'</blockquote>'; 583 583 } 584 584 } else { … … 587 587 $temp_stats .= "<p><strong><a href=\"".get_permalink()."\" title=\"".__('Posted On', 'wp-stats')." $post_date\">$post_title</a></strong></p>\n"; 588 588 } 589 $temp_stats .= "<blockquote>$comment_content <a href=\"".get_permalink()."#comment-$comment_id\">Comment</a> ".__('Posted By', 'wp-stats')." <strong>$comment_author2</strong> ".__('On', 'wp-stats')." $comment_date</blockquote> \n";589 $temp_stats .= "<blockquote>$comment_content <a href=\"".get_permalink()."#comment-$comment_id\">Comment</a> ".__('Posted By', 'wp-stats')." <strong>$comment_author2</strong> ".__('On', 'wp-stats')." $comment_date</blockquote>"; 590 590 } 591 591 $cache_post_title = $post_title; … … 598 598 if($totalpages > 1) { 599 599 // Previous Page 600 $temp_stats .= '<p>' ."\n";601 $temp_stats .= '<span style="float: left">' ."\n";600 $temp_stats .= '<p>'; 601 $temp_stats .= '<span style="float: left">'; 602 602 if($page > 1 && ((($page*$perpage)-($perpage-1)) < $totalcomments)) { 603 $temp_stats .= '<strong>«</strong> <a href="'.stats_page_link($comment_author_link, $page-1).'" title="« '.__('Previous Page', 'wp-stats').'">'.__('Previous Page', 'wp-stats').'</a>' ."\n";603 $temp_stats .= '<strong>«</strong> <a href="'.stats_page_link($comment_author_link, $page-1).'" title="« '.__('Previous Page', 'wp-stats').'">'.__('Previous Page', 'wp-stats').'</a>'; 604 604 } else { 605 $temp_stats .= ' ' ."\n";606 } 607 $temp_stats .= '</span>' ."\n";605 $temp_stats .= ' '; 606 } 607 $temp_stats .= '</span>'; 608 608 // Next Page 609 $temp_stats .= '<span style="float: right">' ."\n";609 $temp_stats .= '<span style="float: right">'; 610 610 if($page >= 1 && ((($page*$perpage)+1) < $totalcomments)) { 611 $temp_stats .= '<a href="'.stats_page_link($comment_author_link, $page+1).'" title="'.__('Next Page', 'wp-stats').' »">'.__('Next Page', 'wp-stats').'</a> <strong>»</strong>' ."\n";611 $temp_stats .= '<a href="'.stats_page_link($comment_author_link, $page+1).'" title="'.__('Next Page', 'wp-stats').' »">'.__('Next Page', 'wp-stats').'</a> <strong>»</strong>'; 612 612 } else { 613 $temp_stats .= ' ' ."\n";614 } 615 $temp_stats .= '</span>' ."\n";616 $temp_stats .= '</p>' ."\n";613 $temp_stats .= ' '; 614 } 615 $temp_stats .= '</span>'; 616 $temp_stats .= '</p>'; 617 617 // Pages 618 $temp_stats .= '<br style="clear: both" />' ."\n";619 $temp_stats .= '<p align="center">' ."\n";620 $temp_stats .= sprintf(__('Pages (%s)', 'wp-stats'), $totalpages).': '."\n";618 $temp_stats .= '<br style="clear: both" />'; 619 $temp_stats .= '<p align="center">'; 620 $temp_stats .= sprintf(__('Pages (%s)', 'wp-stats'), $totalpages).': '; 621 621 if ($page >= 4) { 622 $temp_stats .= '<strong><a href="'.stats_page_link($comment_author_link).'" title="'.__('Go to First Page', 'wp-stats').'">« '.__('First', 'wp-stats').'</a></strong> ... ' ."\n";622 $temp_stats .= '<strong><a href="'.stats_page_link($comment_author_link).'" title="'.__('Go to First Page', 'wp-stats').'">« '.__('First', 'wp-stats').'</a></strong> ... '; 623 623 } 624 624 if($page > 1) { 625 $temp_stats .= ' <strong><a href="'.stats_page_link($comment_author_link, $page-1).'" title="« '.__('Go to Page', 'wp-stats').' '.($page-1).'">«</a></strong> ' ."\n";625 $temp_stats .= ' <strong><a href="'.stats_page_link($comment_author_link, $page-1).'" title="« '.__('Go to Page', 'wp-stats').' '.($page-1).'">«</a></strong> '; 626 626 } 627 627 for($i = $page - 2 ; $i <= $page +2; $i++) { 628 628 if ($i >= 1 && $i <= $totalpages) { 629 629 if($i == $page) { 630 $temp_stats .= "<strong>[$i]</strong> " ."\n";630 $temp_stats .= "<strong>[$i]</strong> "; 631 631 } else { 632 $temp_stats .= '<a href="'.stats_page_link($comment_author_link, $i).'" title="'.__('Page', 'wp-stats').' '.$i.'">'.$i.'</a> ' ."\n";632 $temp_stats .= '<a href="'.stats_page_link($comment_author_link, $i).'" title="'.__('Page', 'wp-stats').' '.$i.'">'.$i.'</a> '; 633 633 } 634 634 } 635 635 } 636 636 if($page < $totalpages) { 637 $temp_stats .= ' <strong><a href="'.stats_page_link($comment_author_link, $page+1).'" title="'.__('Go to Page', 'wp-stats').' '.($page+1).' »">»</a></strong> ' ."\n";637 $temp_stats .= ' <strong><a href="'.stats_page_link($comment_author_link, $page+1).'" title="'.__('Go to Page', 'wp-stats').' '.($page+1).' »">»</a></strong> '; 638 638 } 639 639 if (($page+2) < $totalpages) { 640 $temp_stats .= ' ... <strong><a href="'.stats_page_link($comment_author_link, $totalpages).'" title="'.__('Go to Last Page', 'wp-stats').'">'.__('Last', 'wp-stats').' »</a></strong>' ."\n";640 $temp_stats .= ' ... <strong><a href="'.stats_page_link($comment_author_link, $totalpages).'" title="'.__('Go to Last Page', 'wp-stats').'">'.__('Last', 'wp-stats').' »</a></strong>'; 641 641 } 642 642 $temp_stats .= '</p>'."\n"; 643 643 } 644 $temp_stats .= '<p><strong>««</strong> <a href="'.$stats_url.'">'.__('Back To Stats Page', 'wp-stats').' </a></p>' ."\n";644 $temp_stats .= '<p><strong>««</strong> <a href="'.$stats_url.'">'.__('Back To Stats Page', 'wp-stats').' </a></p>'; 645 645 } // End If 646 646 wp-stats/trunk/stats/wp-stats.pot
r7204 r7207 3 3 "Project-Id-Version: WP-Stats 2.06\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-01-04 2 1:57+0800\n"5 "PO-Revision-Date: 2007-01-04 23:34+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@homtail.com>\n" … … 400 400 401 401 #: stats.php:565 402 msgid "Displaying <strong>%s</strong> To <strong>%t</strong> Of <strong>%u</strong> Comments" 402 #, php-format 403 msgid "Displaying <strong>%s</strong> To <strong>%s</strong> Of <strong>%s</strong> Comments" 403 404 msgstr "" 404 405
