Making WordPress.org


Ignore:
Timestamp:
01/12/2018 03:23:31 AM (6 years ago)
Author:
dd32
Message:

bbPress.org: Properly i18n homepage strings and general cleanup.

Props SergeyBiryukov, ramiy, dd32.
Fixes #1285.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/sidebar.php

    r5922 r6363  
    77
    88            <div>
    9                 <h3><?php _e( 'Forum Info', 'bbporg'); ?></h3>
     9                <h3><?php _e( 'Forum Info', 'bbporg' ); ?></h3>
    1010                <ul class="forum-info">
    1111                    <?php bb_base_single_forum_description(); ?>
     
    1616
    1717            <div>
    18                 <h3><?php _e( 'Forum Feeds', 'bbporg'); ?></h3>
     18                <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/"><?php _e( 'Recent Posts', 'bbporg' ); ?></a></li>
     21                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php _e( 'Recent Topics', 'bbporg' ); ?></a></li>
    2222                </ul>
    2323            </div>
     
    2626
    2727            <div>
    28                 <h3><?php _e( 'Topic Info', 'bbporg'); ?></h3>
     28                <h3><?php _e( 'Topic Info', 'bbporg' ); ?></h3>
    2929                <ul class="topic-info">
    3030                    <?php bb_base_single_topic_description(); ?>
     
    3434            <div>
    3535                <?php bbp_topic_tag_list( 0, array(
    36                     'before' => '<h3>Topic Tags</h3><ul class="topic-tags"><li>',
     36                    'before' => '<h3>' . __( 'Topic Tags', 'bbporg' ) . '</h3><ul class="topic-tags"><li>',
    3737                    'after'  => '</li></ul>',
    3838                    'sep'    => '</li><li>',
     
    4747                    <?php bbp_topic_admin_links( array (
    4848                        'id'     => bbp_get_topic_id(),
    49                         'before' => '<h3>Topic Admin</h3><ul class="topic-admin-links"><li>',
     49                        'before' => '<h3>' . __( 'Topic Admin', 'bbporg' ) . '</h3><ul class="topic-admin-links"><li>',
    5050                        'after'  => '</li></ul>',
    5151                        'sep'    => '</li><li>',
     
    5959
    6060            <div>
    61                 <h3><?php _e( 'Forums', 'bbporg'); ?></h3>
     61                <h3><?php _e( 'Forums', 'bbporg' ); ?></h3>
    6262                <?php echo do_shortcode( '[bbp-forum-index]' ); ?>
    6363            </div>
     
    6565
    6666            <div>
    67                 <h3><?php _e( 'Views', 'bbporg'); ?></h3>
     67                <h3><?php _e( 'Views', 'bbporg' ); ?></h3>
    6868                <ul>
    6969
    7070                    <?php foreach ( bbp_get_views() as $view => $args ) : ?>
    7171
    72                         <li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>" title="<?php bbp_view_title( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li>
     72                        <li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li>
    7373
    7474                    <?php endforeach; ?>
     
    7878
    7979            <div>
    80                 <h3><?php _e( 'Feeds', 'bbporg'); ?></h3>
     80                <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/"><?php _e( 'All Recent Posts', 'bbporg' ); ?></a></li>
     83                    <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php _e( 'All Recent Topics', 'bbporg' ); ?></a></li>
    8484                </ul>
    8585            </div>
    8686
    8787            <div>
    88                 <h3><?php _e( 'Tags', 'bbporg'); ?></h3>
     88                <h3><?php _e( 'Tags', 'bbporg' ); ?></h3>
    8989                <?php echo do_shortcode( '[bbp-topic-tags]' ); ?>
    9090            </div>
     
    9595
    9696        <div class="feature">
    97             <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>
     97            <h3><?php _e( 'bbPress Complete', 'bbporg' ); ?></h3>
     98            <p><a href="https://www.packtpub.com/web-development/bbpress-complete"><img width="225" alt="<?php esc_attr_e( 'bbPress Complete', 'bbporg' ); ?>" 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
     
    105105
    106106        <div>
    107             <h3><?php _e( 'Legacy', 'bbporg'); ?></h3>
     107            <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 ); ?>"><?php _e( 'Plugins for bbPress 1.1', 'bbporg' ); ?></a></li>
    110110            </ul>
    111111        </div>
     
    114114
    115115        <div>
    116             <h3><?php _e( 'Categories', 'bbporg'); ?></h3>
     116            <h3><?php _e( 'Categories', 'bbporg' ); ?></h3>
    117117            <ul>
    118118                <?php wp_list_categories( array( 'title_li' => false ) ); ?>
     
    121121
    122122        <div>
    123             <h3><?php _e( 'Tags', 'bbporg'); ?></h3>
     123            <h3><?php _e( 'Tags', 'bbporg' ); ?></h3>
    124124            <?php wp_tag_cloud(); ?>
    125125        </div>
Note: See TracChangeset for help on using the changeset viewer.