WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/13/2009 03:53:39 AM (12 years ago)
Author:
ryan
Message:

gettext comments. Props nbachiyski. see #9112

File:
1 edited

Legend:

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

    r10741 r10774  
    985985            LIMIT 1");
    986986
     987    /* translators: Calendar caption: 1: month name, 2: 4-digit year */
     988    $calendar_caption = _x('%1$s %2$s', 'calendar caption');
    987989    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>
    989991    <thead>
    990992    <tr>';
     
    14131415function feed_links( $args ) {
    14141416    $defaults = array(
    1415         'seperator' => _c('&raquo;|Seperator character for feed titles in theme head'),
     1417        /* translators: Separator between blog name and feed type in feed links */
     1418        'separator'   => _x('&raquo;', 'feed link'),
    14161419        'feedtitle' => __('%s Feed'),
    14171420        'comstitle' => __('%s Comments Feed'),
     
    14331436function feed_links_extra( $args ) {
    14341437    $defaults = array(
    1435         'seperator'   => _c('&raquo;|Seperator character for feed titles in theme head'),
     1438        /* translators: Separator between blog name and feed type in feed links */
     1439        'separator'   => _x('&raquo;', 'feed link'),
     1440        /* translators: 1: blog name, 2: separator(raquo), 3: post title */
    14361441        'singletitle' => __('%1$s %2$s %3$s Comments Feed'),
     1442        /* translators: 1: blog name, 2: separator(raquo), 3: category name */
    14371443        'cattitle'    => __('%1$s %2$s %3$s Category Feed'),
     1444        /* translators: 1: blog name, 2: separator(raquo), 3: tag name */
    14381445        'tagtitle'    => __('%1$s %2$s %3$s Tag Feed'),
     1446        /* translators: 1: blog name, 2: separator(raquo), 3: author name  */
    14391447        'authortitle' => __('%1$s %2$s Posts by %3$s Feed'),
     1448        /* translators: 1: blog name, 2: separator(raquo), 3: search phrase */
    14401449        'searchtitle' => __('%1$s %2$s Search Results for &quot;%3$s&quot; Feed'),
    14411450    );
     
    14471456
    14481457        if ( comments_open() || pings_open() || $post->comment_count > 0 ) {
    1449             $title = attribute_escape(sprintf( $args['singletitle'], get_bloginfo('name'), $args['seperator'], wp_specialchars( get_the_title() ) ));
     1458            $title = attribute_escape(sprintf( $args['singletitle'], get_bloginfo('name'), $args['separator'], wp_specialchars( get_the_title() ) ));
    14501459            $href = get_post_comments_feed_link( $post->ID );
    14511460        }
     
    14531462        $cat_id = intval( get_query_var('cat') );
    14541463
    1455         $title = attribute_escape(sprintf( $args['cattitle'], get_bloginfo('name'), $args['seperator'], get_cat_name( $cat_id ) ));
     1464        $title = attribute_escape(sprintf( $args['cattitle'], get_bloginfo('name'), $args['separator'], get_cat_name( $cat_id ) ));
    14561465        $href = get_category_feed_link( $cat_id );
    14571466    } elseif ( is_tag() ) {
     
    14591468        $tag = get_tag( $tag_id );
    14601469
    1461         $title = attribute_escape(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['seperator'], $tag->name ));
     1470        $title = attribute_escape(sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $tag->name ));
    14621471        $href = get_tag_feed_link( $tag_id );
    14631472    } elseif ( is_author() ) {
    14641473        $author_id = intval( get_query_var('author') );
    14651474
    1466         $title = attribute_escape(sprintf( $args['authortitle'], get_bloginfo('name'), $args['seperator'], get_author_name( $author_id ) ));
     1475        $title = attribute_escape(sprintf( $args['authortitle'], get_bloginfo('name'), $args['separator'], get_author_name( $author_id ) ));
    14671476        $href = get_author_feed_link( $author_id );
    14681477    } elseif ( is_search() ) {
    1469         $title = attribute_escape(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['seperator'], get_search_query() ));
     1478        $title = attribute_escape(sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query() ));
    14701479        $href = get_search_feed_link();
    14711480    }
Note: See TracChangeset for help on using the changeset viewer.