Make WordPress Core

Changeset 1088


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

Mark strings for translation.

Location:
trunk/wp-includes
Files:
4 edited

Legend:

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

    r987 r1088  
    131131            if (! $hide_empty) echo $name;
    132132        } else {
    133             $link = '<a href="' . get_author_link(0, $author->ID, $author->user_nicename) . '" title="Posts by ' . htmlspecialchars($author->user_nickname) . '">' . stripslashes($name) . '</a>';
     133            $link = '<a href="' . get_author_link(0, $author->ID, $author->user_nicename) . '" title="' . sprintf(__("Posts by %s"), htmlspecialchars($author->user_nickname)) . '">' . stripslashes($name) . '</a>';
    134134
    135135            if ( (! empty($feed_image)) || (! empty($feed)) ) {
  • 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    }
  • trunk/wp-includes/template-functions-geo.php

    r801 r1088  
    4949    $sites = array(
    5050                   array('http://www.acme.com/mapper/?lat='.get_Lat().'&amp;long='.get_Lon().'&amp;scale=11&amp;theme=Image&amp;width=3&amp;height=2&amp;dot=Yes',
    51                          'Acme Mapper'),
     51                         __('Acme Mapper')),
    5252                   array('http://geourl.org/near/?lat='.get_Lat().'&amp;lon='.get_Lon().'&amp;dist=500',
    53                          'GeoURLs near here'),
     53                         __('GeoURLs near here')),
    5454                   array('http://www.geocaching.com/seek/nearest.aspx?origin_lat='.get_Lat().'&amp;origin_long='.get_Lon().'&amp;dist=5',
    55                          'Geocaches Near Nere'),
     55                         __('Geocaches near here')),
    5656                   array('http://www.mapquest.com/maps/map.adp?latlongtype=decimal&amp;latitude='.get_Lat().'&amp;longitude='.get_Lon(),
    57                          'Mapquest map of this spot'),
     57                         __('Mapquest map of this spot')),
    5858                   array('http://www.sidebit.com/ProjectGeoURLMap.php?lat='.get_Lat().'&amp;lon='.get_Lon(),
    59                          'SideBit URL Map of this spot'),
     59                         __('SideBit URL Map of this spot')),
    6060                   array('http://confluence.org/confluence.php?lat='.get_Lat().'&amp;lon='.get_Lon(),
    61                          'Confluence.org near here'),
     61                         __('Confluence.org near here')),
    6262                   array('http://www.topozone.com/map.asp?lat='.get_Lat().'&amp;lon='.get_Lon(),
    63                          'Topozone near here'),
     63                         __('Topozone near here')),
    6464                   array('http://www.findu.com/cgi-bin/near.cgi?lat='.get_Lat().'&amp;lon='.get_Lon(),
    65                          'FindU near here'),
     65                         __('FindU near here')),
    6666                   array('http://mapserver.maptech.com/api/espn/index.cfm?lat='.get_Lat().'&amp;lon='.get_Lon().'&amp;scale=100000&amp;zoom=50&amp;type=1&amp;icon=0&amp;&amp;scriptfile=http://mapserver.maptech.com/api/espn/index.cfm',
    67                          'Maptech near here')
     67                         __('Maptech near here'))
    6868                  );
    6969    echo '<form action=""><div>
    7070<select name="site" size="1" onchange="formHandler(this.form);" >'."\n";
    71     echo '<option value=".">Sites referencing '.get_Lat().' x '.get_Lon()."</option>\n";
     71    echo '<option value=".">' . sprintf(__("Sites referencing %s x %s"), get_Lat(), get_Lon()) . "</option>\n";
    7272    foreach($sites as $site) {
    7373        echo "\t".'<option value="'.$site[0].'">'.$site[1]."</option>\n";
  • trunk/wp-includes/template-functions-post.php

    r1039 r1088  
    1818function get_the_password_form() {
    1919    $output = '<form action="' . get_settings('siteurl') . '/wp-pass.php" method="post">
    20     <p>This post is password protected. To view it please enter your password below:</p>
    21     <p><label>Password: <input name="post_password" type="text" size="20" /></label> <input type="submit" name="Submit" value="Submit" /></p>
     20    <p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
     21    <p><label>' . __("Password:") . ' <input name="post_password" type="text" size="20" /></label> <input type="submit" name="Submit" value="Submit" /></p>
    2222    </form>
    2323    ';
     
    183183    if (!empty($post->post_password)) { // if there's a password
    184184        if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) {  // and it doesn't match the cookie
    185             $output = 'There is no excerpt because this is a protected post.';
     185            $output = __('There is no excerpt because this is a protected post.');
    186186            return $output;
    187187        }
Note: See TracChangeset for help on using the changeset viewer.