Making WordPress.org

Changeset 6364

Timestamp:
01/12/2018 03:47:10 AM (7 years ago)
Author:
dd32
Message:

BuddyPress.org: Localise strings in the BuddyPress theme.

Props SergeyBiryukov, ramiy.
Fixes #1284.

Location:
sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org
Files:
4 edited

Legend:

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

    r1644 r6364  
    66            <div class="links">
    77                <p>
    8                     See also:
    9                     <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bporg'); ?></a> &bull;
    10                     <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bporg'); ?></a> &bull;
    11                     <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bporg'); ?></a> &bull;
     8                   
     9                    <a href="https://wordpress.org"><?php _e( 'WordPress.org', 'bporg'); ?></a> &bull;
     10                    <a href="https://bbpress.org"><?php _e( 'bbPress.org', 'bporg'); ?></a> &bull;
     11                    <a href="https://buddypress.org"><?php _e( 'BuddyPress.org', 'bporg'); ?></a> &bull;
    1212                    <a href="https://ma.tt"><?php _e( 'Matt', 'bporg' ); ?></a> &bull;
    13                     <a href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php _e( 'RSS Feed for Articles', 'bporg' ); ?>"><?php _e( 'Blog RSS', 'bporg' ); ?></a>
     13                    <a href="<?php bloginfo( 'rss2_url' ); ?>"><?php _e( 'Blog RSS', 'bporg' ); ?></a>
    1414                </p>
    1515            </div>
    1616            <div class="details">
    1717                <p>
    18                     <a href="https://twitter.com/buddypressdev" class="twitter"><?php _e( 'Follow BuddyPress on Twitter', 'bporg'); ?></a> &bull;
    19                     <a href="https://buddypress.org/about/gpl/"><?php _e('GPL', 'bporg'); ?></a> &bull;
    20                     <a href="https://buddypress.org/contact/"><?php _e('Contact Us', 'bporg'); ?></a> &bull;
    21                     <a href="https://buddypress.org/terms/"><?php _e('Terms of Service', 'bporg'); ?></a>
     18                    <a href="https://twitter.com/buddypressdev" class="twitter"><?php _e( 'Follow BuddyPress on Twitter', 'bporg'); ?></a> &bull;
     19                    <a href="https://buddypress.org/about/gpl/"><?php _e(); ?></a> &bull;
     20                    <a href="https://buddypress.org/contact/"><?php _e(); ?></a> &bull;
     21                    <a href="https://buddypress.org/terms/"><?php _e(); ?></a>
    2222                </p>
    2323            </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/header-front.php

    r4449 r6364  
    22
    33    <div id="headline"><div id="headline-inner">
    4         <h2 class="graphic home"><?php bloginfo( 'description' ); ?></h2>
    5         <p>BuddyPress helps you build any type of community website using WordPress, with member profiles, activity streams, user groups, messaging, and more.</p>
     4        <h2 class="graphic home"><?php ' ); ?></h2>
     5        <p></p>
    66        <div>
    7             <a href="<?php bloginfo( 'url' ); ?>/download/" id="big-demo-button" class="button">Download BuddyPress &rarr;</a>
    8             <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/screenshots.png?v=6" srcset="<?php echo get_stylesheet_directory_uri(); ?>/images/screenshots.png?v=6 1x, <?php echo get_stylesheet_directory_uri(); ?>/images/screenshots-2x.png?v=6 2x" alt="Screenshots">
     7            <a href="<?php bloginfo( 'url' ); ?>/download/" id="big-demo-button" class="button"></a>
     8            <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/screenshots.png?v=6" srcset="<?php echo get_stylesheet_directory_uri(); ?>/images/screenshots.png?v=6 1x, <?php echo get_stylesheet_directory_uri(); ?>/images/screenshots-2x.png?v=6 2x" alt="">
    99        </div>
    1010    </div></div>
     
    1313    <div id="showcase"><div id="showcase-inner">
    1414        <div class="feature">
    15             <h3><?php _e( 'Profiles', 'bborg' ); ?></h3>
    16             <p><a href="//buddypress.org/about/profiles/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_profiles.gif" alt="" width="78" height="58"></a>Custom profile fields.<br /> Visibility levels.<br /> Common field types.</p>
     15            <h3><?php _e( 'Profiles', 'bporg' ); ?></h3>
     16            <p>
     17                <a href="//buddypress.org/about/profiles/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_profiles.gif" alt="" width="78" height="58"></a>
     18                <?php _e( 'Custom profile fields.<br /> Visibility levels.<br /> Common field types.', 'bporg' ); ?>
     19            </p>
    1720        </div>
    1821        <div class="feature">
    19             <h3><?php _e( 'Settings', 'bborg' ); ?></h3>
    20             <p><a href="//buddypress.org/about/settings/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_settings.gif" alt="" width="78" height="58"></a>Manage account settings.<br /> Email notifications.<br /> Email and Password.</p>
     22            <h3><?php _e( 'Settings', 'bporg' ); ?></h3>
     23            <p>
     24                <a href="//buddypress.org/about/settings/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_settings.gif" alt="" width="78" height="58"></a>
     25                <?php _e( 'Manage account settings.<br /> Email notifications.<br /> Email and Password.', 'bporg' ); ?>
     26            </p>
    2127        </div>
    2228        <div class="feature">
    23             <h3><?php _e( 'Groups', 'bborg' ); ?></h3>
    24             <p><a href="//buddypress.org/about/groups/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_groups.gif" alt="" width="78" height="58"></a>Extensible user groups. Allow your users to create micro-communities.</p>
     29            <h3><?php _e( 'Groups', 'bporg' ); ?></h3>
     30            <p>
     31                <a href="//buddypress.org/about/groups/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_groups.gif" alt="" width="78" height="58"></a>
     32                <?php _e( 'Extensible user groups. Allow your users to create micro-communities.', 'bporg' ); ?>
     33            </p>
    2534        </div>
    2635        <div class="feature" style="margin:0;">
    27             <h3><?php _e( 'Activity Streams', 'bborg' ); ?></h3>
    28             <p><a href="//buddypress.org/about/activity/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_activity.gif" alt="" width="78" height="58"></a>For members and groups. Sitewide directory and single threads.</p>
     36            <h3><?php _e( 'Activity Streams', 'bporg' ); ?></h3>
     37            <p>
     38                <a href="//buddypress.org/about/activity/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_activity.gif" alt="" width="78" height="58"></a>
     39                <?php _e( 'For members and groups. Sitewide directory and single threads.', 'bporg' ); ?>
     40            </p>
    2941        </div>
    3042        <div class="feature">
    31             <h3><?php _e( 'Notifications', 'bborg' ); ?></h3>
    32             <p><a href="//buddypress.org/about/notifications/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_notifications.gif" alt="" width="78" height="58"></a>Get notified.<br /> Smart read/unread.<br /> Fully integrated.</p>
     43            <h3><?php _e( 'Notifications', 'bporg' ); ?></h3>
     44            <p>
     45                <a href="//buddypress.org/about/notifications/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_notifications.gif" alt="" width="78" height="58"></a>
     46                <?php _e( 'Get notified.<br /> Smart read/unread.<br /> Fully integrated.', 'bporg' ); ?>
     47            </p>
    3348        </div>
    3449        <div class="feature">
    35             <h3><?php _e( 'Friendships', 'bborg' ); ?></h3>
    36             <p><a href="//buddypress.org/about/friends/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_friends.gif" alt="" width="78" height="58"></a>Friendship connections.<br /> It's always about<br /> who you know!</p>
     50            <h3><?php _e( 'Friendships', 'bporg' ); ?></h3>
     51            <p>
     52                <a href="//buddypress.org/about/friends/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_friends.gif" alt="" width="78" height="58"></a>
     53                <?php _e( "Friendship connections.<br /> It's always about<br /> who you know!", 'bporg' ); ?>
     54            </p>
    3755        </div>
    3856        <div class="feature">
    39             <h3><?php _e( 'Private Messaging', 'bborg' ); ?></h3>
    40             <p><a href="//buddypress.org/about/private-messaging/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_pms.gif" alt="" width="78" height="58"></a>Private conversations, with several members at one time.</p>
     57            <h3><?php _e( 'Private Messaging', 'bporg' ); ?></h3>
     58            <p>
     59                <a href="//buddypress.org/about/private-messaging/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_pms.gif" alt="" width="78" height="58"></a>
     60                <?php _e( 'Private conversations, with several members at one time.', 'bporg' ); ?>
     61            </p>
    4162        </div>
    4263        <div class="feature" style="margin:0;">
    43             <h3><?php _e( '...and more!', 'bborg' ); ?></h3>
    44             <p><a href="//buddypress.org/about/more/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_more.gif" alt="" width="78" height="58"></a>Extend BuddyPress with hundreds of third party components.</p>
     64            <h3><?php _e( '...and more!', 'bporg' ); ?></h3>
     65            <p>
     66                <a href="//buddypress.org/about/more/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_more.gif" alt="" width="78" height="58"></a>
     67                <?php _e( 'Extend BuddyPress with hundreds of third party components.', 'bporg' ); ?>
     68            </p>
    4569        </div>
    4670    </div></div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/page-plugins.php

    r1644 r6364  
    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
     16                            /* translators: 1: starting number of plugins, 2: ending number, 3: total number */
     17                            printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bporg' ),
     18                                number_format_i18n( $from_num ),
     19                                number_format_i18n( $to_num ),
     20                                number_format_i18n( $plugins->info['results'] )
     21                            );
     22                        ?>
    1623
    1724                    </div>
     
    4148                        $plugin_author_id = 0;
    4249
    43                         if ( !empty( $plugin->contributors ) ) {
     50                        if ( !empty( $plugin->contributors ) ) {
    4451                            $plugin_author    = get_user_by( 'login', key( $plugin->contributors ) );
    4552                            $plugin_author_id = $plugin_author->ID;
     
    4855
    4956                <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>
     57                    <h3 class="plugin-title"><a href="<?php echo esc_url( 'https://wordpress.org/"><?php echo esc_html( $plugin->name ); ?></a></h3>
    5158
    5259                    <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>
     60                        <?php if ( ! empty( $plugin->version ) ) : ?>
     61                            <div><?php _e( 'Version:', 'bporg' ); ?> <?php echo esc_html( $plugin->version ); ?></div>
     62                        <?php endif; ?>
     63                        <?php if ( ! empty( $plugin->requires ) ) : ?>
     64                            <div><?php _e( 'Requires:', 'bporg' ); ?> <?php echo esc_html( $plugin->requires ); ?></div>
     65                        <?php endif; ?>
     66                        <?php if ( ! empty( $plugin->tested ) ) : ?>
     67                            <div><?php _e( 'Compatible up to:', 'bporg' ); ?> <?php echo esc_html( $plugin->tested ); ?></div>
     68                        <?php endif; ?>
     69                        <div><?php _e( 'Rating:', 'bporg' ); ?> <?php echo $plugin->rating_html; // raw html - do not escape ?></div>
    5770                    </div>
    5871
     
    6881                    <div class="bbp-pagination-count">
    6982
    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'] ) ); ?>
     83                        <?php
     84                            /* translators: 1: starting number of plugins, 2: ending number, 3: total number */
     85                            printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bporg' ),
     86                                number_format_i18n( $from_num ),
     87                                number_format_i18n( $to_num ),
     88                                number_format_i18n( $plugins->info['results'] )
     89                            );
     90                        ?>
    7191
    7292                    </div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/buddypress-org/sidebar.php

    r5923 r6364  
    2323
    2424            <div>
    25                 <h3><?php _e( 'Forum Info', 'bporg'); ?></h3>
     25                <h3><?php _e( 'Forum Info', 'bporg'); ?></h3>
    2626                <ul class="forum-info">
    2727                    <?php bb_base_single_forum_description(); ?>
     
    3232
    3333            <div>
    34                 <h3><?php _e( 'Forum Feeds', 'bporg'); ?></h3>
     34                <h3><?php _e( 'Forum Feeds', 'bporg'); ?></h3>
    3535                <ul>
    36                     <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/" title="Forum Posts">Recent Posts</a></li>
    37                     <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic" title="Forum Topics">Recent Topics</a></li>
     36                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/"</a></li>
     37                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"</a></li>
    3838                </ul>
    3939            </div>
     
    4242
    4343            <div>
    44                 <h3><?php _e( 'Topic Info', 'bporg'); ?></h3>
     44                <h3><?php _e( 'Topic Info', 'bporg'); ?></h3>
    4545                <ul class="topic-info">
    4646                    <?php bb_base_single_topic_description(); ?>
     
    5050            <div>
    5151                <?php bbp_topic_tag_list( 0, array(
    52                     'before' => '<h3>Topic Tags</h3><ul class="topic-tags"><li>',
     52                    'before' => '<h3></h3><ul class="topic-tags"><li>',
    5353                    'after'  => '</li></ul>',
    5454                    'sep'    => '</li><li>',
     
    6363                    <?php bbp_topic_admin_links( array (
    6464                        'id'     => bbp_get_topic_id(),
    65                         'before' => '<h3>Topic Admin</h3><ul class="topic-admin-links"><li>',
     65                        'before' => '<h3></h3><ul class="topic-admin-links"><li>',
    6666                        'after'  => '</li></ul>',
    6767                        'sep'    => '</li><li>',
     
    7575
    7676            <div>
    77                 <h3><?php _e( 'Forums', 'bporg'); ?></h3>
     77                <h3><?php _e( 'Forums', 'bporg'); ?></h3>
    7878                <?php echo do_shortcode( '[bbp-forum-index]' ); ?>
    7979            </div>
     
    8181
    8282            <div>
    83                 <h3><?php _e( 'Views', 'bporg'); ?></h3>
     83                <h3><?php _e( 'Views', 'bporg'); ?></h3>
    8484                <ul>
    8585
    8686                    <?php foreach ( bbp_get_views() as $view => $args ) : ?>
    8787
    88                         <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>
     88                        <li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li>
    8989
    9090                    <?php endforeach; ?>
     
    9494
    9595            <div>
    96                 <h3><?php _e( 'Feeds', 'bporg'); ?></h3>
     96                <h3><?php _e( 'Feeds', 'bporg'); ?></h3>
    9797                <ul>
    98                     <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/" title="All Recent Posts">All Recent Posts</a></li>
    99                     <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/" title="All Recent Topics">All Recent Topics</a></li>
     98                    <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/"</a></li>
     99                    <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"</a></li>
    100100                </ul>
    101101            </div>
    102102
    103103            <div>
    104                 <h3><?php _e( 'Tags', 'bporg'); ?></h3>
     104                <h3><?php _e( 'Tags', 'bporg'); ?></h3>
    105105                <?php echo do_shortcode( '[bbp-topic-tags]' ); ?>
    106106            </div>
     
    112112        <div class="feature">
    113113            <h3><?php _e( 'Theme Development', 'bporg' ); ?></h3>
    114             <p><a href="https://www.packtpub.com/web-development/buddypress-theme-development" title="BuddyPress Theme Development"><img width="225" alt="A book by: Tammie Lister" src="<?php echo get_stylesheet_directory_uri(); ?>/images/buddypress-packt.jpg"/></a></p>
    115             <p class="book-description">An in-depth guide to designing, developing, and testing your very own custom BuddyPress theme.</p>
     114            <p><a href="https://www.packtpub.com/web-development/buddypress-theme-development"" src="<?php echo get_stylesheet_directory_uri(); ?>/images/buddypress-packt.jpg"/></a></p>
     115            <p class="book-description"></p>
    116116        </div>
    117117
     
    121121
    122122        <div>
    123             <h3><?php _e( 'Legacy', 'bporg'); ?></h3>
     123            <h3><?php _e( 'Legacy', 'bporg'); ?></h3>
    124124            <ul>
    125                 <li><a href="https://buddypress.org/support/forum/plugin-forums/" title="Plugin Forums">Legacy Plugin Forums</a></li>
     125                <li><a href="https://buddypress.org/support/forum/plugin-forums/"</a></li>
    126126            </ul>
    127127        </div>
     
    130130
    131131        <div>
    132             <h3><?php _e( 'Categories', 'bporg'); ?></h3>
     132            <h3><?php _e( 'Categories', 'bporg'); ?></h3>
    133133            <ul>
    134134                <?php wp_list_categories( array( 'title_li' => false ) ); ?>
     
    137137
    138138        <div>
    139             <h3><?php _e( 'Tags', 'bporg'); ?></h3>
     139            <h3><?php _e( 'Tags', 'bporg'); ?></h3>
    140140            <?php wp_tag_cloud(); ?>
    141141        </div>
Note: See TracChangeset for help on using the changeset viewer.