Make WordPress Core


Ignore:
Timestamp:
11/21/2016 01:21:01 AM (10 years ago)
Author:
johnbillion
Message:

I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment.

Adds context to one string used in two different contexts for the new user and new site signup email notification.

More to come.

See #38882

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/feed-rss2-comments.php

    r38925 r39323  
    3434<channel>
    3535        <title><?php
    36                 if ( is_singular() )
     36                if ( is_singular() ) {
     37                        /* translators: Comments feed title. 1: Post title */
    3738                        printf( ent2ncr( __( 'Comments on: %s' ) ), get_the_title_rss() );
    38                 elseif ( is_search() )
     39                } elseif ( is_search() ) {
     40                        /* translators: Comments feed title. 1: Site name, 2: Search query */
    3941                        printf( ent2ncr( __( 'Comments for %1$s searching on %2$s' ) ), get_bloginfo_rss( 'name' ), get_search_query() );
    40                 else
     42                } else {
     43                        /* translators: Comments feed title. 1: Site name */
    4144                        printf( ent2ncr( __( 'Comments for %s' ) ), get_wp_title_rss() );
     45                }
    4246        ?></title>
    4347        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
     
    7377                                /** This filter is documented in wp-includes/feed.php */
    7478                                $title = apply_filters( 'the_title_rss', $title );
     79                                /* translators: Individual comment title. 1: Post title, 2: Comment author name */
    7580                                printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
    7681                        } else {
     82                                /* translators: Comment author title. 1: Comment author name */
    7783                                printf(ent2ncr(__('By: %s')), get_comment_author_rss());
    7884                        }
Note: See TracChangeset for help on using the changeset viewer.