Changeset 1088
- Timestamp:
- 04/17/2004 03:56:23 PM (22 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 4 edited
-
template-functions-author.php (modified) (1 diff)
-
template-functions-category.php (modified) (6 diffs)
-
template-functions-geo.php (modified) (1 diff)
-
template-functions-post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-author.php
r987 r1088 131 131 if (! $hide_empty) echo $name; 132 132 } 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>'; 134 134 135 135 if ( (! empty($feed_image)) || (! empty($feed)) ) { -
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 } -
trunk/wp-includes/template-functions-geo.php
r801 r1088 49 49 $sites = array( 50 50 array('http://www.acme.com/mapper/?lat='.get_Lat().'&long='.get_Lon().'&scale=11&theme=Image&width=3&height=2&dot=Yes', 51 'Acme Mapper'),51 __('Acme Mapper')), 52 52 array('http://geourl.org/near/?lat='.get_Lat().'&lon='.get_Lon().'&dist=500', 53 'GeoURLs near here'),53 __('GeoURLs near here')), 54 54 array('http://www.geocaching.com/seek/nearest.aspx?origin_lat='.get_Lat().'&origin_long='.get_Lon().'&dist=5', 55 'Geocaches Near Nere'),55 __('Geocaches near here')), 56 56 array('http://www.mapquest.com/maps/map.adp?latlongtype=decimal&latitude='.get_Lat().'&longitude='.get_Lon(), 57 'Mapquest map of this spot'),57 __('Mapquest map of this spot')), 58 58 array('http://www.sidebit.com/ProjectGeoURLMap.php?lat='.get_Lat().'&lon='.get_Lon(), 59 'SideBit URL Map of this spot'),59 __('SideBit URL Map of this spot')), 60 60 array('http://confluence.org/confluence.php?lat='.get_Lat().'&lon='.get_Lon(), 61 'Confluence.org near here'),61 __('Confluence.org near here')), 62 62 array('http://www.topozone.com/map.asp?lat='.get_Lat().'&lon='.get_Lon(), 63 'Topozone near here'),63 __('Topozone near here')), 64 64 array('http://www.findu.com/cgi-bin/near.cgi?lat='.get_Lat().'&lon='.get_Lon(), 65 'FindU near here'),65 __('FindU near here')), 66 66 array('http://mapserver.maptech.com/api/espn/index.cfm?lat='.get_Lat().'&lon='.get_Lon().'&scale=100000&zoom=50&type=1&icon=0&&scriptfile=http://mapserver.maptech.com/api/espn/index.cfm', 67 'Maptech near here')67 __('Maptech near here')) 68 68 ); 69 69 echo '<form action=""><div> 70 70 <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"; 72 72 foreach($sites as $site) { 73 73 echo "\t".'<option value="'.$site[0].'">'.$site[1]."</option>\n"; -
trunk/wp-includes/template-functions-post.php
r1039 r1088 18 18 function get_the_password_form() { 19 19 $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> 22 22 </form> 23 23 '; … … 183 183 if (!empty($post->post_password)) { // if there's a password 184 184 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.'); 186 186 return $output; 187 187 }
Note: See TracChangeset
for help on using the changeset viewer.