Make WordPress Core

Changeset 11506


Ignore:
Timestamp:
06/02/2009 07:21:42 AM (17 years ago)
Author:
azaozz
Message:

Add more translator comments for placeholders, props nbachiyski, fixes #10002

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r11499 r11506  
    919919
    920920        function before() {
    921                 if ( !empty($this->api) )
    922                         $this->upgrader->strings['process_success'] = sprintf( __('Successfully installed the theme <strong>%s %s</strong>.'), $this->api->name, $this->api->version);
     921                if ( !empty($this->api) ) {
     922                        /* translators: 1: theme name, 2: version */
     923                        $this->upgrader->strings['process_success'] = sprintf( __('Successfully installed the theme <strong>%1$s %2$s</strong>.'), $this->api->name, $this->api->version);
     924                }
    923925        }
    924926
     
    943945
    944946                if ( $this->type == 'web' )
    945                         $install_actions['themes_page'] = '<a href="' . admin_url('theme-install.php') . '" title="' . esc_attr__('Return to Theme Installer') . '" target="_parent">' . __('Return to Theme Installer.') . '</a>';
     947                        $install_actions['themes_page'] = '<a href="' . admin_url('theme-install.php') . '" title="' . esc_attr__('Return to Theme Installer') . '" target="_parent">' . __('Return to Theme Installer') . '</a>';
    946948                else
    947949                        $install_actions['themes_page'] = '<a href="' . admin_url('themes.php') . '" title="' . esc_attr__('Themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>';
  • trunk/wp-includes/general-template.php

    r11450 r11506  
    497497        //If it's a search
    498498        if ( is_search() ) {
    499                 $title = sprintf(__('Search Results %s %s'), $t_sep, strip_tags($search));
     499                /* translators: 1: separator, 2: search phrase */
     500                $title = sprintf(__('Search Results %1$s %2$s'), $t_sep, strip_tags($search));
    500501        }
    501502
     
    14541455        $defaults = array(
    14551456                /* translators: Separator between blog name and feed type in feed links */
    1456                 'separator'   => _x('&raquo;', 'feed link'),
    1457                 'feedtitle' => __('%s Feed'),
    1458                 'comstitle' => __('%s Comments Feed'),
     1457                'separator'     => _x('&raquo;', 'feed link'),
     1458                /* translators: 1: blog title, 2: separator (raquo) */
     1459                'feedtitle'     => __('%1$s %2$s Feed'),
     1460                /* translators: %s: blog title, 2: separator (raquo) */
     1461                'comstitle'     => __('%1$s %2$s Comments Feed'),
    14591462        );
    14601463
    14611464        $args = wp_parse_args( $args, $defaults );
    14621465
    1463         echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr(sprintf( $args['feedtitle'], get_bloginfo('name') )) . '" href="' . get_feed_link() . "\" />\n";
    1464         echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr(sprintf( $args['comstitle'], get_bloginfo('name') )) . '" href="' . get_feed_link( 'comments_' . get_default_feed() ) . "\" />\n";
     1466        echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr(sprintf( $args['feedtitle'], get_bloginfo('name'), $args['separator'] )) . '" href="' . get_feed_link() . "\" />\n";
     1467        echo '<link rel="alternate" type="' . feed_content_type() . '" title="' . esc_attr(sprintf( $args['comstitle'], get_bloginfo('name'), $args['separator'] )) . '" href="' . get_feed_link( 'comments_' . get_default_feed() ) . "\" />\n";
    14651468}
    14661469
  • trunk/wp-includes/pluggable.php

    r11489 r11506  
    965965
    966966        if ('comment' == $comment_type) {
     967                /* translators: 1: post id, 2: post title */
    967968                $notify_message  = sprintf( __('New comment on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n";
     969                /* translators: 1: comment author, 2: author IP, 3: author domain */
    968970                $notify_message .= sprintf( __('Author : %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    969971                $notify_message .= sprintf( __('E-mail : %s'), $comment->comment_author_email ) . "\r\n";
     
    972974                $notify_message .= __('Comment: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
    973975                $notify_message .= __('You can see all comments on this post here: ') . "\r\n";
     976                /* translators: 1: blog name, 2: post title */
    974977                $subject = sprintf( __('[%1$s] Comment: "%2$s"'), $blogname, $post->post_title );
    975978        } elseif ('trackback' == $comment_type) {
     979                /* translators: 1: post id, 2: post title */
    976980                $notify_message  = sprintf( __('New trackback on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n";
     981                /* translators: 1: website name, 2: author IP, 3: author domain */
    977982                $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    978983                $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
    979984                $notify_message .= __('Excerpt: ') . "\r\n" . $comment->comment_content . "\r\n\r\n";
    980985                $notify_message .= __('You can see all trackbacks on this post here: ') . "\r\n";
     986                /* translators: 1: blog name, 2: post title */         
    981987                $subject = sprintf( __('[%1$s] Trackback: "%2$s"'), $blogname, $post->post_title );
    982988        } elseif ('pingback' == $comment_type) {
     989                /* translators: 1: post id, 2: post title */
    983990                $notify_message  = sprintf( __('New pingback on your post #%1$s "%2$s"'), $comment->comment_post_ID, $post->post_title ) . "\r\n";
     991                /* translators: 1: comment author, 2: author IP, 3: author domain */
    984992                $notify_message .= sprintf( __('Website: %1$s (IP: %2$s , %3$s)'), $comment->comment_author, $comment->comment_author_IP, $comment_author_domain ) . "\r\n";
    985993                $notify_message .= sprintf( __('URL    : %s'), $comment->comment_author_url ) . "\r\n";
    986994                $notify_message .= __('Excerpt: ') . "\r\n" . sprintf('[...] %s [...]', $comment->comment_content ) . "\r\n\r\n";
    987995                $notify_message .= __('You can see all pingbacks on this post here: ') . "\r\n";
     996                /* translators: 1: blog name, 2: post title */
    988997                $subject = sprintf( __('[%1$s] Pingback: "%2$s"'), $blogname, $post->post_title );
    989998        }
Note: See TracChangeset for help on using the changeset viewer.