Changeset 10774 for trunk/wp-includes/general-template.php
- Timestamp:
- 03/13/2009 03:53:39 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r10741 r10774 985 985 LIMIT 1"); 986 986 987 /* translators: Calendar caption: 1: month name, 2: 4-digit year */ 988 $calendar_caption = _x('%1$s %2$s', 'calendar caption'); 987 989 echo '<table id="wp-calendar" summary="' . __('Calendar') . '"> 988 <caption>' . sprintf( _c('%1$s %2$s|Used as a calendar caption'), $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption>990 <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption> 989 991 <thead> 990 992 <tr>'; … … 1413 1415 function feed_links( $args ) { 1414 1416 $defaults = array( 1415 'seperator' => _c('»|Seperator character for feed titles in theme head'), 1417 /* translators: Separator between blog name and feed type in feed links */ 1418 'separator' => _x('»', 'feed link'), 1416 1419 'feedtitle' => __('%s Feed'), 1417 1420 'comstitle' => __('%s Comments Feed'), … … 1433 1436 function feed_links_extra( $args ) { 1434 1437 $defaults = array( 1435 'seperator' => _c('»|Seperator character for feed titles in theme head'), 1438 /* translators: Separator between blog name and feed type in feed links */ 1439 'separator' => _x('»', 'feed link'), 1440 /* translators: 1: blog name, 2: separator(raquo), 3: post title */ 1436 1441 'singletitle' => __('%1$s %2$s %3$s Comments Feed'), 1442 /* translators: 1: blog name, 2: separator(raquo), 3: category name */ 1437 1443 'cattitle' => __('%1$s %2$s %3$s Category Feed'), 1444 /* translators: 1: blog name, 2: separator(raquo), 3: tag name */ 1438 1445 'tagtitle' => __('%1$s %2$s %3$s Tag Feed'), 1446 /* translators: 1: blog name, 2: separator(raquo), 3: author name */ 1439 1447 'authortitle' => __('%1$s %2$s Posts by %3$s Feed'), 1448 /* translators: 1: blog name, 2: separator(raquo), 3: search phrase */ 1440 1449 'searchtitle' => __('%1$s %2$s Search Results for "%3$s" Feed'), 1441 1450 ); … … 1447 1456 1448 1457 if ( comments_open() || pings_open() || $post->comment_count > 0 ) { 1449 $title = attribute_escape(sprintf( $args['singletitle'], get_bloginfo('name'), $args['sep erator'], wp_specialchars( get_the_title() ) ));1458 $title = attribute_escape(sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], wp_specialchars( get_the_title() ) )); 1450 1459 $href = get_post_comments_feed_link( $post->ID ); 1451 1460 } … … 1453 1462 $cat_id = intval( get_query_var('cat') ); 1454 1463 1455 $title = attribute_escape(sprintf( $args['cattitle'], get_bloginfo('name'), $args['sep erator'], get_cat_name( $cat_id ) ));1464 $title = attribute_escape(sprintf( $args['cattitle'], get_bloginfo('name'), $args['separator'], get_cat_name( $cat_id ) )); 1456 1465 $href = get_category_feed_link( $cat_id ); 1457 1466 } elseif ( is_tag() ) { … … 1459 1468 $tag = get_tag( $tag_id ); 1460 1469 1461 $title = attribute_escape(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['sep erator'], $tag->name ));1470 $title = attribute_escape(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $tag->name )); 1462 1471 $href = get_tag_feed_link( $tag_id ); 1463 1472 } elseif ( is_author() ) { 1464 1473 $author_id = intval( get_query_var('author') ); 1465 1474 1466 $title = attribute_escape(sprintf( $args['authortitle'], get_bloginfo('name'), $args['sep erator'], get_author_name( $author_id ) ));1475 $title = attribute_escape(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_author_name( $author_id ) )); 1467 1476 $href = get_author_feed_link( $author_id ); 1468 1477 } elseif ( is_search() ) { 1469 $title = attribute_escape(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['sep erator'], get_search_query() ));1478 $title = attribute_escape(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query() )); 1470 1479 $href = get_search_feed_link(); 1471 1480 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)