Changeset 1088 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 04/17/2004 03:56:23 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-category.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r987 r1088 64 64 case 'multiple': 65 65 if ($category->category_parent) echo get_category_parents($category->category_parent, TRUE); 66 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title=" View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a></li>';66 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a></li>'; 67 67 break; 68 68 case 'single': 69 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title=" View all posts in '.$category->cat_name.'>';69 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '>'; 70 70 if ($category->category_parent)echo get_category_parents($category->category_parent, FALSE); 71 71 echo $category->cat_name.'</a></li>'; … … 73 73 case '': 74 74 default: 75 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title=" View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a></li>';75 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a></li>'; 76 76 } 77 77 } … … 85 85 case 'multiple': 86 86 if ($category->category_parent) echo get_category_parents($category->category_parent, TRUE); 87 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title=" View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a>';87 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a>'; 88 88 case 'single': 89 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title=" View all posts in '.$category->cat_name.'">';89 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'; 90 90 if ($category->category_parent) echo get_category_parents($category->category_parent, FALSE); 91 91 echo "$category->cat_name</a>"; 92 92 case '': 93 93 default: 94 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title=" View all posts in '.$category->cat_name.'">'.$category->cat_name.'</a>';94 echo '<a href="' . get_category_link(0, $category->category_id, $category->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $category->cat_name) . '">'.$category->cat_name.'</a>'; 95 95 } 96 96 ++$i; … … 134 134 if ($parent->category_parent) $chain .= get_category_parents($parent->category_parent, $link, $separator, $nicename); 135 135 if ($link) { 136 $chain .= '<a href="' . get_category_link(0, $parent->cat_ID, $parent->category_nicename) . '" title=" View all posts in "'.$parent->cat_name.'">'.$name.'</a>' . $separator;136 $chain .= '<a href="' . get_category_link(0, $parent->cat_ID, $parent->category_nicename) . '" title="' . sprintf(__("View all posts in %s"), $parent->cat_name) . '">'.$name.'</a>' . $separator; 137 137 } else { 138 138 $chain .= $name.$separator; … … 314 314 $link = '<a href="'.get_category_link(0, $category->cat_ID, $category->category_nicename).'" '; 315 315 if ($use_desc_for_title == 0 || empty($category->category_description)) { 316 $link .= 'title=" View all posts filed under ' . htmlspecialchars($category->cat_name) . '"';316 $link .= 'title="'. sprintf(__("View all posts filed under %s"), htmlspecialchars($category->cat_name)) . '"'; 317 317 } else { 318 318 $link .= 'title="' . htmlspecialchars($category->category_description) . '"'; … … 373 373 $after = '</li>'; 374 374 } 375 echo $before . "No categories". $after . "\n";375 echo $before . __("No categories") . $after . "\n"; 376 376 return; 377 377 }
Note: See TracChangeset
for help on using the changeset viewer.