Make WordPress Core


Ignore:
Timestamp:
04/17/2004 03:56:23 PM (22 years ago)
Author:
rboren
Message:

Mark strings for translation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r987 r1088  
    6464                case 'multiple':
    6565                    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>';
    6767                    break;
    6868                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) . '>';
    7070                    if ($category->category_parent)echo get_category_parents($category->category_parent, FALSE);
    7171                    echo $category->cat_name.'</a></li>';
     
    7373                case '':
    7474                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>';
    7676            }
    7777        }
     
    8585                case 'multiple':
    8686                    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>';
    8888                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) . '">';
    9090                    if ($category->category_parent)    echo get_category_parents($category->category_parent, FALSE);
    9191                    echo "$category->cat_name</a>";
    9292                case '':
    9393                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>';
    9595            }
    9696            ++$i;
     
    134134    if ($parent->category_parent) $chain .= get_category_parents($parent->category_parent, $link, $separator, $nicename);
    135135    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;
    137137    } else {
    138138        $chain .= $name.$separator;
     
    314314            $link = '<a href="'.get_category_link(0, $category->cat_ID, $category->category_nicename).'" ';
    315315            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)) . '"';
    317317            } else {
    318318                $link .= 'title="' . htmlspecialchars($category->category_description) . '"';
     
    373373            $after = '</li>';
    374374        }
    375         echo $before . "No categories" . $after . "\n";
     375        echo $before . __("No categories") . $after . "\n";
    376376        return;
    377377    }
Note: See TracChangeset for help on using the changeset viewer.