Making WordPress.org

Ticket #1507: wporg-showcase.patch

File wporg-showcase.patch, 16.2 KB (added by ramiy, 9 years ago)
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php

     
    2222                                        </a>
    2323                                        <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
    2424                                        <div class="excerpt"><?php the_content_limit(200); ?></div>
    25                                         <div class="meta"><?php tags_with_count( 'flat', '<strong>Tags:</strong> ', ', ', '<br />'); ?><?php edit_post_link( 'Edit this entry' ); ?></div>
     25                                        <div class="meta"><?php tags_with_count( 'flat', '<strong>Tags:</strong> ', ', ', '<br />'); ?><?php edit_post_link( __( 'Edit this entry' ) ); ?></div>
    2626                                        <div style="clear:both;"></div>
    2727                                </div>
    2828
     
    3232               
    3333                <?php else : // have_posts ?>
    3434
    35                         <p><?php _e('Sorry, no sites in the Showcase matched your criteria.'); ?></p>
     35                        <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.' ); ?></p>
    3636
    3737                <?php endif; ?>
    3838
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php

     
    11<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
    2 <p><?php _e('Enter your password to view comments.'); ?></p>
     2<p><?php _e( 'Enter your password to view comments.' ); ?></p>
    33<?php return; endif; ?>
    44
    55<?php if ( is_single() ) : ?>
     
    77<?php endif; ?>
    88
    99<?php if ( $comments ) : ?>
    10 <h2 class="fancy"><?php comments_number(__('No Pings'), __('1 Ping'), __('% Pings')); ?></h2>
     10<h2 class="fancy"><?php comments_number( __( 'No Pings' ), __( '1 Ping' ), __( '% Pings' ) ); ?></h2>
    1111<ol id="comments">
    1212
    1313<?php foreach ($comments as $comment) : $i++; ?>
    1414        <li id="comment-<?php comment_ID() ?>" <?php if ($i % 2) echo "class='altc'"; ?>>
    1515        <?php comment_text() ?>
    16         <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> from <?php comment_author_link() ?> on <?php comment_date() ?></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
     16        <p><cite><?php printf(
     17                __( '%1$s from %2$s on %2$s' ),
     18                comment_type( __( 'Comment' ), __( 'Trackback' ), __( 'Pingback' ) ),
     19                comment_author_link(),
     20                comment_date()
     21        ); ?></cite> <?php edit_comment_link( __( 'Edit This' ), ' |' ); ?></p>
    1722        </li>
    1823
    1924<?php endforeach; ?>
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php

     
    6969function wp_flavors() {
    7070        global $post;
    7171
    72         echo '<h4>Flavor</h4>
    73                 <ul id="flavors">';
     72        echo '<h4>' . __( 'Flavor' ). '</h4>';
     73        echo '<ul id="flavors">';
    7474
    7575        $flavors = array( 'WordPress.org', 'WordPress.com', 'WordPress.com VIP', 'WordPress MS' );
    7676
     
    8383        }
    8484
    8585        if ( in_category( 'BuddyPress' ) ) {
    86                 echo '<li class="flavor-used"><img src="' . get_template_directory_uri() . '/images/flavor-bp.png" /> BuddyPress</li>';
     86                echo '<li class="flavor-used"><img src="' . get_template_directory_uri() . '/images/flavor-bp.png" /> ' . __( 'BuddyPress' ). '</li>';
    8787        } else {
    88                 echo '<li><img src="' . get_template_directory_uri() . '/images/flavor-bp2.png" /> BuddyPress</li>';
     88                echo '<li><img src="' . get_template_directory_uri() . '/images/flavor-bp2.png" /> ' . __( 'BuddyPress' ). '</li>';
    8989        }
    9090
    9191        echo '</ul>';
     
    9393
    9494function blockquote_style( $content ) {
    9595        if ( is_single() )
    96                 $content = str_replace( '</blockquote>', '<cite>Source: <a href="http://' . get_site_domain( false, false ) . '">' . get_site_domain( false, false, true ) . '</a></cite><div class="clear"></div></blockquote>', $content );
     96                $content = str_replace( '</blockquote>', '<cite>' . __( 'Source:' ). ' <a href="http://' . get_site_domain( false, false ) . '">' . get_site_domain( false, false, true ) . '</a></cite><div class="clear"></div></blockquote>', $content );
    9797
    9898        return $content;
    9999}
     
    119119        $args = array('number' => $number, 'orderby' => 'count', 'order' => 'DESC');
    120120        $tags = get_terms( 'post_tag', $args );
    121121
    122         $out = '<h4>Browse Popular Tags</h4>';
     122        $out = '<h4>' . __( 'Browse Popular Tags' ). '</h4>';
    123123        $out .= '<ul class="submenu wpsc-popular-tags">';
    124124
    125125        foreach ($tags as $tag) {
     
    138138
    139139function breadcrumb() { ?>
    140140
    141         <h3><a href="<?php echo home_url( '/' ); ?>" title="Showcase">Showcase</a>
     141        <h3><a href="<?php echo home_url( '/' ); ?>" title="<?php _e( 'Showcase' ); ?>"><?php _e( 'Showcase' ); ?></a>
    142142
    143143                <?php if ( is_search() ) : ?>
    144                         &raquo; Search for: <?php the_search_query(); ?>
     144                        <?php printf( __( '&raquo; Search for: %s' ), the_search_query() ); ?>
    145145                <?php elseif ( strstr( $_SERVER['REQUEST_URI'], '/showcase/archives' ) ) : ?>
    146                         &raquo; Archives
     146                        <?php _e( '&raquo; Archives' ); ?>
    147147                <?php else : ?>
    148148                        <?php if ( is_category() ) : ?>
    149                                 &raquo; Flavor
     149                                <?php _e( '&raquo; Flavor' ); ?>
    150150                        <?php elseif ( is_tag() ) : ?>
    151                                 &raquo; Tag
     151                                <?php _e( '&raquo; Tag' ); ?>
    152152                        <?php endif; // is_category ?>
    153153
    154                         &raquo; <?php echo wp_get_document_title(); ?>
     154                        <?php printf( __( '&raquo; %s' ), wp_get_document_title() ); ?>
    155155                <?php endif; // is_search ?>
    156156
    157157        </h3>
     
    248248                $parts['title'] = '';
    249249        } elseif ( is_category() ) {
    250250                // Prepend 'Flavor: ' to category document titles.
    251                 $parts['title'] = 'Flavor: ' . $parts['title'];
     251                $parts['title'] = sprintf( __( 'Flavor: %s' ) . $parts['title'] );
    252252        } elseif ( is_tag() ) {
    253253                // Prepend 'Tag: ' to tag document titles.
    254                 $parts['title'] = 'Tag: ' . $parts['title'];
     254                $parts['title'] = sprintf( __( 'Tag: %s' ) . $parts['title'] );
    255255        }
    256256
    257257        return $parts;
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php

     
    88?>
    99<div id="headline">
    1010        <div class="wrapper">
    11                 <h2>Showcase</h2>
     11                <h2><?php _e( 'Showcase' ); ?></h2>
    1212        </div>
    1313</div>
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php

     
    2525                                                        <?php if ( $wpsc_url ) : // make sure the URL is valid (esc_url will return an empty string if not) ?>
    2626                                                        <a href="<?php echo $wpsc_url; ?>" class="wpsc-linkout">
    2727                                                                <?php echo str_replace( parse_url( $wpsc_url, PHP_URL_SCHEME ) . '://', '', untrailingslashit( $wpsc_url ) ); ?>
    28                                                                 <span class="linkout-symbol">&#10162;</span>
     28                                                                <span class="linkout-symbol"><?php _e( '&#10162;' ); ?></span>
    2929                                                        </a>
    3030                                                        <?php endif; // $wpsc_url ?>
    3131                                                       
     
    3434                                                                the_excerpt();
    3535                                                        ?>
    3636                                                        <a class="wpsc-hero-learnmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
    37                                                                 Learn More &rarr;
     37                                                                <?php _e( 'Learn More &rarr;' ); ?>
    3838                                                        </a>
    3939                                                </div><!-- .wpsc-hero-slide-content -->
    4040                                        </div><!-- .wpsc-hero-slide -->
     
    5555
    5656                        <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?>
    5757                        <?php if ( have_posts() ) : ?>
    58                         <h3>Featured Business Sites</h3>
     58                        <h3><?php _e( 'Featured Business Sites' ); ?></h3>
    5959                        <ul class="wpsc-recent">
    6060                               
    6161                                <?php while ( have_posts() ) : the_post(); ?>
     
    7878                        <?php query_posts( array( 'posts_per_page' => 9 ) ); ?>
    7979                        <?php if ( have_posts() ) : ?>
    8080
    81                         <h3>Recently Added Sites</h3>
     81                        <h3><?php _e( 'Recently Added Sites' ); ?></h3>
    8282                        <ul class="wpsc-recent">
    8383
    8484                                <?php while ( have_posts() ) : the_post(); ?>
     
    9696                               
    9797                                <?php endwhile; // have_posts ?>
    9898                        </ul>
    99                         <a href="<?php echo home_url( '/archives/' ); ?>" class="wpsc-view-all">View All Showcase Sites &rarr;</a>
     99                        <a href="<?php echo home_url( '/archives/' ); ?>" class="wpsc-view-all"><?php _e( 'View All Showcase Sites &rarr;' ); ?></a>
    100100                       
    101101                        <?php endif; // have_posts ?>
    102102               
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php

     
    2525
    2626<?php if ( $_POST && ! $error ) : ?>
    2727        <div id="return">
    28         <h3>Submitted!</h3>
    29         <p>Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you'd like to submit another site, head back to the <a href="http://wordpress.org/showcase/submit-a-wordpress-site/">submission form</a>.</p>
     28        <h3><?php _e( 'Submitted!' ); ?></h3>
     29        <p><?php _e( 'Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you\'d like to submit another site, head back to the <a href="http://wordpress.org/showcase/submit-a-wordpress-site/">submission form</a>.' ); ?></p>
    3030        </div>
    3131<?php endif; // $_POST && ! $error ?>
    3232
     
    4848?>
    4949
    5050        <?php if ( $error ) : ?>               
    51                 <h3 id="return">Whoops!</h3>
     51                <h3 id="return"><?php _e( 'Whoops!' ); ?></h3>
    5252               
    5353                <?php if ( strstr( $url, 'blogspot.com' ) || strstr( $url, 'blogger.com' ) ) : ?>
    54                         <p>Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.</p>
     54                        <p><?php _e( 'Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.' ); ?></p>
    5555       
    5656                <?php elseif ( $site_detected == "NO" ) : ?>
    57                         <p>We didn't detect WordPress at the given URL. Please submit the URL of a site running WordPress.</p>
     57                        <p><?php _e( 'We didn\'t detect WordPress at the given URL. Please submit the URL of a site running WordPress.' ); ?></p>
    5858               
    5959                <?php elseif ( $site_detected == "YES" && version_compare($site_version, $latest_release, '<' ) ) : ?>
    60                         <p>We were unable to detect the latest version of WordPress at the given URL.
    61                         We'd prefer submissions to the showcase to be running up-to-date versions of WordPress.</p>
    62                         <p>If you're sure the site is running the latest version of WordPress, then please
    63                         check the URL to make sure it's accurate, and that the URL you submit points directly
    64                         to the location where WordPress is running.</p>
     60                        <p><?php _e( 'We were unable to detect the latest version of WordPress at the given URL. We\'d prefer submissions to the showcase to be running up-to-date versions of WordPress.' ); ?></p>
     61                        <p><?php _e( 'If you\'re sure the site is running the latest version of WordPress, then please check the URL to make sure it\'s accurate, and that the URL you submit points directly to the location where WordPress is running.' ); ?></p>
    6562               
    6663                <?php else : ?>
    67                         <p>There seems to have been a problem with the information you entered. Please make sure
    68                         all fields have data and resubmit.</p>
     64                        <p><?php _e( 'There seems to have been a problem with the information you entered. Please make sure all fields have data and resubmit.' ); ?></p>
    6965       
    7066                <?php endif; ?>
    7167       
     
    9591        <p><label for="why"><?php _e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?' ); ?></label><br />
    9692        <textarea name="why" id="why" cols="60" rows="4" tabindex="5" class="text"><?php echo esc_textarea( $why ); ?></textarea></p>
    9793
    98         <p class="required">* All fields are required.</p>
     94        <p class="required"><?php _e( '* All fields are required.' ); ?></p>
    9995
    10096        <?php
    10197        if ($use_recaptcha) {
     
    113109        } // $use_recaptcha
    114110        ?>
    115111       
    116         <p><input id="submit" type="submit" tabindex="6" value="<?php _e('Submit Site'); ?>" class="button" /></p>
     112        <p><input id="submit" type="submit" tabindex="6" value="<?php _e( 'Submit Site' ); ?>" class="button" /></p>
    117113        <?php do_action( 'comment_form', $post->ID ); ?>
    118114</form>
    119115<?php } // empty( $_POST ) || $error ?>
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php

     
    11                <div class="col-2 secondary">
    2                         <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site">Submit a Site &rarr;</a>
     2                        <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"><?php _e( 'Submit a Site &rarr;' ); ?></a>
    33                       
    4                         <h4 class="search">Search</h4>
     4                        <h4 class="search"><?php _e( 'Search' ); ?></h4>
    55                        <?php // @todo: use get_search_form(); ?>
    66                        <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    77                                <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="text" />
    8                                 <input type="submit" id="searchsubmit" value="Go" class="button" />
     8                                <input type="submit" id="searchsubmit" value="<?php _e( 'Go' ); ?>" class="button" />
    99                        </form>
    1010                       
    1111
    1212                        <?php popular_tags(); ?>
    13                         <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags">View All Tags &rarr;</a>
     13                        <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags"><?php _e( 'View All Tags &rarr;' ); ?></a>
    1414                       
    15                         <h4>Browse by Flavor</h4>
     15                        <h4><?php _e( 'Browse by Flavor' ); ?></h4>
    1616                        <ul class="submenu">
    1717                                <?php wp_list_categories( 'exclude=4&title_li=' ); ?>
    1818                        </ul>
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php

     
    11                <div class="col-3">
    2                         <h4>Top Rated</h4>
     2                        <h4><?php _e( 'Top Rated' ); ?></h4>
    33                        <table class="top-rated">
    44                                <?php get_highest_rated( 'post', 10, 10 ); ?>
    55                        </table>
    66
    7                         <h4>Most Votes</h4>
     7                        <h4><?php _e( 'Most Votes' ); ?></h4>
    88                        <table class="most-votes">
    99                                <?php get_most_rated(); ?>
    1010                        </table>
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php

     
    5555                                                <?php comments_template(); ?>
    5656                                        </div><!-- .col-5 -->
    5757                                        <div class="col-13">
    58                                                 <p class="button"><a href="http://<?php get_site_domain( false ); ?>">Visit Site</a></p>
     58                                                <p class="button"><a href="http://<?php get_site_domain( false ); ?>"><?php _e( 'Visit Site' ); ?></a></p>
    5959
    60                                                 <h4>Rating</h4>
     60                                                <h4><?php _e( 'Rating' ); ?></h4>
    6161                                                <?php the_ratings(); ?>
    62                                                 <p class='rating-descrip'>Rate this site based on their implementation and use of WordPress.</p>
     62                                                <p class='rating-descrip'><?php _e( 'Rate this site based on their implementation and use of WordPress.' ); ?></p>
    6363
    6464                                                <?php wp_flavors(); ?>
    6565                                                <br />