Making WordPress.org

Ticket #1285: meta-1285.patch

File meta-1285.patch, 10.0 KB (added by ramiy, 9 years ago)
  • trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/header-front.php

     
    11<?php if ( is_front_page() ) : ?>
    22        <div id="headline"><div id="headline-inner">
    33                <h2 class="graphic home"><?php bloginfo( 'description' ); ?></h2>
    4                 <p>bbPress is forum software with a twist from the creators of WordPress. Easily setup discussion forums inside your WordPress.org powered site.</p>
     4                <p><?php _e( 'bbPress is forum software with a twist from the creators of WordPress. Easily setup discussion forums inside your WordPress.org powered site.', 'bbporg' ); ?></p>
    55                <div>
    6                         <a href="//bbpress.org/download/" id="big-demo-button" class="button">Download bbPress &rarr;</a>
     6                        <a href="//bbpress.org/download/" id="big-demo-button" class="button"><?php _e( 'Download bbPress &rarr;', 'bbporg' ); ?></a>
    77                        <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/screenshots.png?v=5" alt="Screenshots">
    88                </div>
    99        </div></div>
     
    1212        <div id="showcase"><div id="showcase-inner">
    1313                <div class="feature">
    1414                        <h3><?php _e( 'Simple Setup', 'bbporg' ); ?></h3>
    15                         <p><a href="//bbpress.org/about/simple/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_forums.gif" alt="" width="78" height="58"></a>Easy to setup.<br /> Easy to moderate.<br /> Fast, and clean.</p>
     15                        <p>
     16                                <a href="//bbpress.org/about/simple/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_forums.gif" alt="" width="78" height="58"></a>
     17                                <?php _e( 'Easy to setup.', 'bbporg' ); ?><br />
     18                                <?php _e( 'Easy to moderate.', 'bbporg' ); ?><br />
     19                                <?php _e( 'Fast, and clean.', 'bbporg' ); ?>
     20                        </p>
    1621                </div>
    1722                <div class="feature">
    1823                        <h3><?php _e( 'Fully Integrated', 'bbporg' ); ?></h3>
    19                         <p><a href="//bbpress.org/about/integration/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_integration.gif" alt="" width="78" height="58"></a>One central account.<br /> One unified admin area.<br /> One click install.</p>
     24                        <p>
     25                                <a href="//bbpress.org/about/integration/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_integration.gif" alt="" width="78" height="58"></a>
     26                                <?php _e( 'One central account.', 'bbporg' ); ?><br />
     27                                <?php _e( 'One unified admin area.', 'bbporg' ); ?><br />
     28                                <?php _e( 'One click install.', 'bbporg' ); ?>
     29                        </p>
    2030                </div>
    2131                <div class="feature" style="margin:0;">
    2232                        <h3><?php _e( 'Single Installation', 'bbporg' ); ?></h3>
    23                         <p><a href="//bbpress.org/about/installation/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_installation.gif" alt="" width="78" height="58"></a>Simple step-by-step installation walks you through your options.</p>
     33                        <p>
     34                                <a href="//bbpress.org/about/installation/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_installation.gif" alt="" width="78" height="58"></a>
     35                                <?php _e( 'Simple step-by-step installation walks you through your options.', 'bbporg' ); ?>
     36                        </p>
    2437                </div>
    2538                <div class="feature">
    2639                        <h3><?php _e( 'Multisite Forums', 'bbporg' ); ?></h3>
    27                         <p><a href="//bbpress.org/about/multisite/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_blogs.gif" alt="" width="78" height="58"></a>Divide your site into sections. Allow your users to create content.</p>
     40                        <p>
     41                                <a href="//bbpress.org/about/multisite/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_blogs.gif" alt="" width="78" height="58"></a>
     42                                <?php _e( 'Divide your site into sections. Allow your users to create content.', 'bbporg' ); ?>
     43                        </p>
    2844                </div>
    2945        </div></div>
    3046        <hr class="hidden" />
  • trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/page-plugins.php

     
    1212                                <div class="bbp-pagination">
    1313                                        <div class="bbp-pagination-count">
    1414
    15                                                 <?php printf( 'Viewing %1$s to %2$s (%3$s)', number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?>
     15                                                <?php printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ), number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?>
    1616
    1717                                        </div>
    1818
     
    4747                                ?>
    4848
    4949                                <div class="single-plugin">
    50                                         <h3 class="plugin-title"><a href="<?php echo esc_url( 'https://wordpress.org/extend/plugins/' . $plugin->slug ); ?>/" title="Plugin Information"><?php echo esc_html( $plugin->name ); ?></a></h3>
     50                                        <h3 class="plugin-title"><a href="<?php echo esc_url( 'https://wordpress.org/plugins/' . $plugin->slug ); ?>/" title="<?php esc_attr_e( 'Plugin Information', 'bbporg' ); ?>"><?php echo esc_html( $plugin->name ); ?></a></h3>
    5151
    5252                                        <div class="plugin-meta">
    53                                                 <?php if ( !empty( $plugin->version  ) ) : ?><div>Version: <?php echo esc_html( $plugin->version ); ?></div><?php if ( !empty( $plugin->requires ) ) : ?><?php endif; ?><?php endif; ?>
    54                                                 <?php if ( !empty( $plugin->requires ) ) : ?><div>Requires: <?php echo esc_html( $plugin->requires ); ?></div><?php if ( !empty( $plugin->tested ) ) : ?><?php endif; ?><?php endif; ?>
    55                                                 <?php if ( !empty( $plugin->tested   ) ) : ?><div>Compatible up to: <?php echo esc_html( $plugin->tested ); ?></div><?php endif; ?>
    56                                                 <div>Rating: <?php echo $plugin->rating_html; // raw html - do not escape ?></div>
     53                                                <?php if ( !empty( $plugin->version  ) ) : ?><div><?php _e( 'Version:', 'bbporg' ); ?> <?php echo esc_html( $plugin->version ); ?></div><?php if ( !empty( $plugin->requires ) ) : ?><?php endif; ?><?php endif; ?>
     54                                                <?php if ( !empty( $plugin->requires ) ) : ?><div><?php _e( 'Requires:', 'bbporg' ); ?> <?php echo esc_html( $plugin->requires ); ?></div><?php if ( !empty( $plugin->tested ) ) : ?><?php endif; ?><?php endif; ?>
     55                                                <?php if ( !empty( $plugin->tested   ) ) : ?><div><?php _e( 'Compatible up to:', 'bbporg' ); ?> <?php echo esc_html( $plugin->tested ); ?></div><?php endif; ?>
     56                                                <div><?php _e( 'Rating:', 'bbporg' ); ?> <?php echo $plugin->rating_html; // raw html - do not escape ?></div>
    5757                                        </div>
    5858
    5959                                        <p class="plugin-description" style="font-size: 12px">
     
    6767                                <div class="bbp-pagination">
    6868                                        <div class="bbp-pagination-count">
    6969
    70                                                 <?php printf( 'Viewing %1$s to %2$s (%3$s)', number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?>
     70                                                <?php printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ), number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?>
    7171
    7272                                        </div>
    7373
  • trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/sidebar.php

     
    1717                        <div>
    1818                                <h3><?php _e( 'Forum Feeds', 'bbporg'); ?></h3>
    1919                                <ul>
    20                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/" title="Forum Posts">Recent Posts</a></li>
    21                                         <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic" title="Forum Topics">Recent Topics</a></li>
     20                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/" title="<?php esc_attr_e( 'Forum Posts', 'bbporg' ); ?>"><?php _e( 'Recent Posts', 'bbporg'); ?></a></li>
     21                                        <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic" title="<?php esc_attr_e( 'Forum Topics', 'bbporg' ); ?>"><?php _e( 'Recent Topics', 'bbporg'); ?></a></li>
    2222                                </ul>
    2323                        </div>
    2424
     
    7979                        <div>
    8080                                <h3><?php _e( 'Feeds', 'bbporg'); ?></h3>
    8181                                <ul>
    82                                         <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/" title="All Recent Posts">All Recent Posts</a></li>
    83                                         <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/" title="All Recent Topics">All Recent Topics</a></li>
     82                                        <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Posts', 'bbporg' ); ?>"><?php _e( 'All Recent Posts', 'bbporg'); ?></a></li>
     83                                        <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Topics', 'bbporg' ); ?>"><?php _e( 'All Recent Topics', 'bbporg'); ?></a></li>
    8484                                </ul>
    8585                        </div>
    8686
     
    9595
    9696                <div class="feature">
    9797                        <h3><?php _e('bbPress Complete', 'bbporg'); ?></h3>
    98                         <p><a href="https://www.packtpub.com/web-development/bbpress-complete" title="bbPress Complete"><img width="225" alt="" src="<?php echo get_stylesheet_directory_uri(); ?>/images/bbpress-packt.jpg"/></a></p>
    99                         <p class="book-description">A step-by-step guide to creating, managing, and growing a community around your WordPress website.</p>
     98                        <p><a href="https://www.packtpub.com/web-development/bbpress-complete" title="<?php esc_attr_e( 'bbPress Complete', 'bbporg' ); ?>"><img width="225" alt="" src="<?php echo get_stylesheet_directory_uri(); ?>/images/bbpress-packt.jpg"/></a></p>
     99                        <p class="book-description"><?php _e('A step-by-step guide to creating, managing, and growing a community around your WordPress website.', 'bbporg'); ?></p>
    100100                </div>
    101101
    102102        <?php elseif ( is_page( array( 'plugins', 116247 ) ) ) : ?>
     
    106106                <div>
    107107                        <h3><?php _e( 'Legacy', 'bbporg'); ?></h3>
    108108                        <ul>
    109                                 <li><a href="<?php echo get_permalink( 116247 ); ?>" title="Legacy Plugins">Plugins for bbPress 1.1</a></li>
     109                                <li><a href="<?php echo get_permalink( 116247 ); ?>" title="="<?php esc_attr_e( 'Legacy Plugins', 'bbporg' ); ?>"><?php _e( 'Plugins for bbPress 1.1', 'bbporg'); ?></a></li>
    110110                        </ul>
    111111                </div>
    112112