Making WordPress.org

Changeset 1379


Ignore:
Timestamp:
03/05/2015 08:46:57 AM (10 years ago)
Author:
obenland
Message:

WP.org Themes: Pull hardcoded URLs out of translatable strings.

H/t tacoverdo.
See https://wordpress.slack.com/archives/meta-i18n/p1425539593000131

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r1378 r1379  
    336336    if ( 'publish' == $post->post_status ) {
    337337        $subject = sprintf( __( '[WordPress Themes] %1$s %2$s is now live', 'wporg-themes' ), $post->post_title, $version );
    338         $content = sprintf( __( 'Version %1$s of %2$s is now live at https://wordpress.org/themes/%3$s.', 'wporg-themes' ), $version, $post->post_title, $post->post_name ) . "\n\n";
     338        // Translators: 1: Theme version number; 2: Theme name; 3: Theme URL.
     339        $content = sprintf( __( 'Version %1$s of %2$s is now live at %3$s.', 'wporg-themes' ), $version, $post->post_title, "https://wordpress.org/themes/{$post->post_name}" ) . "\n\n";
    339340
    340341    } else {
    341342        $subject = sprintf( __( '[WordPress Themes] %s has been approved!', 'wporg-themes' ), $post->post_title );
    342         $content = sprintf( __( 'Congratulations, your new theme %1$s is now available to the public at https://wordpress.org/themes/%2$s.', 'wporg-themes' ), $post->post_title, $post->post_name ) . "\n\n";
     343        // Translators: 1: Theme name; 2: Theme URL.
     344        $content = sprintf( __( 'Congratulations, your new theme %1$s is now available to the public at %2$s.', 'wporg-themes' ), $post->post_title, "https://wordpress.org/themes/{$post->post_name}" ) . "\n\n";
    343345
    344346        // First time approval: Publish the theme.
     
    372374    // Notify theme author.
    373375    $subject  = sprintf( __( '[WordPress Themes] %s - feedback', 'wporg-themes' ), $post->post_title );
    374     $content  = sprintf( __( 'Feedback for the %1$s theme is at https://themes.trac.wordpress.org/ticket/%2$s', 'wporg' ) . "\n\n--\n", $post->post_title, $ticket_id );
     376    // Translators: 1: Theme name; 2: Ticket URL.
     377    $content  = sprintf( __( 'Feedback for the %1$s theme is at %2$s', 'wporg' ) . "\n\n--\n", $post->post_title, "https://themes.trac.wordpress.org/ticket/{$ticket_id}" );
    375378    $content .= __( 'The WordPress.org Themes Team', 'wporg-themes' ) . "\n";
    376379    $content .= 'https://make.wordpress.org/themes';
Note: See TracChangeset for help on using the changeset viewer.