Making WordPress.org


Ignore:
Timestamp:
06/14/2018 10:02:26 AM (7 years ago)
Author:
obenland
Message:

BB Base: i18n improvements.

Updates remaining strings to be translatable.

See #2102.

File:
1 edited

Legend:

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

    r5921 r7305  
    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', 'bborg' ); ?>"><?php esc_html_e( 'Recent Posts', 'bborg' ); ?></a></li>
     21                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic" title="<?php esc_attr_e( 'Forum Topics', 'bborg' ); ?>"><?php esc_html_e( 'Recent Topics', 'bborg' ); ?></a></li>
    2222                </ul>
    2323            </div>
     
    3434            <div>
    3535                <?php bbp_topic_tag_list( 0, array(
    36                     'before' => '<h3>Topic Tags</h3><ul class="topic-tags"><li>',
     36                    'before' => '<h3>' . esc_html__( 'Topic Tags', 'bborg' ) . '</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>' . esc_html__( 'Topic Admin', 'bborg' ) . '</h3><ul class="topic-admin-links"><li>',
    5050                        'after'  => '</li></ul>',
    5151                        'sep'    => '</li><li>',
     
    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', 'bborg' ); ?>"><?php esc_html_e( 'All Recent Posts', 'bborg' ); ?></a></li>
     83                    <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Topics', 'bborg' ); ?>"><?php esc_html_e( 'All Recent Topics', 'bborg' ); ?></a></li>
    8484                </ul>
    8585            </div>
     
    9696        <div class="feature">
    9797            <h3><?php _e('WordPress', 'bbporg'); ?></h3>
    98             <p><a href="https://wordpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/wordpress.gif"/></a>The world&#8217;s most powerful web publishing software.</p>
     98            <p><a href="https://wordpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/wordpress.gif"/></a><?php esc_html_e( 'The world&#8217;s most powerful web publishing software.', 'bborg' ); ?></p>
    9999        </div>
    100100        <div class="feature">
    101101            <h3><?php _e('bbPress', 'bbporg'); ?></h3>
    102             <p><a href="https://bbpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/bbpress.gif"/></a>Simple and elegant forum software from the creators of WordPress.</p>
     102            <p><a href="https://bbpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/bbpress.gif"/></a><?php esc_html_e( 'Simple and elegant forum software from the creators of WordPress.', 'bborg' ); ?></p>
    103103        </div>
    104104        <div style="margin-right: 0pt;" class="feature">
    105105            <h3><?php _e('BuddyPress', 'bbporg'); ?></h3>
    106             <p><a href="https://buddypress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/buddypress.gif"/></a>Create a fully featured niche social-network with a few easy clicks.</p>
     106            <p><a href="https://buddypress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/buddypress.gif"/></a><?php esc_html_e( 'Create a fully featured niche social-network with a few easy clicks.', 'bborg' ); ?></p>
    107107        </div>
    108108
Note: See TracChangeset for help on using the changeset viewer.