Skip to:
Content

BuddyPress.org

Changeset 391


Ignore:
Timestamp:
10/12/2008 08:19:04 PM (18 years ago)
Author:
apeatling
Message:

Added the 'buddypress' textdomain

Location:
trunk
Files:
35 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r375 r391  
    145145       
    146146        /* Add 'Activity' to the main navigation */
    147         bp_core_add_nav_item( __('Activity'), $bp['activity']['slug'] );
     147        bp_core_add_nav_item( __('Activity', 'buddypress'), $bp['activity']['slug'] );
    148148        bp_core_add_nav_default( $bp['activity']['slug'], 'bp_activity_screen_my_activity', 'just-me' );
    149149               
    … …  
    151151       
    152152        /* Add the subnav items to the activity nav item */
    153         bp_core_add_subnav_item( $bp['activity']['slug'], 'just-me', __('Just Me'), $activity_link, 'bp_activity_screen_my_activity' );
    154         bp_core_add_subnav_item( $bp['activity']['slug'], 'my-friends', __('My Friends'), $activity_link, 'bp_activity_screen_friends_activity' );
     153        bp_core_add_subnav_item( $bp['activity']['slug'], 'just-me', __('Just Me', 'buddypress'), $activity_link, 'bp_activity_screen_my_activity' );
     154        bp_core_add_subnav_item( $bp['activity']['slug'], 'my-friends', __('My Friends', 'buddypress'), $activity_link, 'bp_activity_screen_friends_activity' );
    155155       
    156156        if ( $bp['current_component'] == $bp['activity']['slug'] ) {
    157157                if ( bp_is_home() ) {
    158                         $bp['bp_options_title'] = __('My Activity');
     158                        $bp['bp_options_title'] = __('My Activity', 'buddypress');
    159159                } else {
    160160                        $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 );
  • trunk/bp-activity/bp-activity-templatetags.php

    r375 r391  
    149149        /* Switch 'their/your' and 'Name/You' depending on whether the user is logged in or not and viewing their profile */
    150150        if ( $is_home ) {
    151                 $content[0] = str_replace( __('their'), __('your'), $content[0] );
    152                 $content[0] = str_replace( $full_name, __('You'), $content[0] );               
     151                $content[0] = str_replace( __('their', 'buddypress'), __('your', 'buddypress'), $content[0] );
     152                $content[0] = str_replace( $full_name, __('You', 'buddypress'), $content[0] );         
    153153        }
    154154       
    … …  
    160160
    161161function bp_activity_insert_time_since( $content, $date ) {
    162         return sprintf( $content, '  ' . bp_core_time_since( strtotime( $date ) ) . ' ' . __('ago') );
     162        return sprintf( $content, '  ' . bp_core_time_since( strtotime( $date ) ) . ' ' . __('ago', 'buddypress') );
    163163}
    164164
  • trunk/bp-activity/bp-activity-widgets.php

    r375 r391  
    99
    1010                /* Site Wide Activity Widget */
    11                 register_sidebar_widget( __('Site Wide Activity'), 'bp_activity_widget_sitewide_activity');
    12                 register_widget_control( __('Site Wide Activity'), 'bp_activity_widget_sitewide_activity_control' );
     11                register_sidebar_widget( __('Site Wide Activity', 'buddypress'), 'bp_activity_widget_sitewide_activity');
     12                register_widget_control( __('Site Wide Activity', 'buddypress'), 'bp_activity_widget_sitewide_activity_control' );
    1313               
    1414        }
    … …  
    4141                <?php else: ?>
    4242                        <div class="widget-error">
    43                                 <?php _e('There has been no recent site activity.') ?>
     43                                <?php _e('There has been no recent site activity.', 'buddypress') ?>
    4444                        </div>
    4545                <?php endif; ?>
    … …  
    6666        $max_items = attribute_escape( $options['max_items'] );
    6767?>
    68                 <p><label for="bp-activity-widget-sitewide-items-max"><?php _e('Max Number of Items:'); ?> <input class="widefat" id="bp-activity-widget-sitewide-items-max" name="bp-activity-widget-sitewide-items-max" type="text" value="<?php echo $max_items; ?>" style="width: 30%" /></label></p>
     68                <p><label for="bp-activity-widget-sitewide-items-max"><?php _e('Max Number of Items:', 'buddypress'); ?> <input class="widefat" id="bp-activity-widget-sitewide-items-max" name="bp-activity-widget-sitewide-items-max" type="text" value="<?php echo $max_items; ?>" style="width: 30%" /></label></p>
    6969                <input type="hidden" id="bp-activity-widget-sitewide-submit" name="bp-activity-widget-sitewide-submit" value="1" />
    7070<?php
  • trunk/bp-blogs.php

    r387 r391  
    7777
    7878        if ( $wpdb->blogid == $bp['current_homebase_id'] ) {
    79                 add_menu_page( __("Blogs"), __("Blogs"), 10, 'bp-blogs/admin-tabs/bp-blogs-tab.php' );
    80                 add_submenu_page( 'bp-blogs/admin-tabs/bp-blogs-tab.php', __("My Blogs"), __("My Blogs"), 10, 'bp-blogs/admin-tabs/bp-blogs-tab.php' );
    81                 add_submenu_page( 'bp-blogs/admin-tabs/bp-blogs-tab.php', __('Recent Posts'), __('Recent Posts'), 10, 'bp-blogs/admin-tabs/bp-blogs-posts-tab.php' );           
    82                 add_submenu_page( 'bp-blogs/admin-tabs/bp-blogs-tab.php', __('Recent Comments'), __('Recent Comments'), 10, 'bp-blogs/admin-tabs/bp-blogs-comments-tab.php' );         
     79                add_menu_page( __("Blogs", 'buddypress'), __("Blogs", 'buddypress'), 10, 'bp-blogs/admin-tabs/bp-blogs-tab.php' );
     80                add_submenu_page( 'bp-blogs/admin-tabs/bp-blogs-tab.php', __("My Blogs", 'buddypress'), __("My Blogs", 'buddypress'), 10, 'bp-blogs/admin-tabs/bp-blogs-tab.php' );
     81                add_submenu_page( 'bp-blogs/admin-tabs/bp-blogs-tab.php', __('Recent Posts', 'buddypress'), __('Recent Posts', 'buddypress'), 10, 'bp-blogs/admin-tabs/bp-blogs-posts-tab.php' );               
     82                add_submenu_page( 'bp-blogs/admin-tabs/bp-blogs-tab.php', __('Recent Comments', 'buddypress'), __('Recent Comments', 'buddypress'), 10, 'bp-blogs/admin-tabs/bp-blogs-comments-tab.php' );             
    8383        }
    8484
    … …  
    129129       
    130130        /* Add 'Blogs' to the main navigation */
    131         bp_core_add_nav_item( __('Blogs'), $bp['blogs']['slug'] );
     131        bp_core_add_nav_item( __('Blogs', 'buddypress'), $bp['blogs']['slug'] );
    132132        bp_core_add_nav_default( $bp['blogs']['slug'], 'bp_blogs_screen_my_blogs', 'my-blogs' );
    133133       
    … …  
    135135       
    136136        /* Add the subnav items to the blogs nav item */
    137         bp_core_add_subnav_item( $bp['blogs']['slug'], 'my-blogs', __('My Blogs'), $blogs_link, 'bp_blogs_screen_my_blogs' );
    138         bp_core_add_subnav_item( $bp['blogs']['slug'], 'recent-posts', __('Recent Posts'), $blogs_link, 'bp_blogs_screen_recent_posts' );
    139         bp_core_add_subnav_item( $bp['blogs']['slug'], 'recent-comments', __('Recent Comments'), $blogs_link, 'bp_blogs_screen_recent_comments' );
    140         bp_core_add_subnav_item( $bp['blogs']['slug'], 'create-a-blog', __('Create a Blog'), $blogs_link, 'bp_blogs_screen_create_a_blog' );
     137        bp_core_add_subnav_item( $bp['blogs']['slug'], 'my-blogs', __('My Blogs', 'buddypress'), $blogs_link, 'bp_blogs_screen_my_blogs' );
     138        bp_core_add_subnav_item( $bp['blogs']['slug'], 'recent-posts', __('Recent Posts', 'buddypress'), $blogs_link, 'bp_blogs_screen_recent_posts' );
     139        bp_core_add_subnav_item( $bp['blogs']['slug'], 'recent-comments', __('Recent Comments', 'buddypress'), $blogs_link, 'bp_blogs_screen_recent_comments' );
     140        bp_core_add_subnav_item( $bp['blogs']['slug'], 'create-a-blog', __('Create a Blog', 'buddypress'), $blogs_link, 'bp_blogs_screen_create_a_blog' );
    141141       
    142142        /* Set up the component options navigation for Blog */
    … …  
    144144                if ( bp_is_home() ) {
    145145                        if ( function_exists('xprofile_setup_nav') ) {
    146                                 $bp['bp_options_title'] = __('My Blogs');
     146                                $bp['bp_options_title'] = __('My Blogs', 'buddypress');
    147147                        }
    148148                } else {
    … …  
    212212                                return false;
    213213                               
    214                         return bp_core_get_userlink($blog->user_id) . ' ' . __('created a new blog:') . ' <a href="' . get_blog_option( $blog->blog_id, 'siteurl' ) . '">' . get_blog_option( $blog->blog_id, 'blogname' ) . '</a> <span class="time-since">%s</span>';         
     214                        return bp_core_get_userlink($blog->user_id) . ' ' . __('created a new blog:', 'buddypress') . ' <a href="' . get_blog_option( $blog->blog_id, 'siteurl' ) . '">' . get_blog_option( $blog->blog_id, 'blogname' ) . '</a> <span class="time-since">%s</span>';           
    215215                break;
    216216                case 'new_blog_post':
    … …  
    225225                                return false;
    226226
    227                         $content = bp_core_get_userlink($post->post_author) . ' ' . __('wrote a new blog post') . ' <a href="' . bp_post_get_permalink( $post, $post->blog_id ) . '">' . $post->post_title . '</a> <span class="time-since">%s</span>';         
     227                        $content = bp_core_get_userlink($post->post_author) . ' ' . __('wrote a new blog post', 'buddypress') . ' <a href="' . bp_post_get_permalink( $post, $post->blog_id ) . '">' . $post->post_title . '</a> <span class="time-since">%s</span>';           
    228228                        $content .= '<blockquote>' . bp_create_excerpt($post->post_content) . '</blockquote>';
    229229                        return $content;
    … …  
    240240
    241241                        $comment = BP_Blogs_Comment::fetch_comment_content($comment);
    242                         $content = bp_core_get_userlink($comment->user_id) . ' ' . __('commented on the blog post ') . ' <a href="' . bp_post_get_permalink( $comment->post, $comment->blog_id ) . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a> <span class="time-since">%s</span>';         
     242                        $content = bp_core_get_userlink($comment->user_id) . ' ' . __('commented on the blog post ', 'buddypress') . ' <a href="' . bp_post_get_permalink( $comment->post, $comment->blog_id ) . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a> <span class="time-since">%s</span>';           
    243243                        $content .= '<blockquote>' . bp_create_excerpt($comment->comment_content) . '</blockquote>';
    244244                        return $content;
  • trunk/bp-blogs/bp-blogs-templatetags.php

    r359 r391  
    275275        if ( !empty($posts_template->postpost_password) ) { // if there's a password
    276276                if ( !isset($_COOKIE['wp-postpass_' . COOKIEHASH]) || $_COOKIE['wp-postpass_' . COOKIEHASH] != $posts_template->postpost_password ) {  // and it doesn't match the cookie
    277                         echo __('Enter your password to view comments');
     277                        echo __('Enter your password to view comments', 'buddypress');
    278278                        return;
    279279                }
    … …  
    295295        echo apply_filters( 'comments_popup_link_attributes', '' );
    296296
    297         echo ' title="' . sprintf( __('Comment on %s'), $title ) . '">';
     297        echo ' title="' . sprintf( __('Comment on %s', 'buddypress'), $title ) . '">';
    298298        comments_number( $zero, $one, $more, $number );
    299299        echo '</a>';
    … …  
    635635
    636636                if ( $errors->get_error_code() ) {
    637                         echo "<p>" . __('There was a problem, please correct the form below and try again.') . "</p>";
     637                        echo "<p>" . __('There was a problem, please correct the form below and try again.', 'buddypress') . "</p>";
    638638                }
    639639                ?>
    640                 <p><?php printf(__("By filling out the form below, you can <strong>add a blog to your account</strong>. There is no limit to the number of blogs you can have, so create to your heart's content, but blog responsibly."), $current_user->display_name) ?></p>
    641 
    642                 <p><?php _e("If you&#8217;re not going to use a great blog domain, leave it for a new user. Now have at it!") ?></p>
     640                <p><?php printf(__("By filling out the form below, you can <strong>add a blog to your account</strong>. There is no limit to the number of blogs you can have, so create to your heart's content, but blog responsibly.", 'buddypress'), $current_user->display_name) ?></p>
     641
     642                <p><?php _e("If you&#8217;re not going to use a great blog domain, leave it for a new user. Now have at it!", 'buddypress') ?></p>
    643643
    644644                <form id="setupform" method="post" action="<?php echo $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog' ?>">
    … …  
    648648                        <?php bp_blogs_signup_blog($blogname, $blog_title, $errors); ?>
    649649                        <p>
    650                                 <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog &raquo;') ?>" />
     650                                <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog &raquo;', 'buddypress') ?>" />
    651651                        </p>
    652652                </form>
    … …  
    660660        // Blog name
    661661        if( constant( "VHOST" ) == 'no' )
    662                 echo '<label for="blogname">' . __('Blog Name:') . '</label>';
     662                echo '<label for="blogname">' . __('Blog Name:', 'buddypress') . '</label>';
    663663        else
    664                 echo '<label for="blogname">' . __('Blog Domain:') . '</label>';
     664                echo '<label for="blogname">' . __('Blog Domain:', 'buddypress') . '</label>';
    665665
    666666        if ( $errmsg = $errors->get_error_message('blogname') ) { ?>
    … …  
    674674        }
    675675        if ( !is_user_logged_in() ) {
    676                 print '(<strong>' . __( 'Your address will be ' );
     676                print '(<strong>' . __( 'Your address will be ' , 'buddypress');
    677677                if( constant( "VHOST" ) == 'no' ) {
    678                         print $current_site->domain . $current_site->path . __( 'blogname' );
     678                        print $current_site->domain . $current_site->path . __( 'blogname' , 'buddypress');
    679679                } else {
    680                         print __( 'domain.' ) . $current_site->domain . $current_site->path;
    681                 }
    682                 echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)' ) . '</p>';
     680                        print __( 'domain.' , 'buddypress') . $current_site->domain . $current_site->path;
     681                }
     682                echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)' , 'buddypress') . '</p>';
    683683        }
    684684
    685685        // Blog Title
    686686        ?>
    687         <label for="blog_title"><?php _e('Blog Title:') ?></label>     
     687        <label for="blog_title"><?php _e('Blog Title:', 'buddypress') ?></label>       
    688688        <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>
    689689                <p class="error"><?php echo $errmsg ?></p>
    … …  
    693693
    694694        <p>
    695                 <label for="blog_public_on"><?php _e('Privacy:') ?></label>
    696                 <?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.'); ?>
     695                <label for="blog_public_on"><?php _e('Privacy:', 'buddypress') ?></label>
     696                <?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.', 'buddypress'); ?>
    697697                <div style="clear:both;"></div>
    698698                <label class="checkbox" for="blog_public_on">
    699699                        <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if( !isset( $_POST['blog_public'] ) || $_POST['blog_public'] == '1' ) { ?>checked="checked"<?php } ?> />
    700                         <strong><?php _e( 'Yes' ); ?></strong>
     700                        <strong><?php _e( 'Yes' , 'buddypress'); ?></strong>
    701701                </label>
    702702                <label class="checkbox" for="blog_public_off">
    703703                        <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if( isset( $_POST['blog_public'] ) && $_POST['blog_public'] == '0' ) { ?>checked="checked"<?php } ?> />
    704                         <strong><?php _e( 'No' ); ?></strong>
     704                        <strong><?php _e( 'No' , 'buddypress'); ?></strong>
    705705                </label>
    706706        </p>
    … …  
    753753function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = '' ) {
    754754        ?>
    755         <p><?php _e('Congratulations! You have successfully registered a new blog.') ?></p>
     755        <p><?php _e('Congratulations! You have successfully registered a new blog.', 'buddypress') ?></p>
    756756        <p>
    757                 <?php printf(__('<a href="http://%1$s">http://%2$s</a> is your new blog.  <a href="%3$s">Login</a> as "%4$s" using your existing password.'), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name) ?>
     757                <?php printf(__('<a href="http://%1$s">http://%2$s</a> is your new blog.  <a href="%3$s">Login</a> as "%4$s" using your existing password.', 'buddypress'), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name) ?>
    758758        </p>
    759759        <?php
    … …  
    765765       
    766766        if ( bp_is_home() )     {
    767                 echo '<a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog">' . __('Create a Blog') . '</a>';
     767                echo '<a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog">' . __('Create a Blog', 'buddypress') . '</a>';
    768768        }
    769769}
  • trunk/bp-blogs/bp-blogs-widgets.php

    r375 r391  
    99
    1010                /* Latest Posts Widget */
    11                 register_sidebar_widget( __('Recent Blog Posts'), 'bp_blogs_widget_recent_posts');
    12                 register_widget_control( __('Recent Blog Posts'), 'bp_blogs_widget_recent_posts_control' );
     11                register_sidebar_widget( __('Recent Blog Posts', 'buddypress'), 'bp_blogs_widget_recent_posts');
     12                register_widget_control( __('Recent Blog Posts', 'buddypress'), 'bp_blogs_widget_recent_posts_control' );
    1313               
    1414        }
    … …  
    3535                <?php if ( $posts ) : ?>
    3636                        <div class="item-options" id="recent-posts-options">
    37                                 <?php _e("Site Wide") ?>
     37                                <?php _e("Site Wide", 'buddypress') ?>
    3838                        </div>
    3939                        <ul id="recent-posts" class="item-list">
    … …  
    5757                <?php else: ?>
    5858                        <div class="widget-error">
    59                                 <?php _e('There are no recent blog posts, why not write one?') ?>
     59                                <?php _e('There are no recent blog posts, why not write one?', 'buddypress') ?>
    6060                        </div>
    6161                <?php endif; ?>
    … …  
    8282        $max_posts = attribute_escape( $options['max_posts'] );
    8383?>
    84                 <p><label for="bp-blogs-widget-recent-posts-max"><?php _e('Max Number of Posts:'); ?> <input class="widefat" id="bp-blogs-widget-recent-posts-max" name="bp-blogs-widget-recent-posts-max" type="text" value="<?php echo $max_posts; ?>" style="width: 30%" /></label></p>
     84                <p><label for="bp-blogs-widget-recent-posts-max"><?php _e('Max Number of Posts:', 'buddypress'); ?> <input class="widefat" id="bp-blogs-widget-recent-posts-max" name="bp-blogs-widget-recent-posts-max" type="text" value="<?php echo $max_posts; ?>" style="width: 30%" /></label></p>
    8585                <input type="hidden" id="bp-blogs-widget-recent-posts-submit" name="bp-blogs-widget-recent-posts-submit" value="1" />
    8686<?php
  • trunk/bp-core.php

    r388 r391  
    158158        global $menu;
    159159       
    160         $account_settings_tab = add_menu_page( __('Account'), __('Account'), 10, 'bp-core/admin-mods/bp-core-account-tab.php' );
     160        $account_settings_tab = add_menu_page( __('Account', 'buddypress'), __('Account', 'buddypress'), 10, 'bp-core/admin-mods/bp-core-account-tab.php' );
    161161}
    162162add_action( 'admin_menu', 'bp_core_add_settings_tab' );
    … …  
    425425        if ( count($list) < count($options) ) :
    426426?>
    427         <li id="all-my-blogs-tab" class="wp-no-js-hidden"><a href="#" class="blog-picker-toggle"><?php _e( 'All my blogs' ); ?></a></li>
     427        <li id="all-my-blogs-tab" class="wp-no-js-hidden"><a href="#" class="blog-picker-toggle"><?php _e( 'All my blogs' , 'buddypress'); ?></a></li>
    428428
    429429        </ul>
    … …  
    431431        <form id="all-my-blogs" action="" method="get" style="display: none">
    432432                <p>
    433                         <?php printf( __( 'Choose a blog: %s' ), $select ); ?>
    434 
    435                         <input type="submit" class="button" value="<?php _e( 'Go' ); ?>" />
    436                         <a href="#" class="blog-picker-toggle"><?php _e( 'Cancel' ); ?></a>
     433                        <?php printf( __( 'Choose a blog: %s' , 'buddypress'), $select ); ?>
     434
     435                        <input type="submit" class="button" value="<?php _e( 'Go' , 'buddypress'); ?>" />
     436                        <a href="#" class="blog-picker-toggle"><?php _e( 'Cancel' , 'buddypress'); ?></a>
    437437                </p>
    438438        </form>
    … …  
    800800       
    801801        if ( !$just_date ) {
    802                 $date .= __('at') . date( ' g:iA', $time );
     802                $date .= __('at', 'buddypress') . date( ' g:iA', $time );
    803803        }
    804804       
    … …  
    900900        // Make sure we have an uploads dir
    901901        if ( ! wp_mkdir_p( $dir ) ) {
    902                 $message = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), $dir );
     902                $message = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' , 'buddypress'), $dir );
    903903                return array( 'error' => $message );
    904904        }
    … …  
    968968        // array of time period chunks
    969969        $chunks = array(
    970         array( 60 * 60 * 24 * 365 , __('year') ),
    971         array( 60 * 60 * 24 * 30 , __('month') ),
    972         array( 60 * 60 * 24 * 7, __('week') ),
    973         array( 60 * 60 * 24 , __('day') ),
    974         array( 60 * 60 , __('hour') ),
    975         array( 60 , __('minute') ),
    976         array( 1, __('second') )
     970        array( 60 * 60 * 24 * 365 , __('year', 'buddypress') ),
     971        array( 60 * 60 * 24 * 30 , __('month', 'buddypress') ),
     972        array( 60 * 60 * 24 * 7, __('week', 'buddypress') ),
     973        array( 60 * 60 * 24 , __('day', 'buddypress') ),
     974        array( 60 * 60 , __('hour', 'buddypress') ),
     975        array( 60 , __('minute', 'buddypress') ),
     976        array( 1, __('second', 'buddypress') )
    977977        );
    978978
    … …  
    10091009                $name2 = $chunks[$i + 1][1];
    10101010               
    1011                 if ( $name2 == __('second') ) return $output;
     1011                if ( $name2 == __('second', 'buddypress') ) return $output;
    10121012       
    10131013                if ( ( $count2 = floor( ( $since - ( $seconds * $count ) ) / $seconds2 ) ) != 0 ) {
    … …  
    10581058function bp_core_get_last_activity( $last_activity_date, $before, $after ) {
    10591059        if ( !$last_activity_date || $last_activity_date == '' ) {
    1060                 $last_active = __('not recently active');
     1060                $last_active = __('not recently active', 'buddypress');
    10611061        } else {
    10621062                $last_active = $before;
  • trunk/bp-core/admin-mods/bp-core-account-tab.php

    r309 r391  
    33$is_profile_page = true;
    44
    5 $title = $is_profile_page? __('Profile') : __('Edit User');
     5$title = $is_profile_page? __('Profile', 'buddypress') : __('Edit User', 'buddypress');
    66if ( current_user_can('edit_users') && !$is_profile_page )
    77        $submenu_file = 'users.php';
    … …  
    2121                $user_id = $current_user->ID;
    2222        } else {
    23                 wp_die(__('Invalid user ID.'));
     23                wp_die(__('Invalid user ID.', 'buddypress'));
    2424        }
    2525
    … …  
    4242
    4343if ( !current_user_can('edit_user', $user_id) )
    44         wp_die(__('You do not have permission to edit this user.'));
     44        wp_die(__('You do not have permission to edit this user.', 'buddypress'));
    4545
    4646if ( $is_profile_page ) {
    … …  
    6464
    6565if ( !current_user_can('edit_user', $user_id) )
    66                 wp_die(__('You do not have permission to edit this user.'));
     66                wp_die(__('You do not have permission to edit this user.', 'buddypress'));
    6767
    6868?>
    … …  
    7070<?php if ( isset($_GET['updated']) ) : ?>
    7171<div id="message" class="updated fade">
    72         <p><strong><?php _e('User updated.') ?></strong></p>
     72        <p><strong><?php _e('User updated.', 'buddypress') ?></strong></p>
    7373        <?php if ( $wp_http_referer && !$is_profile_page ) : ?>
    74         <p><a href="users.php"><?php _e('&laquo; Back to Authors and Users'); ?></a></p>
     74        <p><a href="users.php"><?php _e('&laquo; Back to Authors and Users', 'buddypress'); ?></a></p>
    7575        <?php endif; ?>
    7676</div>
    … …  
    8888
    8989<div class="wrap" id="profile-page">
    90 <h2><?php $is_profile_page? _e('Account Settings') : _e('Edit User Account Settings'); ?></h2>
     90<h2><?php $is_profile_page? _e('Account Settings', 'buddypress') : _e('Edit User Account Settings', 'buddypress'); ?></h2>
    9191
    9292<form name="profile" id="your-profile" action="admin.php?page=bp-core/admin-mods/bp-core-account-tab.php" method="post">
    … …  
    101101</p>
    102102
    103 <h3><?php _e('Personal Options'); ?></h3>
     103<h3><?php _e('Personal Options', 'buddypress'); ?></h3>
    104104
    105105<table class="form-table">
    106106<?php if ( rich_edit_exists() ) : // don't bother showing the option if the editor has been removed ?>
    107107        <tr>
    108                 <th scope="row"><?php _e('Visual Editor')?></th>
    109                 <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', $profileuser->rich_editing); ?> /> <?php _e('Use the visual editor when writing'); ?></label></td>
     108                <th scope="row"><?php _e('Visual Editor', 'buddypress')?></th>
     109                <td><label for="rich_editing"><input name="rich_editing" type="checkbox" id="rich_editing" value="true" <?php checked('true', $profileuser->rich_editing); ?> /> <?php _e('Use the visual editor when writing', 'buddypress'); ?></label></td>
    110110        </tr>
    111111<?php endif; ?>
    112112<tr>
    113 <th scope="row"><?php _e('Admin Color Scheme')?></th>
    114 <td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme')?></legend>
     113<th scope="row"><?php _e('Admin Color Scheme', 'buddypress')?></th>
     114<td><fieldset><legend class="hidden"><?php _e('Admin Color Scheme', 'buddypress')?></legend>
    115115<?php
    116116$current_color = get_user_option('admin_color', $user_id);
    … …  
    135135</table>
    136136
    137 <h3><?php $is_profile_page? _e('Your Account Details') : _e('User Account Details'); ?></h3>
     137<h3><?php $is_profile_page? _e('Your Account Details', 'buddypress') : _e('User Account Details', 'buddypress'); ?></h3>
    138138
    139139<table class="form-table">
    140140<tr>
    141         <th><label for="email">* <?php _e('Account Email') ?></label></th>
    142         <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" /> (<?php _e('Required'); ?>)</td>
     141        <th><label for="email">* <?php _e('Account Email', 'buddypress') ?></label></th>
     142        <td><input type="text" name="email" id="email" value="<?php echo $profileuser->user_email ?>" /> (<?php _e('Required', 'buddypress'); ?>)</td>
    143143</tr>
    144144<?php
    … …  
    147147?>
    148148<tr>
    149         <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    150         <td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
    151                 <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again."); ?><br />
     149        <th><label for="pass1"><?php _e('New Password', 'buddypress'); ?></label></th>
     150        <td><input type="password" name="pass1" id="pass1" size="16" value="" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank.", 'buddypress'); ?><br />
     151                <input type="password" name="pass2" id="pass2" size="16" value="" /> <?php _e("Type your new password again.", 'buddypress'); ?><br />
    152152                <?php if ( $is_profile_page ): ?>
    153                 <p><strong><?php _e('Password Strength'); ?></strong></p>
    154                 <div id="pass-strength-result"><?php _e('Too short'); ?></div> <?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&amp;( in your password.'); ?>
     153                <p><strong><?php _e('Password Strength', 'buddypress'); ?></strong></p>
     154                <div id="pass-strength-result"><?php _e('Too short', 'buddypress'); ?></div> <?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&amp;( in your password.', 'buddypress'); ?>
    155155                <?php endif; ?>
    156156        </td>
    … …  
    171171        <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform">
    172172                <tr>
    173                         <th scope="row"><?php _e('Additional Capabilities') ?></th>
     173                        <th scope="row"><?php _e('Additional Capabilities', 'buddypress') ?></th>
    174174                        <td><?php
    175175                        $output = '';
    … …  
    189189        <input type="hidden" name="action" value="update" />
    190190        <input type="hidden" name="user_id" id="user_id" value="<?php echo $user_id; ?>" />
    191         <input type="submit" value="<?php $is_profile_page? _e('Update Profile') : _e('Update User') ?>" name="submit" />
     191        <input type="submit" value="<?php $is_profile_page? _e('Update Profile', 'buddypress') : _e('Update User', 'buddypress') ?>" name="submit" />
    192192 </p>
    193193</form>
  • trunk/bp-core/admin-mods/bp-core-homebase-dashboard.php

    r359 r391  
    3131
    3232                                <div id="message" class="info">
    33                                         <p><?php bp_you_or_name() ?> <?php _e('made any posts yet!'); ?></p>
     33                                        <p><?php bp_you_or_name() ?> <?php _e('made any posts yet!', 'buddypress'); ?></p>
    3434                                </div>
    3535
  • trunk/bp-core/bp-core-adminbar.php

    r378 r391  
    1414                        bp_core_get_avatar( $bp['loggedin_userid'], 1 );
    1515               
    16                 echo __('My Account') . '</a>';
     16                echo __('My Account', 'buddypress') . '</a>';
    1717                echo '<ul>';
    1818               
    … …  
    3232                        echo '</li>';
    3333                }
    34                 echo '<li><a id="logout" href="' . site_url() . '/wp-login.php?action=logout">' . __('Log Out') . '</a></li>';
     34                echo '<li><a id="logout" href="' . site_url() . '/wp-login.php?action=logout">' . __('Log Out', 'buddypress') . '</a></li>';
    3535                echo '</ul>';
    3636                echo '</li>';
    … …  
    4242
    4343                        echo '<li><a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/my-blogs">';
    44                         _e('My Blogs');
     44                        _e('My Blogs', 'buddypress');
    4545                        echo '</a>';
    4646
    … …  
    5454                                       
    5555                                        echo '<ul>';
    56                                         echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/">' . __('Dashboard') . '</a></li>';
    57                                         echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/post-new.php">' . __('New Post') . '</a></li>';
    58                                         echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/post-new.php">' . __('Manage Posts') . '</a></li>';
    59                                         echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/themes.php">' . __('Switch Theme') . '</a></li>';                                 
    60                                         echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/edit-comments.php">' . __('Manage Comments') . '</a></li>';                                       
     56                                        echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/">' . __('Dashboard', 'buddypress') . '</a></li>';
     57                                        echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/post-new.php">' . __('New Post', 'buddypress') . '</a></li>';
     58                                        echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/post-new.php">' . __('Manage Posts', 'buddypress') . '</a></li>';
     59                                        echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/themes.php">' . __('Switch Theme', 'buddypress') . '</a></li>';                                   
     60                                        echo '<li><a href="' . $blog['siteurl']  . '/wp-admin/edit-comments.php">' . __('Manage Comments', 'buddypress') . '</a></li>';                                 
    6161                                        echo '</ul>';
    6262                                       
    … …  
    6565                        } else {
    6666                                echo '<li>';
    67                                 echo '<a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog">' . __('Create a Blog!') . '</a>';
     67                                echo '<a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog">' . __('Create a Blog!', 'buddypress') . '</a>';
    6868                                echo '</li>';
    6969                        }
    … …  
    8181                                        /* This is a blog, render a menu with links to all authors */
    8282                                        echo '<li><a href="/">';
    83                                         _e('Blog Authors');
     83                                        _e('Blog Authors', 'buddypress');
    8484                                        echo '</a>';
    8585                               
  • trunk/bp-core/bp-core-ajax.php

    r374 r391  
    4242                                                        <?php
    4343                                                        if ( $_POST['filter'] == 'newest-members') {
    44                                                                 echo bp_core_get_last_activity( $user->user_registered, __('registered '), __(' ago') );
     44                                                                echo bp_core_get_last_activity( $user->user_registered, __('registered ', 'buddypress'), __(' ago', 'buddypress') );
    4545                                                        } else if ( $_POST['filter'] == 'recently-active-members') {
    46                                                                 echo bp_core_get_last_activity( get_usermeta( $user->user_id, 'last_activity' ), __('active '), __(' ago') );
     46                                                                echo bp_core_get_last_activity( get_usermeta( $user->user_id, 'last_activity' ), __('active ', 'buddypress'), __(' ago', 'buddypress') );
    4747                                                        } else if ( $_POST['filter'] == 'popular-members') {
    4848                                                                if ( get_usermeta( $user->user_id, 'total_friend_count' ) == 1 )
    49                                                                         echo get_usermeta( $user->user_id, 'total_friend_count' ) . __(' friend');
     49                                                                        echo get_usermeta( $user->user_id, 'total_friend_count' ) . __(' friend', 'buddypress');
    5050                                                                else
    51                                                                         echo get_usermeta( $user->user_id, 'total_friend_count' ) . __(' friends');
     51                                                                        echo get_usermeta( $user->user_id, 'total_friend_count' ) . __(' friends', 'buddypress');
    5252                                                        }
    5353                                                        ?>
    … …  
    5959                }
    6060        } else {
    61                 echo "-1[[SPLIT]]<li>" . __("No members matched the current filter.");
     61                echo "-1[[SPLIT]]<li>" . __("No members matched the current filter.", 'buddypress');
    6262        }
    6363}
  • trunk/bp-core/bp-core-avatars.php

    r373 r391  
    7777        <?php if ( !isset($_POST['slick_avatars_action']) && !isset($_GET['slick_avatars_action']) ) { ?>
    7878        <div class="wrap">
    79                 <h2><?php _e('Your Avatar') ?></h2>
     79                <h2><?php _e('Your Avatar', 'buddypress') ?></h2>
    8080               
    8181                <?php if ( $message ) { ?>
    … …  
    8686                <?php } ?>
    8787
    88                 <p><?php _e('Your avatar will be used on your profile and throughout the site.') ?></p>
    89                 <p><?php _e('Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Photo\' to proceed.') ?></p>
     88                <p><?php _e('Your avatar will be used on your profile and throughout the site.', 'buddypress') ?></p>
     89                <p><?php _e('Click below to select a JPG, GIF or PNG format photo from your computer and then click \'Upload Photo\' to proceed.', 'buddypress') ?></p>
    9090               
    9191                <?php
    … …  
    100100                $str = bp_core_get_avatar( get_current_user_id(), 1 );
    101101                if ( strlen($str) ) {
    102                         echo '<h3>' . __('This is your current avatar') . '</h3>';
     102                        echo '<h3>' . __('This is your current avatar', 'buddypress') . '</h3>';
    103103                        echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 1) . '</span>';
    104104                        echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 2) . '</span>';
    … …  
    111111       
    112112                echo '<div class="wrap"><h2>';
    113                 _e('Your Avatar');
     113                _e('Your Avatar', 'buddypress');
    114114                echo '</h2>';
    115115               
    … …  
    120120                // Set friendly error feedback.
    121121                $uploadErrors = array(
    122                         0 => __("There is no error, the file uploaded with success"),
    123                         1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini"),
    124                         2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"),
    125                         3 => __("The uploaded file was only partially uploaded"),
    126                         4 => __("No file was uploaded"),
    127                         6 => __("Missing a temporary folder")
     122                        0 => __("There is no error, the file uploaded with success", 'buddypress'),
     123                        1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini", 'buddypress'),
     124                        2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form", 'buddypress'),
     125                        3 => __("The uploaded file was only partially uploaded", 'buddypress'),
     126                        4 => __("No file was uploaded", 'buddypress'),
     127                        6 => __("Missing a temporary folder", 'buddypress')
    128128                );
    129129
    … …  
    171171                // Store details to the DB and we're done
    172172                echo '<div class="wrap"><h2>';
    173                 _e('Your Avatar');
     173                _e('Your Avatar', 'buddypress');
    174174                echo '</h2>';
    175175               
    176                 echo '<p>' . __('Your new avatar was successfully created!') . '</p>';
     176                echo '<p>' . __('Your new avatar was successfully created!', 'buddypress') . '</p>';
    177177               
    178178                bp_core_avatar_save($result);
    … …  
    191191               
    192192                unset($_GET['slick_avatars_action']);
    193                 $message = __('Avatar successfully removed.');
     193                $message = __('Avatar successfully removed.', 'buddypress');
    194194                bp_core_avatar_admin($message);
    195195               
    … …  
    278278       
    279279        echo '<div id="avatar_v1">';
    280         echo '<h3>' . __('Main Avatar') . '</h3>';
    281         echo '<p>' . __('Please select the area of your photo you would like to use for your avatar') . '(' . CORE_AVATAR_V1_W . 'px x ' . CORE_AVATAR_V1_H . 'px).</p>';
     280        echo '<h3>' . __('Main Avatar', 'buddypress') . '</h3>';
     281        echo '<p>' . __('Please select the area of your photo you would like to use for your avatar', 'buddypress') . '(' . CORE_AVATAR_V1_W . 'px x ' . CORE_AVATAR_V1_H . 'px).</p>';
    282282       
    283283        // Canvas
    … …  
    285285       
    286286        // Preview
    287         echo '<p class="crop-preview"><strong>' . __('Crop Preview') . '</strong></p>';
     287        echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>';
    288288        echo '<div id="crop-preview-v1" class="crop-preview"></div>';
    289289       
    … …  
    299299        if (CORE_AVATAR_V2_W !== false && CORE_AVATAR_V2_H !== false) {
    300300                // Continue button (v1 => v2)
    301                 echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop &amp; Continue') . '" onclick="cropAndContinue();" /></p>';
     301                echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop &amp; Continue', 'buddypress') . '" onclick="cropAndContinue();" /></p>';
    302302                echo '</div>';
    303303               
    304304                echo '<div id="avatar_v2" style="display: none">';
    305                 echo '<h3>' . __('Alternate Avatar') . '</h3>';
    306                 echo '<p>' . __('Please select the area of your photo you would like to use for an alternate version') . '(' . CORE_AVATAR_V2_W . 'px x ' . CORE_AVATAR_V2_H . 'px).</p>';
     305                echo '<h3>' . __('Alternate Avatar', 'buddypress') . '</h3>';
     306                echo '<p>' . __('Please select the area of your photo you would like to use for an alternate version', 'buddypress') . '(' . CORE_AVATAR_V2_W . 'px x ' . CORE_AVATAR_V2_H . 'px).</p>';
    307307               
    308308                // Canvas
    … …  
    310310
    311311                // Preview
    312                 echo '<p class="crop-preview"><strong>' . __('Crop Preview') . '</strong></p>';
     312                echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>';
    313313                echo '<div id="crop-preview-v2" class="crop-preview"></div>';
    314314
    … …  
    322322               
    323323                // Final button to process everything
    324                 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save') . '" /></p>';
     324                echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save', 'buddypress') . '" /></p>';
    325325                echo '</div>';
    326326        } else {
    … …  
    329329               
    330330                // Final button to process everything
    331                 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save') . '" /></p>';
     331                echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop &amp; Save', 'buddypress') . '" /></p>';
    332332        }
    333333       
    … …  
    458458function bp_core_ap_die( $msg ) {
    459459        echo '<p><strong>' . $msg . '</strong></p>';
    460         echo '<p><a href="' . get_option('home') .'/wp-admin/admin.php?page=bp-xprofile.php">' . __('Try Again') . '</a></p>';
     460        echo '<p><a href="' . get_option('home') .'/wp-admin/admin.php?page=bp-xprofile.php">' . __('Try Again', 'buddypress') . '</a></p>';
    461461        echo '</div>';
    462462        exit;
  • trunk/bp-core/bp-core-classes.php

    r381 r391  
    6161                $this->fullname = bp_core_get_userlink( $this->id, true );
    6262                $this->email = bp_core_get_user_email( $this->id );
    63                 $this->last_active = bp_core_get_last_activity( get_usermeta( $this->id, 'last_activity' ), __('active '), __(' ago') );
     63                $this->last_active = bp_core_get_last_activity( get_usermeta( $this->id, 'last_activity' ), __('active ', 'buddypress'), __(' ago', 'buddypress') );
    6464               
    6565                if ( function_exists('xprofile_install') ) {
  • trunk/bp-core/bp-core-templatetags.php

    r375 r391  
    172172       
    173173        if ( $bp['bp_options_title'] == '' )
    174                 $bp['bp_options_title'] = __('Options');
     174                $bp['bp_options_title'] = __('Options', 'buddypress');
    175175       
    176176        echo $bp['bp_options_title'];
    … …  
    210210       
    211211        if ( !$just_date ) {
    212                 $date .= __('at') . date( ' g:iA', $time );
     212                $date .= __('at', 'buddypress') . date( ' g:iA', $time );
    213213        }
    214214       
    … …  
    219219        global $bp;
    220220       
    221         $my = __('my');
     221        $my = __('my', 'buddypress');
    222222       
    223223        if ( $capitalize )
    … …  
    240240        global $bp;
    241241       
    242         $you = __('you haven\'t');
     242        $you = __('you haven\'t', 'buddypress');
    243243       
    244244        if ( $capitalize )
    … …  
    261261        global $bp;
    262262       
    263         $your = __('your');
     263        $your = __('your', 'buddypress');
    264264       
    265265        if ( $capitalize )
    … …  
    282282        global $bp;
    283283       
    284         $your = __('your');
    285         $their = __('their');
     284        $your = __('your', 'buddypress');
     285        $their = __('their', 'buddypress');
    286286       
    287287        if ( $capitalize )
  • trunk/bp-core/bp-core-widgets.php

    r375 r391  
    99               
    1010                /* Site welcome widget */
    11                 register_sidebar_widget( __('Welcome'), 'bp_core_widget_welcome');
    12                 register_widget_control( __('Welcome'), 'bp_core_widget_welcome_control' );
     11                register_sidebar_widget( __('Welcome', 'buddypress'), 'bp_core_widget_welcome');
     12                register_widget_control( __('Welcome', 'buddypress'), 'bp_core_widget_welcome_control' );
    1313               
    1414                /* Site members widget */
    15                 register_sidebar_widget( __('Members'), 'bp_core_widget_members');
    16                 register_widget_control( __('Members'), 'bp_core_widget_members_control' );
     15                register_sidebar_widget( __('Members', 'buddypress'), 'bp_core_widget_members');
     16                register_widget_control( __('Members', 'buddypress'), 'bp_core_widget_members_control' );
    1717               
    1818                /* Include the javascript needed for activated widgets only */
    … …  
    2626       
    2727        /* Widgets that can be enabled anywhere */
    28         register_sidebar_widget( __('Who\'s Online'), 'bp_core_widget_whos_online');
    29         register_widget_control( __('Who\'s Online'), 'bp_core_widget_whos_online_control' );   
     28        register_sidebar_widget( __('Who\'s Online', 'buddypress'), 'bp_core_widget_whos_online');
     29        register_widget_control( __('Who\'s Online', 'buddypress'), 'bp_core_widget_whos_online_control' );     
    3030
    3131}
    … …  
    4949        <p><?php echo $options['text'] ?></p>
    5050
    51         <p class="create-account"><a href="<?php echo site_url() ?>/wp-signup.php" title="<?php _e('Create Account') ?>"><img src="<?php echo get_template_directory_uri() ?>/images/create_account_button.gif" alt="<?php _e('Create Account') ?>" /></a></p>
     51        <p class="create-account"><a href="<?php echo site_url() ?>/wp-signup.php" title="<?php _e('Create Account', 'buddypress') ?>"><img src="<?php echo get_template_directory_uri() ?>/images/create_account_button.gif" alt="<?php _e('Create Account', 'buddypress') ?>" /></a></p>
    5252
    5353        <?php echo $after_widget; ?>
    … …  
    7373        $text = attribute_escape( $options['text'] );
    7474?>
    75                 <p><label for="bp-widget-welcome-title"><?php _e('Title:'); ?> <input class="widefat" id="bp-widget-welcome-title" name="bp-widget-welcome-title" type="text" value="<?php echo $title; ?>" /></label></p>
     75                <p><label for="bp-widget-welcome-title"><?php _e('Title:', 'buddypress'); ?> <input class="widefat" id="bp-widget-welcome-title" name="bp-widget-welcome-title" type="text" value="<?php echo $title; ?>" /></label></p>
    7676                <p>
    77                         <label for="bp-widget-welcome-text"><?php _e( 'Welcome Text:' ); ?>
     77                        <label for="bp-widget-welcome-text"><?php _e( 'Welcome Text:' , 'buddypress'); ?>
    7878                                <textarea id="bp-widget-welcome-text" name="bp-widget-welcome-text" class="widefat" style="height: 100px"><?php echo $text; ?></textarea>
    7979                        </label>
    … …  
    101101                <div class="item-options" id="members-list-options">
    102102                        <img id="ajax-loader-members" src="<?php echo $bp['core']['image_base'] ?>/ajax-loader.gif" height="7" alt="Loading" style="display: none;" /> &nbsp;
    103                         <a href="<?php echo site_url() . '/members' ?>" id="newest-members" class="selected"><?php _e("Newest") ?></a> |
    104                         <a href="<?php echo site_url() . '/members' ?>" id="recently-active-members"><?php _e("Active") ?></a> |
    105                         <a href="<?php echo site_url() . '/members' ?>" id="popular-members"><?php _e("Popular") ?></a>
     103                        <a href="<?php echo site_url() . '/members' ?>" id="newest-members" class="selected"><?php _e("Newest", 'buddypress') ?></a> |
     104                        <a href="<?php echo site_url() . '/members' ?>" id="recently-active-members"><?php _e("Active", 'buddypress') ?></a> |
     105                        <a href="<?php echo site_url() . '/members' ?>" id="popular-members"><?php _e("Popular", 'buddypress') ?></a>
    106106                </div>
    107107                <ul id="members-list" class="item-list">
    … …  
    115115                                        <div class="item">
    116116                                                <div class="item-title"><?php echo bp_core_get_userlink( $user->user_id ) ?></div>
    117                                                 <div class="item-meta"><span class="activity"><?php echo bp_core_get_last_activity( $user->user_registered, __('registered '), __(' ago') ) ?></span></div>
     117                                                <div class="item-meta"><span class="activity"><?php echo bp_core_get_last_activity( $user->user_registered, __('registered ', 'buddypress'), __(' ago', 'buddypress') ) ?></span></div>
    118118                                        </div>
    119119                                </li>
    … …  
    131131        <?php else: ?>
    132132                <div class="widget-error">
    133                         <?php _e('No one has signed up yet!') ?>
     133                        <?php _e('No one has signed up yet!', 'buddypress') ?>
    134134                </div>
    135135        <?php endif; ?>
    … …  
    155155        $max_members = attribute_escape( $options['max_members'] );
    156156?>
    157                 <p><label for="bp-core-widget-members-max"><?php _e('Max Members to show:'); ?> <input class="widefat" id="bp-core-widget-members-max" name="bp-core-widget-members-max" type="text" value="<?php echo $max_members; ?>" style="width: 30%" /></label></p>
     157                <p><label for="bp-core-widget-members-max"><?php _e('Max Members to show:', 'buddypress'); ?> <input class="widefat" id="bp-core-widget-members-max" name="bp-core-widget-members-max" type="text" value="<?php echo $max_members; ?>" style="width: 30%" /></label></p>
    158158                <input type="hidden" id="bp-core-widget-members-submit" name="bp-core-widget-members-submit" value="1" />
    159159<?php
    … …  
    195195        <?php else: ?>
    196196                <div class="widget-error">
    197                         <?php _e('There are no users currently online.') ?>
     197                        <?php _e('There are no users currently online.', 'buddypress') ?>
    198198                </div>
    199199        <?php endif; ?>
    … …  
    219219        $max_members = attribute_escape( $options['max_members'] );
    220220?>
    221                 <p><label for="bp-widget-whos-online-max-members"><?php _e('Maximum number of members to show:'); ?><br /><input class="widefat" id="bp-widget-whos-online-max-members" name="bp-widget-whos-online-max-members" type="text" value="<?php echo $max_members; ?>" style="width: 30%" /></label></p>
     221                <p><label for="bp-widget-whos-online-max-members"><?php _e('Maximum number of members to show:', 'buddypress'); ?><br /><input class="widefat" id="bp-widget-whos-online-max-members" name="bp-widget-whos-online-max-members" type="text" value="<?php echo $max_members; ?>" style="width: 30%" /></label></p>
    222222                <input type="hidden" id="bp-widget-whos-online-submit" name="bp-widget-whos-online-submit" value="1" />
    223223<?php
  • trunk/bp-core/homebase-creation/bp-core-homebase-functions.php

    r359 r391  
    77                ?>
    88                <div id="update-nag">
    9                         <p><a href="admin.php?page=bp-core/homebase-creation/bp-core-homebase-tab.php"><?php _e('Create a Home Base!') ?></a><br />
    10                         <?php _e('Create your home base and start using all the new social networking features') ?></p>
     9                        <p><a href="admin.php?page=bp-core/homebase-creation/bp-core-homebase-tab.php"><?php _e('Create a Home Base!', 'buddypress') ?></a><br />
     10                        <?php _e('Create your home base and start using all the new social networking features', 'buddypress') ?></p>
    1111                </div>
    1212                <?php
    … …  
    1717function bp_core_add_createhomebase_tab() {
    1818        if ( !bp_core_user_has_home() ) {
    19                 add_menu_page( __('Create Home Base'), __('Create Home Base'), 1, 'bp-core/homebase-creation/bp-core-homebase-tab.php');
     19                add_menu_page( __('Create Home Base', 'buddypress'), __('Create Home Base', 'buddypress'), 1, 'bp-core/homebase-creation/bp-core-homebase-tab.php');
    2020        }
    2121}
    … …  
    2727        if ( ( is_site_admin() && $bp['current_userid'] != $bp['loggedin_userid'] ) && ( $wpdb->blogid == $bp['current_homebase_id'] ) ) { ?>
    2828                <div id="update-nag">
    29                         <p><strong><?php _e('Administrator Notice:') ?></strong> <?php _e('This is a user home base, not a blog.') ?></p>
     29                        <p><strong><?php _e('Administrator Notice:', 'buddypress') ?></strong> <?php _e('This is a user home base, not a blog.', 'buddypress') ?></p>
    3030                </div> 
    3131        <?php   
    … …  
    5858
    5959        if ( $errors->get_error_code() ) {
    60                 echo "<p>" . __('There was a problem, please correct the form below and try again.') . "</p>";
     60                echo "<p>" . __('There was a problem, please correct the form below and try again.', 'buddypress') . "</p>";
    6161        }
    6262        ?>
    6363       
    6464        <div class="wrap">
    65                 <p><h2><?php _e('Create Your Home Base') ?></h2></p>
     65                <p><h2><?php _e('Create Your Home Base', 'buddypress') ?></h2></p>
    6666                <div>
    67                         <h3><?php _e('What\'s a home base and how do I make one?') ?></h3>
    68                         <p><?php _e('Your home base will be where you and other members go to view your profile, groups, friends and more.') ?></p>
    69                         <p><?php _e('Creating a home base is easy, all you have to do is fill in the form below. Once your home base is created, you can start using all the new features. Any existing blogs will be linked with your home base.') ?></p>
     67                        <h3><?php _e('What\'s a home base and how do I make one?', 'buddypress') ?></h3>
     68                        <p><?php _e('Your home base will be where you and other members go to view your profile, groups, friends and more.', 'buddypress') ?></p>
     69                        <p><?php _e('Creating a home base is easy, all you have to do is fill in the form below. Once your home base is created, you can start using all the new features. Any existing blogs will be linked with your home base.', 'buddypress') ?></p>
    7070
    7171                        <form id="setupform" method="post" action="admin.php?page=bp-core/homebase-creation/bp-core-homebase-tab.php">
    … …  
    7575                                <?php do_action( 'signup_extra_fields', $errors ); ?>
    7676                                <p>
    77                                         <input id="submit" type="submit" name="submit" value="<?php _e('Create Home Base &raquo;') ?>" /></p>
     77                                        <input id="submit" type="submit" name="submit" value="<?php _e('Create Home Base &raquo;', 'buddypress') ?>" /></p>
    7878                        </form>
    7979                </div>
    … …  
    8888        <tbody>
    8989                <tr>
    90                         <th scope="row"><?php _e('Username') ?></th>
     90                        <th scope="row"><?php _e('Username', 'buddypress') ?></th>
    9191                        <td>
    9292                        <?php
    … …  
    112112        ?>
    113113        <?php if ( !function_exists('xprofile_install') ) { ?>
    114                 <label for="blog_title"><?php _e('Full Name:') ?></label>       
     114                <label for="blog_title"><?php _e('Full Name:', 'buddypress') ?></label>
    115115                <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>
    116116                        <p class="error"><?php echo $errmsg ?></p>
  • trunk/bp-core/homebase-creation/bp-core-homebase-tab.php

    r359 r391  
    2121$current_user = wp_get_current_user();
    2222if( $active_signup == "none" ) {
    23         _e( "Registration has been disabled." );
     23        _e( "Registration has been disabled." , 'buddypress');
    2424} else {
    2525        if( $active_signup == 'blog' && !is_user_logged_in() )
    … …  
    4545                                        bp_core_homebase_signup_form($newblogname);
    4646                                } elseif( is_user_logged_in() == false && ( $active_signup == 'blog' ) ) {
    47                                         _e( "I'm sorry. We're not accepting new registrations at this time." );
     47                                        _e( "I'm sorry. We're not accepting new registrations at this time." , 'buddypress');
    4848                                } else {
    49                                         _e( "You're logged in already. No need to register again!" );
     49                                        _e( "You're logged in already. No need to register again!" , 'buddypress');
    5050                                }
    5151                        }
  • trunk/bp-friends.php

    r375 r391  
    9393       
    9494        /* Add 'Friends' to the main navigation */
    95         bp_core_add_nav_item( __('Friends'), $bp['friends']['slug'] );
     95        bp_core_add_nav_item( __('Friends', 'buddypress'), $bp['friends']['slug'] );
    9696        bp_core_add_nav_default( $bp['friends']['slug'], 'friends_screen_my_friends', 'my-friends' );
    9797       
    … …  
    9999       
    100100        /* Add the subnav items to the friends nav item */
    101         bp_core_add_subnav_item( $bp['friends']['slug'], 'my-friends', __('My Friends'), $friends_link, 'friends_screen_my_friends' );
    102         bp_core_add_subnav_item( $bp['friends']['slug'], 'requests', __('Requests'), $friends_link, 'friends_screen_requests' );
    103         bp_core_add_subnav_item( $bp['friends']['slug'], 'friend-finder', __('Friend Finder'), $friends_link, 'friends_screen_friend_finder' );
    104         bp_core_add_subnav_item( $bp['friends']['slug'], 'invite-friend', __('Invite Friends'), $friends_link, 'friends_screen_invite_friends' );
     101        bp_core_add_subnav_item( $bp['friends']['slug'], 'my-friends', __('My Friends', 'buddypress'), $friends_link, 'friends_screen_my_friends' );
     102        bp_core_add_subnav_item( $bp['friends']['slug'], 'requests', __('Requests', 'buddypress'), $friends_link, 'friends_screen_requests' );
     103        bp_core_add_subnav_item( $bp['friends']['slug'], 'friend-finder', __('Friend Finder', 'buddypress'), $friends_link, 'friends_screen_friend_finder' );
     104        bp_core_add_subnav_item( $bp['friends']['slug'], 'invite-friend', __('Invite Friends', 'buddypress'), $friends_link, 'friends_screen_invite_friends' );
    105105       
    106106        if ( $bp['current_component'] == $bp['friends']['slug'] ) {
    107107                if ( bp_is_home() ) {
    108                         $bp['bp_options_title'] = __('My Friends');
     108                        $bp['bp_options_title'] = __('My Friends', 'buddypress');
    109109                } else {
    110110                        $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 );
    … …  
    127127               
    128128                if ( friends_accept_friendship( $bp['action_variables'][1] ) ) {
    129                         $bp['message'] = __('Friendship accepted');
     129                        $bp['message'] = __('Friendship accepted', 'buddypress');
    130130                        $bp['message_type'] = 'success';
    131131                } else {
    132                         $bp['message'] = __('Friendship could not be accepted');
     132                        $bp['message'] = __('Friendship could not be accepted', 'buddypress');
    133133                        $bp['message_type'] = 'error';                                 
    134134                }
    … …  
    138138               
    139139                if ( friends_reject_friendship( $bp['action_variables'][1] ) ) {
    140                         $bp['message'] = __('Friendship rejected');
     140                        $bp['message'] = __('Friendship rejected', 'buddypress');
    141141                        $bp['message_type'] = 'success';
    142142                } else {
    143                         $bp['message'] = __('Friendship could not be rejected');
     143                        $bp['message'] = __('Friendship could not be rejected', 'buddypress');
    144144                        $bp['message_type'] = 'error';                         
    145145                }
    … …  
    198198                       
    199199                        if ( $for_secondary_user ) {
    200                                 return bp_core_get_userlink( $friendship->initiator_user_id ) . ' ' . __('and') . ' ' . bp_core_get_userlink($friendship->friend_user_id, false, false, true) . ' ' . __('are now friends') . '. <span class="time-since">%s</span>';                           
     200                                return bp_core_get_userlink( $friendship->initiator_user_id ) . ' ' . __('and', 'buddypress') . ' ' . bp_core_get_userlink($friendship->friend_user_id, false, false, true) . ' ' . __('are now friends', 'buddypress') . '. <span class="time-since">%s</span>';                               
    201201                        } else {
    202                                 return bp_core_get_userlink( $friendship->friend_user_id ) . ' ' . __('and') . ' ' . bp_core_get_userlink($friendship->initiator_user_id) . ' ' . __('are now friends') . '. <span class="time-since">%s</span>';                                                               
     202                                return bp_core_get_userlink( $friendship->friend_user_id ) . ' ' . __('and', 'buddypress') . ' ' . bp_core_get_userlink($friendship->initiator_user_id) . ' ' . __('are now friends', 'buddypress') . '. <span class="time-since">%s</span>';                                                           
    203203                        }
    204204
  • trunk/bp-friends/bp-friends-ajax.php

    r375 r391  
    5656        } else {
    5757                $result['message'] = '<img src="' . $bp['friends']['image_base'] . '/warning.gif" alt="Warning" /> &nbsp;' . $result['message'];
    58                 echo "-1[[SPLIT]]" . __("No friends matched your search.");
     58                echo "-1[[SPLIT]]" . __("No friends matched your search.", 'buddypress');
    5959        }
    6060}
    … …  
    7979
    8080        if ( $_POST['finder-search-box'] == "" ) {
    81                 echo "-1[[SPLIT]]" . __("Please enter something to search for.");
     81                echo "-1[[SPLIT]]" . __("Please enter something to search for.", 'buddypress');
    8282                return;
    8383        }
    … …  
    118118        } else {
    119119                $result['message'] = '<img src="' . $bp['friends']['image_base'] . '/warning.gif" alt="Warning" /> &nbsp;' . $result['message'];
    120                 echo "-1[[SPLIT]]" . __("No site users matched your search.");
     120                echo "-1[[SPLIT]]" . __("No site users matched your search.", 'buddypress');
    121121        }
    122122}
    … …  
    134134        if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'is_friend' ) {
    135135                if ( !friends_remove_friend( $bp['loggedin_userid'], $bp['current_userid'] ) ) {
    136                         echo __("Friendship could not be canceled.");
     136                        echo __("Friendship could not be canceled.", 'buddypress');
    137137                } else {
    138138                        friends_update_friend_totals( $bp['loggedin_userid'], $bp['current_userid'], 'remove' );
    139                         echo __('Add Friend');
     139                        echo __('Add Friend', 'buddypress');
    140140                }
    141141        } else if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'not_friends' ) {
    142142                if ( !friends_add_friend( $bp['loggedin_userid'], $_POST['fid'] ) ) {
    143                         echo __("Friendship could not be requested.");
     143                        echo __("Friendship could not be requested.", 'buddypress');
    144144                } else {
    145                         echo __('Friendship Requested');
     145                        echo __('Friendship Requested', 'buddypress');
    146146                }
    147147        } else {
    148                 echo __('Request Pending');
     148                echo __('Request Pending', 'buddypress');
    149149        }
    150150       
  • trunk/bp-friends/bp-friends-templatetags.php

    r359 r391  
    242242       
    243243        if ( $friends_template->friendship->date_created != "0000-00-00 00:00:00" ) {
    244                 echo __('requested') . ' ' . bp_core_time_since( strtotime( $friends_template->friendship->date_created ) ) . ' ' . __('ago');
     244                echo __('requested', 'buddypress') . ' ' . bp_core_time_since( strtotime( $friends_template->friendship->date_created ) ) . ' ' . __('ago', 'buddypress');
    245245        }
    246246}
    … …  
    268268        if ( $bp['current_action'] == 'my-friends' || !$bp['current_action'] ) {
    269269                $action = $bp['current_domain'] . $bp['friends']['slug'] . '/my-friends/search/';
    270                 $label = __('Filter Friends');
     270                $label = __('Filter Friends', 'buddypress');
    271271                $type = 'friend';
    272272        } else {
    273273                $action = $bp['current_domain'] . $bp['friends']['slug'] . '/friend-finder/search/';
    274                 $label = __('Find Friends');
     274                $label = __('Find Friends', 'buddypress');
    275275                $type = 'finder';
    276276                $value = $bp['action_variables'][1];
    … …  
    326326                echo '<div class="friendship-button" id="friendship-button-' . $potential_friend_id . '">';
    327327                if ( $friend_status == 'pending' ) {
    328                         _e('Friendship Requested');
     328                        _e('Friendship Requested', 'buddypress');
    329329                } else if ( $friend_status == 'is_friend') {
    330                         echo '<a href="' . $bp['loggedin_domain'] . $bp['friends']['slug'] . '/remove-friend/' . $potential_friend_id . '" title="' . __('Cancel Friendship') . '" id="friend-' . $potential_friend_id . '" rel="remove" class="remove">' . __('Cancel Friendship') . '</a>';
     330                        echo '<a href="' . $bp['loggedin_domain'] . $bp['friends']['slug'] . '/remove-friend/' . $potential_friend_id . '" title="' . __('Cancel Friendship', 'buddypress') . '" id="friend-' . $potential_friend_id . '" rel="remove" class="remove">' . __('Cancel Friendship', 'buddypress') . '</a>';
    331331                } else {
    332                         echo '<a href="' . $bp['loggedin_domain'] . $bp['friends']['slug'] . '/add-friend/' . $potential_friend_id . '" title="' . __('Add Friend') . '" id="friend-' . $potential_friend_id . '" rel="add">' . __('Add Friend') . '</a>';
     332                        echo '<a href="' . $bp['loggedin_domain'] . $bp['friends']['slug'] . '/add-friend/' . $potential_friend_id . '" title="' . __('Add Friend', 'buddypress') . '" id="friend-' . $potential_friend_id . '" rel="add">' . __('Add Friend', 'buddypress') . '</a>';
    333333                }
    334334                echo '</div>';
    … …  
    345345?>     
    346346        <div class="info-group">
    347                 <h4><?php bp_my_or_name() ?> <?php _e('Friends') ?> (<?php echo BP_Friends_Friendship::total_friend_count() ?>)  <a href="<?php echo $bp['current_domain'] . $bp['friends']['slug'] ?>"><?php _e('See All') ?> &raquo;</a></h4>
     347                <h4><?php bp_my_or_name() ?> <?php _e('Friends', 'buddypress') ?> (<?php echo BP_Friends_Friendship::total_friend_count() ?>)  <a href="<?php echo $bp['current_domain'] . $bp['friends']['slug'] ?>"><?php _e('See All', 'buddypress') ?> &raquo;</a></h4>
    348348               
    349349                <?php if ( $friend_ids ) { ?>
    … …  
    358358                <?php } else { ?>
    359359                        <div id="message" class="info">
    360                                 <p><?php bp_you_or_name() ?> <?php _e('added any friend connections yet.') ?></p>
     360                                <p><?php bp_you_or_name() ?> <?php _e('added any friend connections yet.', 'buddypress') ?></p>
    361361                        </div>
    362362                <?php } ?>
  • trunk/bp-groups.php

    r388 r391  
    164164
    165165        /* Add 'Groups' to the main navigation */
    166         bp_core_add_nav_item( __('Groups'), $bp['groups']['slug'] );
     166        bp_core_add_nav_item( __('Groups', 'buddypress'), $bp['groups']['slug'] );
    167167        bp_core_add_nav_default( $bp['groups']['slug'], 'groups_screen_my_groups', 'my-groups' );
    168168               
    … …  
    170170       
    171171        /* Add the subnav items to the groups nav item */
    172         bp_core_add_subnav_item( $bp['groups']['slug'], 'my-groups', __('My Groups'), $groups_link, 'groups_screen_my_groups' );
    173         bp_core_add_subnav_item( $bp['groups']['slug'], 'group-finder', __('Group Finder'), $groups_link, 'groups_screen_group_finder' );
    174         bp_core_add_subnav_item( $bp['groups']['slug'], 'create', __('Create a Group'), $groups_link, 'groups_screen_create_group' );
    175         bp_core_add_subnav_item( $bp['groups']['slug'], 'invites', __('Invites'), $groups_link, 'groups_screen_group_invites' );
     172        bp_core_add_subnav_item( $bp['groups']['slug'], 'my-groups', __('My Groups', 'buddypress'), $groups_link, 'groups_screen_my_groups' );
     173        bp_core_add_subnav_item( $bp['groups']['slug'], 'group-finder', __('Group Finder', 'buddypress'), $groups_link, 'groups_screen_group_finder' );
     174        bp_core_add_subnav_item( $bp['groups']['slug'], 'create', __('Create a Group', 'buddypress'), $groups_link, 'groups_screen_create_group' );
     175        bp_core_add_subnav_item( $bp['groups']['slug'], 'invites', __('Invites', 'buddypress'), $groups_link, 'groups_screen_group_invites' );
    176176       
    177177        if ( $bp['current_component'] == $bp['groups']['slug'] ) {
    … …  
    179179                if ( bp_is_home() && !$is_single_group ) {
    180180                       
    181                         $bp['bp_options_title'] = __('My Groups');
     181                        $bp['bp_options_title'] = __('My Groups', 'buddypress');
    182182                       
    183183                } else if ( !bp_is_home() && !$is_single_group ) {
    … …  
    208208                        bp_core_add_nav_default( $bp['groups']['slug'], 'groups_screen_group_home', 'home' );
    209209                       
    210                         bp_core_add_subnav_item( $bp['groups']['slug'], 'home', __('Home'), $group_link, 'groups_screen_group_home', 'group-home' );
    211                         bp_core_add_subnav_item( $bp['groups']['slug'], 'forum', __('Forum'), $group_link , 'groups_screen_group_forum', 'group-forum');
     210                        bp_core_add_subnav_item( $bp['groups']['slug'], 'home', __('Home', 'buddypress'), $group_link, 'groups_screen_group_home', 'group-home' );
     211                        bp_core_add_subnav_item( $bp['groups']['slug'], 'forum', __('Forum', 'buddypress'), $group_link , 'groups_screen_group_forum', 'group-forum');
    212212                       
    213213                        if ( function_exists('bp_wire_install') ) {
    214                                 bp_core_add_subnav_item( $bp['groups']['slug'], 'wire', __('Wire'), $group_link, 'groups_screen_group_wire', 'group-wire' );
     214                                bp_core_add_subnav_item( $bp['groups']['slug'], 'wire', __('Wire', 'buddypress'), $group_link, 'groups_screen_group_wire', 'group-wire' );
    215215                        }
    216216                       
    217217                        if ( function_exists('bp_gallery_install') ) {
    218                                 bp_core_add_subnav_item( $bp['groups']['slug'], 'photos', __('Photos'), $group_link, 'groups_screen_group_photos', 'group-photos' );
     218                                bp_core_add_subnav_item( $bp['groups']['slug'], 'photos', __('Photos', 'buddypress'), $group_link, 'groups_screen_group_photos', 'group-photos' );
    219219                        }
    220220                       
    221                         bp_core_add_subnav_item( $bp['groups']['slug'], 'members', __('Members'), $group_link, 'groups_screen_group_members', 'group-members' );
     221                        bp_core_add_subnav_item( $bp['groups']['slug'], 'members', __('Members', 'buddypress'), $group_link, 'groups_screen_group_members', 'group-members' );
    222222                       
    223223                        if ( is_user_logged_in() && groups_is_user_member( $bp['loggedin_userid'], $group_obj->id ) ) {
    224                                 bp_core_add_subnav_item( $bp['groups']['slug'], 'send-invites', __('Send Invites'), $group_link, 'groups_screen_group_invite', 'group-invite' );
    225                                 bp_core_add_subnav_item( $bp['groups']['slug'], 'leave-group', __('Leave Group'), $group_link, 'groups_screen_group_leave', 'group-leave' );
     224                                bp_core_add_subnav_item( $bp['groups']['slug'], 'send-invites', __('Send Invites', 'buddypress'), $group_link, 'groups_screen_group_invite', 'group-invite' );
     225                                bp_core_add_subnav_item( $bp['groups']['slug'], 'leave-group', __('Leave Group', 'buddypress'), $group_link, 'groups_screen_group_leave', 'group-leave' );
    226226                        }
    227227                }
    … …  
    279279
    280280                if ( $member->save() ) {
    281                         $bp['message'] = __('Group invite accepted');
     281                        $bp['message'] = __('Group invite accepted', 'buddypress');
    282282                        $bp['message_type'] = 'success';
    283283                } else {
    284                         $bp['message'] = __('Group invite could not be accepted');
     284                        $bp['message'] = __('Group invite could not be accepted', 'buddypress');
    285285                        $bp['message_type'] = 'error';                                 
    286286                }
    … …  
    288288        } else if ( isset($bp['action_variables']) && in_array( 'reject', $bp['action_variables'] ) && is_numeric($bp['action_variables'][1]) ) {
    289289                if ( BP_Groups_Member::delete( $bp['loggedin_userid'], $bp['action_variables'][1] ) ) {
    290                         $bp['message'] = __('Group invite rejected');
     290                        $bp['message'] = __('Group invite rejected', 'buddypress');
    291291                        $bp['message_type'] = 'success';
    292292                } else {
    293                         $bp['message'] = __('Group invite could not be rejected');
     293                        $bp['message'] = __('Group invite could not be rejected', 'buddypress');
    294294                        $bp['message_type'] = 'error';                         
    295295                }
    … …  
    326326                } else {
    327327                        if ( !$group_obj_id = &groups_manage_group( $create_group_step, $_COOKIE['group_obj_id'] ) ) {
    328                                 $bp['message'] = __('There was an error saving group details. Please try again.');
     328                                $bp['message'] = __('There was an error saving group details. Please try again.', 'buddypress');
    329329                                $bp['message_type'] = 'error';
    330330               
    … …  
    373373                                bp_catch_uri( 'groups/group-home' );
    374374                        } else {
    375                                 $bp['message'] = __('Wire message successfully posted.');
     375                                $bp['message'] = __('Wire message successfully posted.', 'buddypress');
    376376                                $bp['message_type'] = 'success';
    377377
    … …  
    390390                                bp_catch_uri( 'groups/group-home' );
    391391                        } else {
    392                                 $bp['message'] = __('Wire message successfully deleted.');
     392                                $bp['message'] = __('Wire message successfully deleted.', 'buddypress');
    393393                                $bp['message_type'] = 'success';
    394394
    … …  
    438438                        groups_send_invites($group_obj);
    439439                       
    440                         $bp['message'] = __('Group invites sent.');
     440                        $bp['message'] = __('Group invites sent.', 'buddypress');
    441441                        $bp['message_type'] = 'success';
    442442                       
    … …  
    458458                        // remove the user from the group.
    459459                        if ( !groups_leave_group( $group_obj->id ) ) {
    460                                 $bp['message'] = __('There was an error leaving the group. Please try again.');
     460                                $bp['message'] = __('There was an error leaving the group. Please try again.', 'buddypress');
    461461                                $bp['message_type'] = 'error';                                                                         
    462462                        } else {
    463                                 $bp['message'] = __('You left the group successfully.');
     463                                $bp['message'] = __('You left the group successfully.', 'buddypress');
    464464                                $bp['message_type'] = 'success';       
    465465                        }
    … …  
    490490        if ( !BP_Groups_Member::check_is_member( $bp['loggedin_userid'], $group_obj->id ) ) {
    491491                if ( !groups_join_group($group_obj->id) ) {
    492                         $bp['message'] = __('There was an error joining the group. Please try again.');
     492                        $bp['message'] = __('There was an error joining the group. Please try again.', 'buddypress');
    493493                        $bp['message_type'] = 'error';
    494494                } else {
    495                         $bp['message'] = __('You joined the group!');
     495                        $bp['message'] = __('You joined the group!', 'buddypress');
    496496                        $bp['message_type'] = 'success';       
    497497                }
    … …  
    540540                                return false;
    541541                               
    542                         return bp_core_get_userlink($bp['current_userid']) . ' ' . __('joined the group') . ' ' . '<a href="' . $bp['current_domain'] . $bp['groups']['slug'] . '/' . $group->slug . '">' . $group->name . '</a>. <span class="time-since">%s</span>';
     542                        return bp_core_get_userlink($bp['current_userid']) . ' ' . __('joined the group', 'buddypress') . ' ' . '<a href="' . $bp['current_domain'] . $bp['groups']['slug'] . '/' . $group->slug . '">' . $group->name . '</a>. <span class="time-since">%s</span>';
    543543                break;
    544544                case 'created_group':
    … …  
    548548                                return false;
    549549                               
    550                         return bp_core_get_userlink($bp['current_userid']) . ' ' . __('created the group') . ' ' . '<a href="' . $bp['current_domain'] . $bp['groups']['slug'] . '/' . $group->slug . '">' . $group->name . '</a>. <span class="time-since">%s</span>';
     550                        return bp_core_get_userlink($bp['current_userid']) . ' ' . __('created the group', 'buddypress') . ' ' . '<a href="' . $bp['current_domain'] . $bp['groups']['slug'] . '/' . $group->slug . '">' . $group->name . '</a>. <span class="time-since">%s</span>';
    551551                break;
    552552                case 'new_wire_post':
    … …  
    557557                                return false;           
    558558                                       
    559                         $content = bp_core_get_userlink($bp['current_userid']) . ' ' . __('wrote on the wire of the group') . ' ' . '<a href="' . $bp['current_domain'] . $bp['groups']['slug'] . '/' . $group->slug . '">' . $group->name . '</a>: <span class="time-since">%s</span>';                       
     559                        $content = bp_core_get_userlink($bp['current_userid']) . ' ' . __('wrote on the wire of the group', 'buddypress') . ' ' . '<a href="' . $bp['current_domain'] . $bp['groups']['slug'] . '/' . $group->slug . '">' . $group->name . '</a>: <span class="time-since">%s</span>';                 
    560560                        $content .= '<blockquote>' . bp_create_excerpt($wire_post->content) . '</blockquote>';
    561561                        return $content;
    … …  
    617617        // Set friendly error feedback.
    618618        $uploadErrors = array(
    619                 0 => __("There is no error, the file uploaded with success"),
    620                 1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini"),
    621                 2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"),
    622                 3 => __("The uploaded file was only partially uploaded"),
    623                 4 => __("No file was uploaded"),
    624                 6 => __("Missing a temporary folder")
     619                0 => __("There is no error, the file uploaded with success", 'buddypress'),
     620                1 => __("The uploaded file exceeds the upload_max_filesize directive in php.ini", 'buddypress'),
     621                2 => __("The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form", 'buddypress'),
     622                3 => __("The uploaded file was only partially uploaded", 'buddypress'),
     623                4 => __("No file was uploaded", 'buddypress'),
     624                6 => __("Missing a temporary folder", 'buddypress')
    625625        );
    626626
    627627        if ( !bp_core_check_avatar_upload($file) ) {
    628628                $avatar_error = true;
    629                 $avatar_error_msg = __('Your group avatar upload failed, please try again. Error was: ' . $uploadErrors[$file['file']['error']] );
     629                $avatar_error_msg = __('Your group avatar upload failed, please try again. Error was: ' . $uploadErrors[$file['file']['error']] , 'buddypress');
    630630        }
    631631
    … …  
    633633                $avatar_error = true;
    634634                $avatar_size = size_format(1024 * CORE_MAX_FILE_SIZE);
    635                 $avatar_error_msg = __('The file you uploaded is too big. Please upload a file under') . size_format(1024 * CORE_MAX_FILE_SIZE);
     635                $avatar_error_msg = __('The file you uploaded is too big. Please upload a file under', 'buddypress') . size_format(1024 * CORE_MAX_FILE_SIZE);
    636636        }
    637637       
    638638        else if ( !bp_core_check_avatar_type($file) ) {
    639639                $avatar_error = true;
    640                 $avatar_error_msg = __('Please upload only JPG, GIF or PNG photos.');           
     640                $avatar_error_msg = __('Please upload only JPG, GIF or PNG photos.', 'buddypress');             
    641641        }
    642642
    … …  
    644644        else if ( !$original = bp_core_handle_avatar_upload($file) ) {
    645645                $avatar_error = true;
    646                 $avatar_error_msg = __('Upload Failed! Your photo dimensions are likely too big.');                                             
     646                $avatar_error_msg = __('Upload Failed! Your photo dimensions are likely too big.', 'buddypress');                                               
    647647        }
    648648
    649649        else if ( !bp_core_check_avatar_dimensions($original) ) {
    650650                $avatar_error = true;
    651                 $avatar_error_msg = sprintf( __('The image you upload must have dimensions of %d x %d pixels or larger.'), CORE_CROPPING_CANVAS_MAX, CORE_CROPPING_CANVAS_MAX );
     651                $avatar_error_msg = sprintf( __('The image you upload must have dimensions of %d x %d pixels or larger.', 'buddypress'), CORE_CROPPING_CANVAS_MAX, CORE_CROPPING_CANVAS_MAX );
    652652        }
    653653       
    … …  
    722722                                        $admin = new BP_Groups_Member( $bp['loggedin_userid'], $group->id );
    723723                                        $admin->is_admin = 1;
    724                                         $admin->user_title = __('Group Admin');
     724                                        $admin->user_title = __('Group Admin', 'buddypress');
    725725                                        $admin->date_modified = time();
    726726                                        $admin->inviter_id = 0;
    … …  
    897897                $message .= "Reject the invite: " . $invited_user->user_url . $bp['groups']['slug'] . "/invites/reject/" . $group_obj->id . "\n";
    898898
    899                 wp_mail( $invited_user->email, __("New Group Invitation:") . $group_obj->name, $message, "From: noreply@" . $_SERVER[ 'HTTP_HOST' ]  );
     899                wp_mail( $invited_user->email, __("New Group Invitation:", 'buddypress') . $group_obj->name, $message, "From: noreply@" . $_SERVER[ 'HTTP_HOST' ]  );
    900900        }
    901901
  • trunk/bp-groups/bp-groups-ajax.php

    r375 r391  
    9595                                <h4>
    9696                                        <a href="<?php bp_group_permalink( $group ) ?>"><?php echo $group->name ?></a>
    97                                         <span class="small"> - <?php echo $group->total_member_count . ' ' . __('members') ?></span>
     97                                        <span class="small"> - <?php echo $group->total_member_count . ' ' . __('members', 'buddypress') ?></span>
    9898                                </h4>
    9999                                <p class="desc"><?php echo bp_create_excerpt( $group->description, 20 ) ?></p>
    … …  
    104104        } else {
    105105                $result['message'] = '<img src="' . $bp['groups']['image_base'] . '/warning.gif" alt="Warning" /> &nbsp;' . $result['message'];
    106                 echo "-1[[SPLIT]]" . __("No groups matched your search.");
     106                echo "-1[[SPLIT]]" . __("No groups matched your search.", 'buddypress');
    107107        }
    108108}
    … …  
    151151                                <h4>
    152152                                        <a href="<?php bp_group_permalink( $group ) ?>"><?php echo $group->name ?></a>
    153                                         <span class="small"> - <?php echo $group->total_member_count . ' ' . __('members') ?></span>
     153                                        <span class="small"> - <?php echo $group->total_member_count . ' ' . __('members', 'buddypress') ?></span>
    154154                                </h4>
    155155                                <p class="desc"><?php echo bp_create_excerpt( $group->description, 20 ) ?></p>
    … …  
    160160        } else {
    161161                $result['message'] = '<img src="' . $bp['groups']['image_base'] . '/warning.gif" alt="Warning" /> &nbsp;' . $result['message'];
    162                 echo "-1[[SPLIT]]" . __("No groups matched your search.");
     162                echo "-1[[SPLIT]]" . __("No groups matched your search.", 'buddypress');
    163163        }
    164164}
    … …  
    205205                                                        <?php
    206206                                                        if ( $_POST['filter'] == 'newest-groups') {
    207                                                                 echo bp_core_get_last_activity( $group->date_created, __('created '), __(' ago') );
     207                                                                echo bp_core_get_last_activity( $group->date_created, __('created ', 'buddypress'), __(' ago', 'buddypress') );
    208208                                                        } else if ( $_POST['filter'] == 'recently-active-groups') {
    209                                                                 echo bp_core_get_last_activity( groups_get_groupmeta( $group->id, 'last_activity' ), __('active '), __(' ago') );
     209                                                                echo bp_core_get_last_activity( groups_get_groupmeta( $group->id, 'last_activity' ), __('active ', 'buddypress'), __(' ago', 'buddypress') );
    210210                                                        } else if ( $_POST['filter'] == 'popular-groups') {
    211211                                                                if ( $group->total_member_count == 1 )
    212                                                                         echo $group->total_member_count . __(' member');
     212                                                                        echo $group->total_member_count . __(' member', 'buddypress');
    213213                                                                else
    214                                                                         echo $group->total_member_count . __(' members');
     214                                                                        echo $group->total_member_count . __(' members', 'buddypress');
    215215                                                        }
    216216                                                        ?>
    … …  
    222222                }
    223223        } else {
    224                 echo "-1[[SPLIT]]<li>" . __("No groups matched the current filter.");
     224                echo "-1[[SPLIT]]<li>" . __("No groups matched the current filter.", 'buddypress');
    225225        }
    226226}
  • trunk/bp-groups/bp-groups-templatetags.php

    r375 r391  
    141141function bp_group_type() {
    142142        global $groups_template;
    143         echo ucwords($groups_template->group->status) . ' ' . __('Group');     
     143        echo ucwords($groups_template->group->status) . ' ' . __('Group', 'buddypress');       
    144144}
    145145
    … …  
    205205       
    206206        if ( $groups_template->group->is_public ) {
    207                 _e('Public');
     207                _e('Public', 'buddypress');
    208208        } else {
    209                 _e('Private');
     209                _e('Private', 'buddypress');
    210210        }
    211211}
    … …  
    219219       
    220220        if ( $groups_template->group->is_invitation_only ) {
    221                 _e('Invitation Only');
     221                _e('Invitation Only', 'buddypress');
    222222        } else {
    223                 _e('Open');
     223                _e('Open', 'buddypress');
    224224        }
    225225}
    … …  
    280280        if ( $bp['current_action'] == 'my-groups' || !$bp['current_action'] ) {
    281281                $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/my-groups/search/';
    282                 $label = __('Filter Groups');
     282                $label = __('Filter Groups', 'buddypress');
    283283                $type = 'group';
    284284        } else {
    285285                $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/group-finder/search/';
    286                 $label = __('Find a Group');
     286                $label = __('Find a Group', 'buddypress');
    287287                $type = 'groupfinder';
    288288                $value = $bp['action_variables'][1];
    … …  
    323323        global $bp, $create_group_step, $completed_to_step;
    324324?>
    325         <li<?php if ( $create_group_step == '1' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/1">1. <?php _e('Group Details') ?></a></li>
    326         <li<?php if ( $create_group_step == '2' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 0 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/2">2. <?php _e('Group Settings') ?></a><?php } else { ?><span>2. <?php _e('Group Settings') ?></span><?php } ?></li>
    327         <li<?php if ( $create_group_step == '3' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 1 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/3">3. <?php _e('Group Avatar') ?></a><?php } else { ?><span>3. <?php _e('Group Avatar') ?></span><?php } ?></li>
    328         <li<?php if ( $create_group_step == '4' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 2 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/4">4. <?php _e('Invite Members') ?></a><?php } else { ?><span>4. <?php _e('Invite Members') ?></span><?php } ?></li>
     325        <li<?php if ( $create_group_step == '1' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/1">1. <?php _e('Group Details', 'buddypress') ?></a></li>
     326        <li<?php if ( $create_group_step == '2' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 0 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/2">2. <?php _e('Group Settings', 'buddypress') ?></a><?php } else { ?><span>2. <?php _e('Group Settings', 'buddypress') ?></span><?php } ?></li>
     327        <li<?php if ( $create_group_step == '3' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 1 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/3">3. <?php _e('Group Avatar', 'buddypress') ?></a><?php } else { ?><span>3. <?php _e('Group Avatar', 'buddypress') ?></span><?php } ?></li>
     328        <li<?php if ( $create_group_step == '4' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 2 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/4">4. <?php _e('Invite Members', 'buddypress') ?></a><?php } else { ?><span>4. <?php _e('Invite Members', 'buddypress') ?></span><?php } ?></li>
    329329<?php
    330330}
    … …  
    335335        switch( $create_group_step ) {
    336336                case '1':
    337                         echo '<span>&mdash; ' . __('Group Details') . '</span>';
     337                        echo '<span>&mdash; ' . __('Group Details', 'buddypress') . '</span>';
    338338                break;
    339339               
    340340                case '2':
    341                         echo '<span>&mdash; ' . __('Group Settings') . '</span>';               
     341                        echo '<span>&mdash; ' . __('Group Settings', 'buddypress') . '</span>';         
    342342                break;
    343343               
    344344                case '3':
    345                         echo '<span>&mdash; ' . __('Group Avatar') . '</span>';
     345                        echo '<span>&mdash; ' . __('Group Avatar', 'buddypress') . '</span>';
    346346                break;
    347347               
    348348                case '4':
    349                         echo '<span>&mdash; ' . __('Invite Members') . '</span>';
     349                        echo '<span>&mdash; ' . __('Invite Members', 'buddypress') . '</span>';
    350350                break;
    351351        }
    … …  
    360360        <?php switch( $create_group_step ) {
    361361                case '1': ?>
    362                         <label for="group-name">* <?php _e('Group Name') ?></label>
     362                        <label for="group-name">* <?php _e('Group Name', 'buddypress') ?></label>
    363363                        <input type="text" name="group-name" id="group-name" value="<?php echo ( $group_obj ) ? $group_obj->name : $_POST['group-name']; ?>" />
    364364               
    365                         <label for="group-desc">* <?php _e('Group Description') ?></label>
     365                        <label for="group-desc">* <?php _e('Group Description', 'buddypress') ?></label>
    366366                        <textarea name="group-desc" id="group-desc"><?php echo ( $group_obj ) ? $group_obj->description : $_POST['group-desc']; ?></textarea>
    367367               
    368                         <label for="group-news">* <?php _e('Recent News') ?></label>
     368                        <label for="group-news">* <?php _e('Recent News', 'buddypress') ?></label>
    369369                        <textarea name="group-news" id="group-news"><?php echo ( $group_obj ) ? $group_obj->news : $_POST['group-news']; ?></textarea>
    370370                       
    371                         <input type="submit" value="<?php _e('Save and Continue') ?> &raquo;" id="save" name="save" />
     371                        <input type="submit" value="<?php _e('Save and Continue', 'buddypress') ?> &raquo;" id="save" name="save" />
    372372                <?php break; ?>
    373373               
    … …  
    375375                        <?php if ( $completed_to_step > 0 ) { ?>
    376376                                <div class="checkbox">
    377                                         <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php if ( $group_obj->enable_wire ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable comment wire') ?></label>
     377                                        <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php if ( $group_obj->enable_wire ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable comment wire', 'buddypress') ?></label>
    378378                                </div>
    379379                                <div class="checkbox">
    380                                         <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php if ( $group_obj->enable_forum ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable discussion forum') ?></label>
     380                                        <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php if ( $group_obj->enable_forum ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable discussion forum', 'buddypress') ?></label>
    381381                                </div>
    382382                                <div class="checkbox with-suboptions">
    383                                         <label><input type="checkbox" name="group-show-photos" id="group-show-photos" value="1"<?php if ( $group_obj->enable_photos ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable photo gallery') ?></label>
     383                                        <label><input type="checkbox" name="group-show-photos" id="group-show-photos" value="1"<?php if ( $group_obj->enable_photos ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable photo gallery', 'buddypress') ?></label>
    384384                                        <div class="sub-options"<?php if ( !$group_obj->enable_photos ) { ?> style="display: none;"<?php } ?>>
    385                                                 <label><input type="radio" name="group-photos-status" value="all"<?php if ( !$group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('All members can upload photos') ?></label>
    386                                                 <label><input type="radio" name="group-photos-status" value="admins"<?php if ( $group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('Only group admins can upload photos') ?></label>
     385                                                <label><input type="radio" name="group-photos-status" value="all"<?php if ( !$group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('All members can upload photos', 'buddypress') ?></label>
     386                                                <label><input type="radio" name="group-photos-status" value="admins"<?php if ( $group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('Only group admins can upload photos', 'buddypress') ?></label>
    387387                                        </div>
    388388                                </div>
    389389                       
    390                                 <h3><?php _e('Privacy Options'); ?></h3>
     390                                <h3><?php _e('Privacy Options', 'buddypress'); ?></h3>
    391391                       
    392392                                <div class="radio">
    393                                         <label><input type="radio" name="group-status" value="public"<?php if ( $group_obj->status == 'public' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is an open group') ?></strong><br /><?php _e('This group will be free to join and will appear in group search results.'); ?></label>
    394                                         <label><input type="radio" name="group-status" value="private"<?php if ( $group_obj->status == 'private' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a closed group') ?></strong><br /><?php _e('This group will require an invite to join but will still appear in group search results.'); ?></label>
    395                                         <label><input type="radio" name="group-status" value="hidden"<?php if ( $group_obj->status == 'hidden' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a hidden group') ?></strong><br /><?php _e('This group will require an invite to join and will only be visible to invited members. It will not appear in search results or on member profiles.'); ?></label>
    396                                 </div>
    397 
    398                                 <input type="submit" value="<?php _e('Save and Continue') ?> &raquo;" id="save" name="save" />
     393                                        <label><input type="radio" name="group-status" value="public"<?php if ( $group_obj->status == 'public' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is an open group', 'buddypress') ?></strong><br /><?php _e('This group will be free to join and will appear in group search results.', 'buddypress'); ?></label>
     394                                        <label><input type="radio" name="group-status" value="private"<?php if ( $group_obj->status == 'private' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a closed group', 'buddypress') ?></strong><br /><?php _e('This group will require an invite to join but will still appear in group search results.', 'buddypress'); ?></label>
     395                                        <label><input type="radio" name="group-status" value="hidden"<?php if ( $group_obj->status == 'hidden' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a hidden group', 'buddypress') ?></strong><br /><?php _e('This group will require an invite to join and will only be visible to invited members. It will not appear in search results or on member profiles.', 'buddypress'); ?></label>
     396                                </div>
     397
     398                                <input type="submit" value="<?php _e('Save and Continue', 'buddypress') ?> &raquo;" id="save" name="save" />
    399399                        <?php } else { ?>
    400400                                <div id="message" class="info">
    … …  
    415415                               
    416416                                <div class="main-column">
    417                                         <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.") ?></p>
     417                                        <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
    418418                                       
    419419                                        <?php
    … …  
    426426                                       
    427427                                        <div id="skip-continue">
    428                                                 <input type="submit" value="<?php _e('Skip') ?> &raquo;" id="skip" name="skip" />
     428                                                <input type="submit" value="<?php _e('Skip', 'buddypress') ?> &raquo;" id="skip" name="skip" />
    429429                                        </div>
    430430                                </div>
    … …  
    543543               
    544544                <div id="message" class="info">
    545                         <p><?php _e('Select people to invite from your friends list.'); ?></p>
     545                        <p><?php _e('Select people to invite from your friends list.', 'buddypress'); ?></p>
    546546                </div>
    547547                               
    … …  
    561561                </ul>
    562562
    563                 <input type="submit" value="<?php _e('Finish &amp; Send Invites') ?> &raquo;" id="save" name="save" />
     563                <input type="submit" value="<?php _e('Finish &amp; Send Invites', 'buddypress') ?> &raquo;" id="save" name="save" />
    564564
    565565        </div>
    … …  
    577577       
    578578        if ( is_user_logged_in() && !BP_Groups_Member::check_is_member( $bp['loggedin_userid'], $groups_template->group->id ) ) {
    579                 echo '<a class="join-group" href="' . bp_group_permalink( false, false ) . '/join">' . __('Join Group') . '</a>';
     579                echo '<a class="join-group" href="' . bp_group_permalink( false, false ) . '/join">' . __('Join Group', 'buddypress') . '</a>';
    580580        }
    581581}
    … …  
    587587?>     
    588588        <div class="info-group">
    589                 <h4><?php bp_my_or_name() ?> <?php _e('Groups') ?> (<?php echo BP_Groups_Member::total_group_count() ?>) <a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>"><?php _e('See All') ?> &raquo;</a></h4>
     589                <h4><?php bp_my_or_name() ?> <?php _e('Groups', 'buddypress') ?> (<?php echo BP_Groups_Member::total_group_count() ?>) <a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>"><?php _e('See All', 'buddypress') ?> &raquo;</a></h4>
    590590                <?php if ( $group_ids ) { ?>
    591591                        <ul class="horiz-gallery">
    … …  
    600600                <?php } else { ?>
    601601                        <div id="message" class="info">
    602                                 <p><?php bp_you_or_name() ?> <?php _e('joined any groups yet.') ?></p>
     602                                <p><?php bp_you_or_name() ?> <?php _e('joined any groups yet.', 'buddypress') ?></p>
    603603                        </div>
    604604                <?php } ?>
  • trunk/bp-groups/bp-groups-widgets.php

    r380 r391  
    99               
    1010                /* Site welcome widget */
    11                 register_sidebar_widget( __('Groups'), 'groups_widget_groups_list');
    12                 register_widget_control( __('Groups'), 'groups_widget_groups_list_control' );
     11                register_sidebar_widget( __('Groups', 'buddypress'), 'groups_widget_groups_list');
     12                register_widget_control( __('Groups', 'buddypress'), 'groups_widget_groups_list_control' );
    1313               
    1414                /* Include the javascript needed for activated widgets only */
    … …  
    3838                <div class="item-options" id="groups-list-options">
    3939                        <img id="ajax-loader-groups" src="<?php echo $bp['groups']['image_base'] ?>/ajax-loader.gif" height="7" alt="Loading" style="display: none;" /> &nbsp;
    40                         <a href="<?php echo site_url() . '/groups' ?>" id="newest-groups"><?php _e("Newest") ?></a> |
    41                         <a href="<?php echo site_url() . '/groups' ?>" id="recently-active-groups"><?php _e("Active") ?></a> |
    42                         <a href="<?php echo site_url() . '/groups' ?>" id="popular-groups" class="selected"><?php _e("Popular") ?></a>
     40                        <a href="<?php echo site_url() . '/groups' ?>" id="newest-groups"><?php _e("Newest", 'buddypress') ?></a> |
     41                        <a href="<?php echo site_url() . '/groups' ?>" id="recently-active-groups"><?php _e("Active", 'buddypress') ?></a> |
     42                        <a href="<?php echo site_url() . '/groups' ?>" id="popular-groups" class="selected"><?php _e("Popular", 'buddypress') ?></a>
    4343                </div>
    4444                <ul id="groups-list" class="item-list">
    … …  
    5656                                                        <?php
    5757                                                        if ( $group->total_member_count == 1 )
    58                                                                 echo $group->total_member_count . __(' member');
     58                                                                echo $group->total_member_count . __(' member', 'buddypress');
    5959                                                        else
    60                                                                 echo $group->total_member_count . __(' members');
     60                                                                echo $group->total_member_count . __(' members', 'buddypress');
    6161                                                        ?>
    6262                                                </span></div>
    … …  
    7676        <?php else: ?>
    7777                <div class="widget-error">
    78                         <?php _e('There are no groups to display.') ?>
     78                        <?php _e('There are no groups to display.', 'buddypress') ?>
    7979                </div>
    8080        <?php endif; ?>
    … …  
    100100        $max_groups = attribute_escape( $options['max_groups'] );
    101101?>
    102                 <p><label for="groups-widget-groups-list-max"><?php _e('Maximum number of groups to show:'); ?><br /> <input class="widefat" id="groups-widget-groups-list-max" name="groups-widget-groups-list-max" type="text" value="<?php echo $max_groups; ?>" style="width: 30%" /></label></p>
     102                <p><label for="groups-widget-groups-list-max"><?php _e('Maximum number of groups to show:', 'buddypress'); ?><br /> <input class="widefat" id="groups-widget-groups-list-max" name="groups-widget-groups-list-max" type="text" value="<?php echo $max_groups; ?>" style="width: 30%" /></label></p>
    103103                <input type="hidden" id="groups-widget-groups-list-submit" name="groups-widget-groups-list-submit" value="1" />
    104104<?php
  • trunk/bp-messages.php

    r385 r391  
    143143       
    144144        /* Add 'Profile' to the main navigation */
    145         bp_core_add_nav_item( __('Messages'), $bp['messages']['slug'], false, false );
     145        bp_core_add_nav_item( __('Messages', 'buddypress'), $bp['messages']['slug'], false, false );
    146146        bp_core_add_nav_default( $bp['messages']['slug'], 'messages_screen_inbox', 'inbox' );
    147147       
    … …  
    149149       
    150150        /* Add the subnav items to the profile */
    151         bp_core_add_subnav_item( $bp['messages']['slug'], 'inbox', __('Inbox') . $count_indicator, $messages_link, 'messages_screen_inbox' );
    152         bp_core_add_subnav_item( $bp['messages']['slug'], 'sentbox', __('Sent Messages'), $messages_link, 'messages_screen_sentbox' );
    153         bp_core_add_subnav_item( $bp['messages']['slug'], 'compose', __('Compose'), $messages_link, 'messages_screen_compose' );
    154         bp_core_add_subnav_item( $bp['messages']['slug'], 'notices', __('Notices'), $messages_link, 'messages_screen_notices', false, true, true );
     151        bp_core_add_subnav_item( $bp['messages']['slug'], 'inbox', __('Inbox', 'buddypress') . $count_indicator, $messages_link, 'messages_screen_inbox' );
     152        bp_core_add_subnav_item( $bp['messages']['slug'], 'sentbox', __('Sent Messages', 'buddypress'), $messages_link, 'messages_screen_sentbox' );
     153        bp_core_add_subnav_item( $bp['messages']['slug'], 'compose', __('Compose', 'buddypress'), $messages_link, 'messages_screen_compose' );
     154        bp_core_add_subnav_item( $bp['messages']['slug'], 'notices', __('Notices', 'buddypress'), $messages_link, 'messages_screen_notices', false, true, true );
    155155
    156156        if ( $bp['current_component'] == $bp['messages']['slug'] ) {
    157157                if ( bp_is_home() ) {
    158                         $bp['bp_options_title'] = __('My Messages');                   
     158                        $bp['bp_options_title'] = __('My Messages', 'buddypress');                     
    159159                } else {
    160160                        $bp_options_avatar = bp_core_get_avatar( $bp['current_userid'], 1 );
    … …  
    195195                if ( $bp['action_variables'][0] == 'deactivate' ) {
    196196                        if ( !$notice->deactivate() ) {
    197                                 $bp['message'] = __('There was a problem deactivating that notice.');   
     197                                $bp['message'] = __('There was a problem deactivating that notice.', 'buddypress');     
    198198                        } else {
    199                                 $bp['message'] = __('Notice deactivated.');
     199                                $bp['message'] = __('Notice deactivated.', 'buddypress');
    200200                                $bp['message_type'] = 'success';
    201201                        }
    202202                } else if ( $bp['action_variables'][0] == 'activate' ) {
    203203                        if ( !$notice->activate() ) {
    204                                 $bp['message'] = __('There was a problem activating that notice.');
     204                                $bp['message'] = __('There was a problem activating that notice.', 'buddypress');
    205205                        } else {
    206                                 $bp['message'] = __('Notice activated.');
     206                                $bp['message'] = __('Notice activated.', 'buddypress');
    207207                                $bp['message_type'] = 'success';
    208208                        }
    209209                } else if ( $bp['action_variables'][0] == 'delete' ) {
    210210                        if ( !$notice->delete() ) {
    211                                 $bp['message'] = __('There was a problem deleting that notice.');
     211                                $bp['message'] = __('There was a problem deleting that notice.', 'buddypress');
    212212                        } else {
    213                                 $bp['message'] = __('Notice deleted.');
     213                                $bp['message'] = __('Notice deleted.', 'buddypress');
    214214                                $bp['message_type'] = 'success';
    215215                        }
    … …  
    236236        } else {
    237237                $bp['bp_options_nav'][$bp['messages']['slug']]['view'] = array(
    238                         'name' => __('From: ' . BP_Messages_Thread::get_last_sender($thread_id)),
     238                        'name' => __('From: ' . BP_Messages_Thread::get_last_sender($thread_id), 'buddypress'),
    239239                        'link' => $bp['loggedin_domain'] . $bp['messages']['slug'] . '/'                       
    240240                );
    … …  
    260260                // delete message
    261261                if ( !BP_Messages_Thread::delete($thread_id) ) {
    262                         $bp['message'] = __('There was an error deleting that message.');
     262                        $bp['message'] = __('There was an error deleting that message.', 'buddypress');
    263263                        add_action( 'template_notices', 'bp_core_render_notice' );
    264264
    … …  
    266266                        bp_catch_uri( 'messages/index' );
    267267                } else {
    268                         $bp['message'] = __('Message deleted.');
     268                        $bp['message'] = __('Message deleted.', 'buddypress');
    269269                        $bp['message_type'] = 'success';
    270270                        add_action( 'template_notices', 'bp_core_render_notice' );
    … …  
    291291        } else {
    292292                if ( !BP_Messages_Thread::delete( explode(',', $thread_ids ) ) ) {
    293                         $message = __('There was an error deleting messages.');
     293                        $message = __('There was an error deleting messages.', 'buddypress');
    294294                        add_action( 'template_notices', 'bp_core_render_notice' );
    295295
    … …  
    297297                        bp_catch_uri( 'messages/index' );
    298298                } else {
    299                         $bp['message'] = __('Messages deleted.');
     299                        $bp['message'] = __('Messages deleted.', 'buddypress');
    300300                        $bp['message_type'] = 'success';
    301301                        add_action( 'template_notices', 'bp_core_render_notice' );
    … …  
    355355       
    356356        <div class="wrap">
    357                 <h2><?php _e('Compose Message') ?></h2>
     357                <h2><?php _e('Compose Message', 'buddypress') ?></h2>
    358358               
    359359                <?php
    … …  
    370370                        <p>                     
    371371                        <div id="titlediv">
    372                                 <h3><?php _e("Send To") ?> <small>(Use username - autocomplete coming soon)</small></h3>
     372                                <h3><?php _e("Send To", 'buddypress') ?> <small>(Use username - autocomplete coming soon)</small></h3>
    373373                                <div id="titlewrap">
    374374                                        <input type="text" name="send_to" id="send_to" value="<?php echo $username; ?>" />
    … …  
    380380                        <p>
    381381                        <div id="titlediv">
    382                                 <h3><?php _e("Subject") ?></h3>
     382                                <h3><?php _e("Subject", 'buddypress') ?></h3>
    383383                                <div id="titlewrap">
    384384                                        <input type="text" name="subject" id="subject" value="<?php echo $subject; ?>" />
    … …  
    389389                        <p>
    390390                                <div id="postdivrich" class="postarea">
    391                                         <h3><?php _e("Message") ?></h3>
     391                                        <h3><?php _e("Message", 'buddypress') ?></h3>
    392392                                        <div id="editorcontainer">
    393393                                                <textarea name="content" id="message_content" rows="15" cols="40"><?php echo $content; ?></textarea>
    … …  
    397397                       
    398398                        <p class="submit">
    399                                         <input type="submit" value="<?php _e("Send") ?> &raquo;" name="send" id="send" style="font-weight: bold" />
     399                                        <input type="submit" value="<?php _e("Send", 'buddypress') ?> &raquo;" name="send" id="send" style="font-weight: bold" />
    400400                        </p>
    401401                </div>
    … …  
    410410
    411411function messages_inbox() {
    412         messages_box( 'inbox', __('Inbox') );
     412        messages_box( 'inbox', __('Inbox', 'buddypress') );
    413413}
    414414
    415415function messages_sentbox() {
    416         messages_box( 'sentbox', __('Sent Messages') );
     416        messages_box( 'sentbox', __('Sent Messages', 'buddypress') );
    417417}
    418418
    … …  
    520520                                <tr class="alternate">
    521521                                <td colspan="7" style="text-align: center; padding: 15px 0;">
    522                                         <?php _e('You have no messages in your'); echo ' ' . $display_name . '.'; ?>
     522                                        <?php _e('You have no messages in your', 'buddypress'); echo ' ' . $display_name . '.'; ?>
    523523                                </td>
    524524                                </tr>
    … …  
    552552                if ( $recipients == '' ) {
    553553                        if ( !$from_ajax ) {
    554                                 messages_write_new( '', $subject, $content, 'error', __('Please enter at least one valid user to send this message to.'), $messages_write_new_action );
     554                                messages_write_new( '', $subject, $content, 'error', __('Please enter at least one valid user to send this message to.', 'buddypress'), $messages_write_new_action );
    555555                        } else {
    556                                 return array('status' => 0, 'message' => __('There was an error sending the reply, please try again.'));
     556                                return array('status' => 0, 'message' => __('There was an error sending the reply, please try again.', 'buddypress'));
    557557                        }
    558558                } else if ( $subject == '' || $content == '' ) {
    559559                        if ( !$from_ajax ) {
    560                                 messages_write_new( $to_user, $subject, $content, 'error', __('Please make sure you fill in all the fields.'), $messages_write_new_action );
     560                                messages_write_new( $to_user, $subject, $content, 'error', __('Please make sure you fill in all the fields.', 'buddypress'), $messages_write_new_action );
    561561                        } else {
    562                                 return array('status' => 0, 'message' => __('Please make sure you have typed a message before sending a reply.'));
     562                                return array('status' => 0, 'message' => __('Please make sure you have typed a message before sending a reply.', 'buddypress'));
    563563                        }
    564564                } else {
    … …  
    584584                        if ( !is_null( $pmessage->recipients ) ) {
    585585                                if ( !$pmessage->send() ) {
    586                                         $message = __('Message could not be sent, please try again.');
     586                                        $message = __('Message could not be sent, please try again.', 'buddypress');
    587587                                        $type = 'error';
    588588                       
    … …  
    597597                                                messages_write_new();
    598598                                        } else {
    599                                                 messages_box( 'inbox', __('Inbox'), $message, $type ); 
     599                                                messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type );   
    600600                                        }
    601601                                } else {
    602                                         $message = __('Message sent successfully!') . ' <a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/view/' . $pmessage->thread_id . '">' . __('View Message') . '</a> &raquo;';
     602                                        $message = __('Message sent successfully!', 'buddypress') . ' <a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/view/' . $pmessage->thread_id . '">' . __('View Message', 'buddypress') . '</a> &raquo;';
    603603                                        $type = 'success';
    604604                                       
    … …  
    615615                                                messages_write_new();
    616616                                        } else {
    617                                                 messages_box( 'inbox', __('Inbox'), $message, $type );
     617                                                messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type );
    618618                                        }
    619619                                }
    … …  
    622622                                unset($_POST['send-notice']);
    623623                       
    624                                 $message = __('Message could not be sent, please try again.');
     624                                $message = __('Message could not be sent, please try again.', 'buddypress');
    625625                                $type = 'error';
    626626                       
    … …  
    634634                                        messages_write_new();
    635635                                } else {
    636                                         messages_box( 'inbox', __('Inbox'), $message, $type ); 
     636                                        messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type );   
    637637                                }
    638638                        }
    … …  
    652652                unset($_POST['send-notice']);
    653653               
    654                 $message = __('Notice could not be sent, please try again.');
     654                $message = __('Notice could not be sent, please try again.', 'buddypress');
    655655                $type = 'error';
    656656       
    … …  
    659659                        messages_write_new();
    660660                } else {
    661                         messages_box( 'inbox', __('Inbox'), $message, $type ); 
     661                        messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type );   
    662662                }
    663663        } else {
    … …  
    683683       
    684684        if ( is_array($thread_ids) ) {
    685                 $message = __('Messages deleted successfully!');
     685                $message = __('Messages deleted successfully!', 'buddypress');
    686686               
    687687                for ( $i = 0; $i < count($thread_ids); $i++ ) {
    688688                        if ( !$status = BP_Messages_Thread::delete($thread_ids[$i]) ) {
    689                                 $message = __('There was an error when deleting messages. Please try again.');
     689                                $message = __('There was an error when deleting messages. Please try again.', 'buddypress');
    690690                                $type = 'error';
    691691                        }
    692692                }
    693693        } else {
    694                 $message = __('Message deleted successfully!');
     694                $message = __('Message deleted successfully!', 'buddypress');
    695695               
    696696                if ( !$status = BP_Messages_Thread::delete($thread_ids) ) {
    697                         $message = __('There was an error when deleting that message. Please try again.');
     697                        $message = __('There was an error when deleting that message. Please try again.', 'buddypress');
    698698                        $type = 'error';
    699699                }
    … …  
    721721        if ( !$thread->has_access ) {
    722722                unset($_GET['mode']);
    723                 messages_inbox( __('There was an error viewing this message, please try again.'), 'error' );
     723                messages_inbox( __('There was an error viewing this message, please try again.', 'buddypress'), 'error' );
    724724        } else {
    725725                if ( $thread->messages ) { ?>
    … …  
    733733                                                        <td>
    734734                                                                <img src="<?php echo $bp['messages']['image_base'] ?>/email_open.gif" alt="Message" style="vertical-align: top;" /> &nbsp;
    735                                                                 <?php _e('Sent between ') ?> <?php echo BP_Messages_Thread::get_recipient_links($thread->recipients) ?>
    736                                                                 <?php _e('and') ?> <?php echo bp_core_get_userlink($userdata->ID) ?>.
     735                                                                <?php _e('Sent between ', 'buddypress') ?> <?php echo BP_Messages_Thread::get_recipient_links($thread->recipients) ?>
     736                                                                <?php _e('and', 'buddypress') ?> <?php echo bp_core_get_userlink($userdata->ID) ?>.
    737737                                                        </td>
    738738                                                </tr>
    … …  
    768768                                                                        ?>
    769769                                       
    770                                                                         <h3><?php _e("Reply: ") ?></h3>
     770                                                                        <h3><?php _e("Reply: ", 'buddypress') ?></h3>
    771771                                                                </div>
    772772                                                                <label for="reply"></label>
    … …  
    779779                                                        </p>
    780780                                                        <input type="hidden" id="thread_id" name="thread_id" value="<?php echo $thread->thread_id ?>" />
    781                                                         <input type="hidden" name="subject" id="subject" value="<?php _e('Re: '); echo str_replace( 'Re: ', '', $thread->last_message_subject); ?>" />
     781                                                        <input type="hidden" name="subject" id="subject" value="<?php _e('Re: ', 'buddypress'); echo str_replace( 'Re: ', '', $thread->last_message_subject); ?>" />
    782782                                        </div>
    783783                                        <?php if ( function_exists('wp_nonce_field') )
  • trunk/bp-messages/bp-messages-ajax.php

    r304 r391  
    4141       
    4242        if ( !isset($_POST['thread_ids']) ) {
    43                 echo "-1|" . __('There was a problem marking messages as unread.');
     43                echo "-1|" . __('There was a problem marking messages as unread.', 'buddypress');
    4444        } else {
    4545                $thread_ids = explode( ',', $_POST['thread_ids'] );
    … …  
    6161       
    6262        if ( !isset($_POST['thread_ids']) ) {
    63                 echo "-1|" . __('There was a problem marking messages as read.');
     63                echo "-1|" . __('There was a problem marking messages as read.', 'buddypress');
    6464        } else {
    6565                $thread_ids = explode( ',', $_POST['thread_ids'] );
    … …  
    8181       
    8282        if ( !isset($_POST['thread_ids']) ) {
    83                 echo "-1|" . __('There was a problem deleting messages.');
     83                echo "-1|" . __('There was a problem deleting messages.', 'buddypress');
    8484        } else {
    8585                $thread_ids = explode( ',', $_POST['thread_ids'] );
    … …  
    8989                }
    9090               
    91                 echo __('Messages deleted.');
     91                echo __('Messages deleted.', 'buddypress');
    9292        }
    9393}
    … …  
    9898
    9999        if ( !isset($_POST['notice_id']) ) {
    100                 echo "-1|" . __('There was a problem closing the notice.');
     100                echo "-1|" . __('There was a problem closing the notice.', 'buddypress');
    101101        } else {
    102102                $notice_ids = get_usermeta( $userdata->ID, 'closed_notices' );
  • trunk/bp-messages/bp-messages-classes.php

    r251 r391  
    264264        function get_recipient_links($recipients) {
    265265                if ( count($recipients) >= 5 )
    266                         return count($recipients) . __(' Recipients');
     266                        return count($recipients) . __(' Recipients', 'buddypress');
    267267                       
    268268                for ( $i = 0; $i < count($recipients); $i++ ) {
  • trunk/bp-messages/bp-messages-templatetags.php

    r359 r391  
    216216                <select name="message-type-select" id="message-type-select">
    217217                        <option value=""></option>
    218                         <option value="read"><?php _e('Read') ?></option>
    219                         <option value="unread"><?php _e('Unread') ?></option>
    220                         <option value="all"><?php _e('All') ?></option>
     218                        <option value="read"><?php _e('Read', 'buddypress') ?></option>
     219                        <option value="unread"><?php _e('Unread', 'buddypress') ?></option>
     220                        <option value="all"><?php _e('All', 'buddypress') ?></option>
    221221                </select> &nbsp;
    222                 <a href="#" id="mark_as_read"><?php _e('Mark as Read') ?></a> &nbsp;
    223                 <a href="#" id="mark_as_unread"><?php _e('Mark as Unread') ?></a> &nbsp;
    224                 <a href="#" id="delete_messages"><?php _e('Delete') ?></a> &nbsp;
     222                <a href="#" id="mark_as_read"><?php _e('Mark as Read', 'buddypress') ?></a> &nbsp;
     223                <a href="#" id="mark_as_unread"><?php _e('Mark as Unread', 'buddypress') ?></a> &nbsp;
     224                <a href="#" id="delete_messages"><?php _e('Delete', 'buddypress') ?></a> &nbsp;
    225225<?php   
    226226}
    … …  
    231231        if ( $messages_template->thread->is_active ) {
    232232                echo "<strong>";
    233                 _e('Currently Active');
     233                _e('Currently Active', 'buddypress');
    234234                echo "</strong>";
    235235        }
    … …  
    272272       
    273273        if ( $messages_template->thread->is_active == "1" ) {
    274                 $text = __('Deactivate');
     274                $text = __('Deactivate', 'buddypress');
    275275        } else {
    276                 $text = __('Activate');         
     276                $text = __('Activate', 'buddypress');           
    277277        }
    278278        echo $text;
  • trunk/bp-wire.php

    r373 r391  
    5959
    6060        /* Add 'Wire' to the main navigation */
    61         bp_core_add_nav_item( __('Wire'), $bp['wire']['slug'] );
     61        bp_core_add_nav_item( __('Wire', 'buddypress'), $bp['wire']['slug'] );
    6262        bp_core_add_nav_default( $bp['wire']['slug'], 'bp_wire_screen_latest', 'all-posts' );
    6363
    6464        /* Add the subnav items to the wire nav */
    65         bp_core_add_subnav_item( $bp['wire']['slug'], 'all-posts', __('All Posts'), $bp['loggedin_domain'] . $bp['wire']['slug'] . '/', 'bp_wire_screen_latest' );
     65        bp_core_add_subnav_item( $bp['wire']['slug'], 'all-posts', __('All Posts', 'buddypress'), $bp['loggedin_domain'] . $bp['wire']['slug'] . '/', 'bp_wire_screen_latest' );
    6666       
    6767        if ( $bp['current_component'] == $bp['wire']['slug'] ) {
    6868                if ( bp_is_home() ) {
    69                         $bp['bp_options_title'] = __('My Wire');
     69                        $bp['bp_options_title'] = __('My Wire', 'buddypress');
    7070                } else {
    7171                        $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 );
    … …  
    9191       
    9292        if ( $wire_post_id = bp_wire_new_post( $bp['current_userid'], $_POST['wire-post-textarea'], $bp['profile']['table_name_wire'] ) ) {
    93                 $bp['message'] = __('Wire message successfully posted.');
     93                $bp['message'] = __('Wire message successfully posted.', 'buddypress');
    9494                $bp['message_type'] = 'success';
    9595
    … …  
    115115       
    116116        if ( bp_wire_delete_post( $bp['action_variables'][0], $bp['profile']['table_name_wire'] ) ) {
    117                 $bp['message'] = __('Wire message successfully deleted.');
     117                $bp['message'] = __('Wire message successfully deleted.', 'buddypress');
    118118                $bp['message_type'] = 'success';
    119119               
  • trunk/bp-wire/bp-wire-templatetags.php

    r367 r391  
    122122       
    123123        if ( !$message )
    124                 $empty_message = __("There are currently no wire posts.");
     124                $empty_message = __("There are currently no wire posts.", 'buddypress');
    125125       
    126126        if ( !$title )
    127                 $title = __('Wire');
     127                $title = __('Wire', 'buddypress');
    128128       
    129129        /* Pass them as globals, using the same name doesn't work. */
    … …  
    228228        global $bp;
    229229       
    230         echo '<a href="' . $bp['loggedin_domain'] . $bp['profile']['slug'] . '">' . __('You') . '</a>';
     230        echo '<a href="' . $bp['loggedin_domain'] . $bp['profile']['slug'] . '">' . __('You', 'buddypress') . '</a>';
    231231}
    232232
    … …  
    248248        if ( ( $wire_posts_template->wire_post->user_id == $bp['loggedin_userid'] ) || $bp['is_item_admin'] ) {
    249249                if ( $bp['current_component'] == 'wire' || $bp['current_component'] == 'profile' ) {
    250                         echo '<a href="' . $bp['current_domain'] . $bp['wire']['slug'] . '/delete/' . $wire_posts_template->wire_post->id . '">[' . __('Delete') . ']</a>';
     250                        echo '<a href="' . $bp['current_domain'] . $bp['wire']['slug'] . '/delete/' . $wire_posts_template->wire_post->id . '">[' . __('Delete', 'buddypress') . ']</a>';
    251251                } else {
    252                         echo '<a href="' . $bp['current_domain'] . $bp[$bp['current_component']]['slug'] . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id . '">[' . __('Delete') . ']</a>';
     252                        echo '<a href="' . $bp['current_domain'] . $bp[$bp['current_component']]['slug'] . '/' . $uri . '/wire/delete/' . $wire_posts_template->wire_post->id . '">[' . __('Delete', 'buddypress') . ']</a>';
    253253                }
    254254        }
  • trunk/bp-xprofile.php

    r375 r391  
    7070                                id, group_id, parent_id, type, name, description, is_required, field_order, option_order, order_by, is_public, can_delete
    7171                          ) VALUES (
    72                                 1, 1, 0, 'textbox', 'First Name', '', 1, 1, 0, '', 1, 0
     72                                1, 1, 0, 'textbox', '" . __( 'First Name', 'buddypress') . "', '', 1, 1, 0, '', 1, 0
    7373                          );";
    7474                       
    … …  
    7676                                id, group_id, parent_id, type, name, description, is_required, field_order, option_order, order_by, is_public, can_delete
    7777                          ) VALUES (
    78                                 2, 1, 0, 'textbox', 'Last Name', '', 1, 2, 0, '', 1, 0
     78                                2, 1, 0, 'textbox', '" . __( 'Last Name', 'buddypress') . "', '', 1, 2, 0, '', 1, 0
    7979                          );";
    8080       
    … …  
    138138       
    139139        if ( $wpdb->blogid == $bp['current_homebase_id'] ) {
    140                 add_menu_page( __('Profile'), __('Profile'), 1, basename(__FILE__), 'bp_core_avatar_admin' );
    141                 add_submenu_page( basename(__FILE__), __('Profile &rsaquo; Avatar'), __('Avatar'), 1, basename(__FILE__), 'xprofile_avatar_admin' );           
     140                add_menu_page( __('Profile', 'buddypress'), __('Profile', 'buddypress'), 1, basename(__FILE__), 'bp_core_avatar_admin' );
     141                add_submenu_page( basename(__FILE__), __('Profile &rsaquo; Avatar', 'buddypress'), __('Avatar', 'buddypress'), 1, basename(__FILE__), 'xprofile_avatar_admin' );               
    142142               
    143143                $groups = BP_XProfile_Group::get_all();
    … …  
    145145                for ( $i=0; $i < count($groups); $i++ ) {
    146146                        if ( $groups[$i]->fields ) {
    147                                 add_submenu_page( basename(__FILE__), __('Profile') . '  &rsaquo; ' . $groups[$i]->name, $groups[$i]->name, 1, "xprofile_" . $groups[$i]->name, "xprofile_edit" );             
     147                                add_submenu_page( basename(__FILE__), __('Profile', 'buddypress') . '  &rsaquo; ' . $groups[$i]->name, $groups[$i]->name, 1, "xprofile_" . $groups[$i]->name, "xprofile_edit" );               
    148148                        }
    149149                }
    … …  
    154154       
    155155                /* Add the administration tab under the "Site Admin" tab for site administrators */
    156                 add_submenu_page( 'wpmu-admin.php', __("Profiles"), __("Profiles"), 1, "xprofile_settings", "xprofile_admin" );
     156                add_submenu_page( 'wpmu-admin.php', __("Profiles", 'buddypress'), __("Profiles", 'buddypress'), 1, "xprofile_settings", "xprofile_admin" );
    157157        }
    158158
    … …  
    175175       
    176176        /* Add 'Profile' to the main navigation */
    177         bp_core_add_nav_item( __('Profile'), $bp['profile']['slug'] );
     177        bp_core_add_nav_item( __('Profile', 'buddypress'), $bp['profile']['slug'] );
    178178        bp_core_add_nav_default( $bp['profile']['slug'], 'xprofile_screen_display_profile', 'public' );
    179179       
    … …  
    181181       
    182182        /* Add the subnav items to the profile */
    183         bp_core_add_subnav_item( $bp['profile']['slug'], 'public', __('Public'), $profile_link, 'xprofile_screen_display_profile' );
    184         bp_core_add_subnav_item( $bp['profile']['slug'], 'edit', __('Edit Profile'), $profile_link, 'xprofile_screen_edit_profile' );
    185         bp_core_add_subnav_item( $bp['profile']['slug'], 'change-avatar', __('Change Avatar'), $profile_link, 'xprofile_screen_change_avatar' );
     183        bp_core_add_subnav_item( $bp['profile']['slug'], 'public', __('Public', 'buddypress'), $profile_link, 'xprofile_screen_display_profile' );
     184        bp_core_add_subnav_item( $bp['profile']['slug'], 'edit', __('Edit Profile', 'buddypress'), $profile_link, 'xprofile_screen_edit_profile' );
     185        bp_core_add_subnav_item( $bp['profile']['slug'], 'change-avatar', __('Change Avatar', 'buddypress'), $profile_link, 'xprofile_screen_change_avatar' );
    186186
    187187        if ( $bp['current_component'] == $bp['profile']['slug'] ) {
    188188                if ( bp_is_home() ) {
    189                         $bp['bp_options_title'] = __('My Profile');
     189                        $bp['bp_options_title'] = __('My Profile', 'buddypress');
    190190                } else {
    191191                        $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 );
    … …  
    263263
    264264                        if ( ( $wire_post->item_id == $bp['loggedin_userid'] && $wire_post->user_id == $bp['loggedin_userid'] ) || ( $wire_post->item_id == $bp['current_userid'] && $wire_post->user_id == $bp['current_userid'] ) ) {
    265                                 $content = bp_core_get_userlink($wire_post->user_id) . ' ' . __('wrote on their own wire') . ': <span class="time-since">%s</span>';                           
     265                                $content = bp_core_get_userlink($wire_post->user_id) . ' ' . __('wrote on their own wire', 'buddypress') . ': <span class="time-since">%s</span>';                             
    266266                        } else if ( ( $wire_post->item_id != $bp['loggedin_userid'] && $wire_post->user_id == $bp['loggedin_userid'] ) || ( $wire_post->item_id != $bp['current_userid'] && $wire_post->user_id == $bp['current_userid'] ) ) {
    267                                 $content = bp_core_get_userlink($wire_post->user_id) . ' ' . __('wrote on ') . bp_core_get_userlink( $wire_post->item_id, false, false, true, true ) . ' wire: <span class="time-since">%s</span>';                             
     267                                $content = bp_core_get_userlink($wire_post->user_id) . ' ' . __('wrote on ', 'buddypress') . bp_core_get_userlink( $wire_post->item_id, false, false, true, true ) . ' wire: <span class="time-since">%s</span>';                               
    268268                        }
    269269                       
    … …  
    277277                                return false;
    278278                               
    279                         return bp_core_get_userlink($bp['current_userid']) . ' ' . __('updated the') . ' "<a href="' . $bp['current_domain'] . $bp['profile']['slug'] . '">' . $profile_group->name . '</a>" ' . __('information on') . ' ' . bp_your_or_their() . ' ' . __('profile') . '. <span class="time-since">%s</span>';
     279                        return bp_core_get_userlink($bp['current_userid']) . ' ' . __('updated the', 'buddypress') . ' "<a href="' . $bp['current_domain'] . $bp['profile']['slug'] . '">' . $profile_group->name . '</a>" ' . __('information on', 'buddypress') . ' ' . bp_your_or_their() . ' ' . __('profile', 'buddypress') . '. <span class="time-since">%s</span>';
    280280                break;
    281281        }
    … …  
    309309        <div class="wrap">
    310310               
    311                 <h2><?php echo $group->name ?> <?php _e("Information") ?></h2>
     311                <h2><?php echo $group->name ?> <?php _e("Information", 'buddypress') ?></h2>
    312312               
    313313                <?php
    … …  
    329329                                                       
    330330                                                        // Validate the field.
    331                                                         $field->message = sprintf( __('%s cannot be left blank.'), $field->name );
     331                                                        $field->message = sprintf( __('%s cannot be left blank.', 'buddypress'), $field->name );
    332332                                                        $errors[] = $field->message . "<br />";
    333333                                                } else if ( !$field->is_required && ( $current_field == '' || is_null($current_field) ) ) {
    … …  
    357357
    358358                                                        if( !$profile_data->save() ) {
    359                                                                 $field->message = __('There was a problem saving changes to this field, please try again.');
     359                                                                $field->message = __('There was a problem saving changes to this field, please try again.', 'buddypress');
    360360                                                        } else {
    361361                                                                $field->data->value = $profile_data->value;
    … …  
    370370                               
    371371                                $list_html .= '<p class="submit">
    372                                                                 <input type="submit" name="save" id="save" value="'.__('Save Changes &raquo;').'" />
     372                                                                <input type="submit" name="save" id="save" value="'.__('Save Changes &raquo;', 'buddypress').'" />
    373373                                                           </p>';
    374374
    375375                                if ( $errors && isset($_POST['save']) ) {
    376376                                        $type = 'error';
    377                                         $message = __('There were problems saving your information. Please fix the following:<br />');
     377                                        $message = __('There were problems saving your information. Please fix the following:<br />', 'buddypress');
    378378                                       
    379379                                        for ( $i = 0; $i < count($errors); $i++ ) {
    … …  
    382382                                } else if ( !$errors && isset($_POST['save'] ) ) {
    383383                                        $type = 'success';
    384                                         $message = __('Changes saved.');
     384                                        $message = __('Changes saved.', 'buddypress');
    385385                                       
    386386                                        do_action( 'bp_xprofile_updated_profile', array( 'item_id' => $group->id, 'component_name' => 'profile', 'component_action' => 'updated_profile', 'is_private' => 0 ) );
    … …  
    390390                        else { ?>
    391391                                <div id="message" class="error fade">
    392                                         <p><?php _e('That group does not exist.'); ?></p>
     392                                        <p><?php _e('That group does not exist.', 'buddypress'); ?></p>
    393393                                </div>
    394394                        <?php
    … …  
    431431?>
    432432        <div class="wrap">
    433                 <h2><?php _e('Profile Settings'); ?></h2>
     433                <h2><?php _e('Profile Settings', 'buddypress'); ?></h2>
    434434                <p>Member profile settings will appear here.</p>
    435435        </div>
  • trunk/bp-xprofile/bp-xprofile-admin.php

    r166 r391  
    3232        <div class="wrap">
    3333               
    34                 <h2><?php _e("Profile Settings") ?></h2>
     34                <h2><?php _e("Profile Settings", 'buddypress') ?></h2>
    3535                <br />
    3636                <p><?php _e('Your users will distinguish themselves through their profile page.
    3737                   You must give them profile fields that allow them to describe themselves
    38                         in a way that is relevant to the theme of your social network.') ?></p>
    39                        
    40                 <p><?php _e('NOTE: Fields in the \'Basic\' group appear on the signup page.'); ?></p>
     38                        in a way that is relevant to the theme of your social network.', 'buddypress') ?></p>
     39                       
     40                <p><?php _e('NOTE: Fields in the \'Basic\' group appear on the signup page.', 'buddypress'); ?></p>
    4141               
    4242                <?php
    … …  
    147147                       
    148148                        if ( !$group->save() ) {
    149                                 $message = __('There was an error saving the group. Please try again');
     149                                $message = __('There was an error saving the group. Please try again', 'buddypress');
    150150                                $type = 'error';
    151151                        } else {
    152                                 $message = __('The group was saved successfully.');
     152                                $message = __('The group was saved successfully.', 'buddypress');
    153153                                $type = 'success';
    154154                        }
    … …  
    177177       
    178178        if ( !$group->delete() ) {
    179                 $message = __('There was an error deleting the group. Please try again');
     179                $message = __('There was an error deleting the group. Please try again', 'buddypress');
    180180                $type = 'error';
    181181        } else {
    182                 $message = __('The group was deleted successfully.');
     182                $message = __('The group was deleted successfully.', 'buddypress');
    183183                $type = 'success';
    184184        }
    … …  
    211211                       
    212212                        if ( !$field->save() ) {
    213                                 $message = __('There was an error saving the field. Please try again');
     213                                $message = __('There was an error saving the field. Please try again', 'buddypress');
    214214                                $type = 'error';
    215215                               
    … …  
    217217                                xprofile_admin($message, $type);
    218218                        } else {
    219                                 $message = __('The field was saved successfully.');
     219                                $message = __('The field was saved successfully.', 'buddypress');
    220220                                $type = 'success';
    221221                               
    … …  
    243243       
    244244        if ( $type == 'field' ) {
    245                 $type = __('field');
    246         } else {
    247                 $type = __('option');
     245                $type = __('field', 'buddypress');
     246        } else {
     247                $type = __('option', 'buddypress');
    248248        }
    249249       
    … …  
    251251
    252252        if ( !$field->delete() ) {
    253                 $message = sprintf( __('There was an error deleting the %s. Please try again'), $type);
     253                $message = sprintf( __('There was an error deleting the %s. Please try again', 'buddypress'), $type);
    254254                $type = 'error';
    255255        } else {
    256                 $message = sprintf( __('The %s was deleted successfully!'), $type);
     256                $message = sprintf( __('The %s was deleted successfully!', 'buddypress'), $type);
    257257                $type = 'success';
    258258        }
  • trunk/bp-xprofile/bp-xprofile-classes.php

    r375 r391  
    9797
    9898                if ( $this->id == null ) {
    99                         $title = __('Add Group');
     99                        $title = __('Add Group', 'buddypress');
    100100                        $action = "admin.php?page=xprofile_settings&amp;mode=add_group";
    101101                } else {
    102                         $title = __('Edit Group');
     102                        $title = __('Edit Group', 'buddypress');
    103103                        $action = "admin.php?page=xprofile_settings&amp;mode=edit_group&amp;group_id=" . $this->id;                     
    104104                }
    … …  
    121121                               
    122122                                <div id="titlediv">
    123                                         <label for="group_name"><?php _e("Group Name") ?></label>
     123                                        <label for="group_name"><?php _e("Group Name", 'buddypress') ?></label>
    124124                                        <div>
    125125                                                <input type="text" name="group_name" id="group_name" value="<?php echo $this->name ?>" style="width:50%" />
    … …  
    164164                // Validate Form
    165165                if ( $_POST['group_name'] == '' ) {
    166                         $message = __('Please make sure you give the group a name.');
     166                        $message = __('Please make sure you give the group a name.', 'buddypress');
    167167                        return false;
    168168                } else {
    … …  
    621621                ?>
    622622                        <div id="<?php echo $type ?>" class="options-box" style="<?php if ( $this->type != $type ) { ?>display: none;<?php } ?> margin-left: 15px;">
    623                                 <h4><?php _e('Please enter options for this Field:') ?></h4>
     623                                <h4><?php _e('Please enter options for this Field:', 'buddypress') ?></h4>
    624624                                <p>Order By:
    625625                                       
    … …  
    640640                                                        $default_name = '[' . $j . ']';
    641641                                        ?>
    642                                                 <p><?php _e('Option') ?> <?php echo $j ?>:
     642                                                <p><?php _e('Option', 'buddypress') ?> <?php echo $j ?>:
    643643                                                   <input type="text" name="<?php echo $type ?>_option[<?php echo $j ?>]" id="<?php echo $type ?>_option<?php echo $j ?>" value="<?php echo $options[$i]->name ?>" />
    644644                                                   <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?> " /> Default Value
    … …  
    654654                                ?>
    655655                                       
    656                                         <p><?php _e('Option') ?> 1: <input type="text" name="<?php echo $type ?>_option[1]" id="<?php echo $type ?>_option1" />
     656                                        <p><?php _e('Option', 'buddypress') ?> 1: <input type="text" name="<?php echo $type ?>_option[1]" id="<?php echo $type ?>_option1" />
    657657                                        <input type="<?php echo $default_input ?>" name="isDefault_<?php echo $type ?>_option<?php echo $default_name; ?>" id="isDefault_<?php echo $type ?>_option" <?php if ( $options[$i]->sort_order == 'CHECKED' ) {?> checked="checked"<?php } ?>" value="1" /> Default Value
    658658                                        <input type="hidden" name="<?php echo $type ?>_option_number" id="<?php echo $type ?>_option_number" value="2" />
    … …  
    660660                                <?php } // end if ?>
    661661                                <div id="<?php echo $type ?>_more"></div>                                       
    662                                 <p><a href="javascript:add_option('<?php echo $type ?>')"><?php _e('Add Another Option') ?></a></p>
     662                                <p><a href="javascript:add_option('<?php echo $type ?>')"><?php _e('Add Another Option', 'buddypress') ?></a></p>
    663663                        </div>
    664664
    … …  
    668668        function render_admin_form( $message = '' ) {
    669669                if ( $this->id == null ) {
    670                         $title = __('Add Field');
     670                        $title = __('Add Field', 'buddypress');
    671671                        $action = "admin.php?page=xprofile_settings&amp;group_id=" . $this->group_id . "&amp;mode=add_field";
    672672                } else {
    673                         $title = __('Edit Field');
     673                        $title = __('Edit Field', 'buddypress');
    674674                        $action = "admin.php?page=xprofile_settings&amp;mode=edit_field&amp;group_id=" . $this->group_id . "&amp;field_id=" . $this->id;                       
    675675                        $options = $this->get_children();
    … …  
    695695                        <div id="poststuff">           
    696696                                <div id="titlediv">
    697                                         <h3><label for="title"><?php _e("Field Title") ?> *</label></h3>
     697                                        <h3><label for="title"><?php _e("Field Title", 'buddypress') ?> *</label></h3>
    698698                                        <div id="titlewrap">
    699699                                                <input type="text" name="title" id="title" value="<?php echo $this->name ?>" style="width:50%" />
    … …  
    702702                       
    703703                                <div id="titlediv">
    704                                         <h3><label for="description"><?php _e("Field Description") ?></label></h3>
     704                                        <h3><label for="description"><?php _e("Field Description", 'buddypress') ?></label></h3>
    705705                                        <div id="titlewrap">
    706706                                                <textarea name="description" id="description" rows="8" cols="60" style="border: none; width: 99%;"><?php echo $this->desc ?></textarea>
    … …  
    709709       
    710710                                <div id="titlediv">
    711                                         <h3><label for="required"><?php _e("Is This Field Required?") ?> *</label></h3>
     711                                        <h3><label for="required"><?php _e("Is This Field Required?", 'buddypress') ?> *</label></h3>
    712712                                        <select name="required" id="required" style="width: 30%">
    713713                                                <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>>Not Required</option>
    … …  
    717717
    718718                                <div id="titlediv">
    719                                         <h3><label for="public"><?php _e("Default Field Privacy Settings") ?> *</label></h3>
     719                                        <h3><label for="public"><?php _e("Default Field Privacy Settings", 'buddypress') ?> *</label></h3>
    720720                                        <select name="public" id="public" style="width: 30%">
    721721                                                <option value="1"<?php if ( $this->is_public== '1' ) { ?> selected="selected"<?php } ?>>Viewable by everyone</option>
    … …  
    725725
    726726                                <div id="titlediv">
    727                                         <h3><label for="fieldtype"><?php _e("Field Type") ?> *</label></h3>
     727                                        <h3><label for="fieldtype"><?php _e("Field Type", 'buddypress') ?> *</label></h3>
    728728                                        <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)" style="width: 30%">
    729729                                                <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>>Text Box</option>
    … …  
    740740       
    741741                                <p class="submit">
    742                                                 &nbsp;<input type="submit" value="<?php _e("Save") ?> &raquo;" name="saveField" id="saveField" style="font-weight: bold" />
    743                                                  <?php _e('or') ?> <a href="admin.php?page=xprofile_settings" style="color: red"><?php _e('Cancel') ?></a>
     742                                                &nbsp;<input type="submit" value="<?php _e("Save", 'buddypress') ?> &raquo;" name="saveField" id="saveField" style="font-weight: bold" />
     743                                                 <?php _e('or', 'buddypress') ?> <a href="admin.php?page=xprofile_settings" style="color: red"><?php _e('Cancel', 'buddypress') ?></a>
    744744                                </p>
    745745                       
    … …  
    792792                                                                <form action="<?php echo $action ?>" method="post">
    793793                                                                       
    794                                                                         <label for="title">* <?php _e("Field Title") ?></label>
     794                                                                        <label for="title">* <?php _e("Field Title", 'buddypress') ?></label>
    795795                                                                        <div>
    796796                                                                                <input type="text" name="title" id="title" value="<?php echo $field_data['Name']; ?>" style="width:50%" />
    797797                                                                        </div>
    798798                                                                        <p></p>
    799                                                                         <label for="description"><?php _e("Field Description") ?></label>
     799                                                                        <label for="description"><?php _e("Field Description", 'buddypress') ?></label>
    800800                                                                        <div>
    801801                                                                                <textarea name="description" id="description" rows="5" cols="60"><?php echo $field_data['Description']; ?></textarea>
    802802                                                                        </div>
    803803                                                                        <p></p>
    804                                                                         <label for="required">* <?php _e("Is This Field Required?") ?></label>
     804                                                                        <label for="required">* <?php _e("Is This Field Required?", 'buddypress') ?></label>
    805805                                                                        <div>
    806806                                                                                <select name="required" id="required">
    … …  
    810810                                                                        </div>
    811811                                                                        <p></p>
    812                                                                         <label for="fieldtype">* <?php _e("Field Type") ?></label>
     812                                                                        <label for="fieldtype">* <?php _e("Field Type", 'buddypress') ?></label>
    813813                                                                        <div>
    814814                                                                                <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)">
    … …  
    830830                                                                       
    831831                                                                        <p class="submit">                                                                     
    832                                                                           <input type="submit" value="<?php _e("Add") ?> &raquo;" name="saveField" id="saveField<?php echo $counter;?>" class="button" />
     832                                                                          <input type="submit" value="<?php _e("Add", 'buddypress') ?> &raquo;" name="saveField" id="saveField<?php echo $counter;?>" class="button" />
    833833                                                                          <input type="hidden" name="field_file" value="<?php echo $field_file_path; ?>">
    834834                                                                        </p>
    … …  
    842842                                ?></table><?php
    843843                        } else {
    844                                 ?><p><?php _e('No prebuilt fields available at this time.') ?></p><?php
     844                                ?><p><?php _e('No prebuilt fields available at this time.', 'buddypress') ?></p><?php
    845845                        }
    846846                        @closedir( $prebuilt_fields_dir );
    … …  
    884884                                $author = wp_kses( trim( $author_name[1] ), $allowed_tags );
    885885                        } else {
    886                                 $author = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $author_uri, __( 'Visit author homepage' ),
     886                                $author = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $author_uri, __( 'Visit author homepage' , 'buddypress'),
    887887                                        wp_kses( trim( $author_name[1] ), $allowed_tags ) );
    888888                        }
    889889                } else {
    890                         $author = __('Anonymous');
     890                        $author = __('Anonymous', 'buddypress');
    891891                }
    892892
    … …  
    914914                // Validate Form
    915915                if ( $_POST['title'] == '' || $_POST['required'] == '' || $_POST['fieldtype'] == '' ) {
    916                         $message = __('Please make sure you fill out all required fields.');
     916                        $message = __('Please make sure you fill out all required fields.', 'buddypress');
    917917                        return false;
    918918                } else if ( empty($_POST['field_file']) && $_POST['fieldtype'] == 'radio' && empty($_POST['radio_option'][1]) ) {
    919                         $message = __('Radio button field types require at least one option. Please add options below.');       
     919                        $message = __('Radio button field types require at least one option. Please add options below.', 'buddypress');
    920920                        return false;
    921921                } else if ( empty($_POST['field_file']) && $_POST['fieldtype'] == 'selectbox' && empty($_POST['selectbox_option'][1]) ) {
    922                         $message = __('Select box field types require at least one option. Please add options below.');
     922                        $message = __('Select box field types require at least one option. Please add options below.', 'buddypress');   
    923923                        return false;   
    924924                } else if ( empty($_POST['field_file']) && $_POST['fieldtype'] == 'multiselectbox' && empty($_POST['multiselectbox_option'][1]) ) {
    925                         $message = __('Select box field types require at least one option. Please add options below.');
     925                        $message = __('Select box field types require at least one option. Please add options below.', 'buddypress');   
    926926                        return false;   
    927927                } else if ( empty($_POST['field_file']) && $_POST['fieldtype'] == 'checkbox' && empty($_POST['checkbox_option'][1]) ) {
    928                         $message = __('Checkbox field types require at least one option. Please add options below.');   
     928                        $message = __('Checkbox field types require at least one option. Please add options below.', 'buddypress');     
    929929                        return false;           
    930930                } else {
  • trunk/bp-xprofile/bp-xprofile-signup.php

    r389 r391  
    1717        <div id="extraFields">
    1818                <div id="breaker">
    19                         <h3><?php _e('Additional Information'); ?></h3>
     19                        <h3><?php _e('Additional Information', 'buddypress'); ?></h3>
    2020                        <p><?php _e('Please fill in the following fields to start up your member profile. Fields
    21                                 marked with a star are required.'); ?></p>
     21                                marked with a star are required.', 'buddypress'); ?></p>
    2222                </div>
    2323                        <?php
    … …  
    4343        ?>
    4444                <div id="breaker">
    45                         <h3><?php _e('Profile Picture (Avatar)'); ?></h3>
    46                         <p><?php _e('You can upload an image from your computer to use as an avatar. This avatar will appear on your profile page.'); ?></p>
     45                        <h3><?php _e('Profile Picture (Avatar)', 'buddypress'); ?></h3>
     46                        <p><?php _e('You can upload an image from your computer to use as an avatar. This avatar will appear on your profile page.', 'buddypress'); ?></p>
    4747                </div>
    4848                        <?php
    … …  
    9696
    9797                if ( $active_signup == "none" ) {
    98                         _e( "Registration has been disabled." );
     98                        _e( "Registration has been disabled." , 'buddypress');
    9999                } else {
    100100                        if ( $active_signup == 'all' || $active_signup == "blog" ) {
    … …  
    153153                                        if ( !bp_core_check_avatar_upload($_FILES) ) {
    154154                                                $avatar_error = true;
    155                                                 $avatar_error_msg = __('Your avatar upload failed, please try again.');
     155                                                $avatar_error_msg = __('Your avatar upload failed, please try again.', 'buddypress');
    156156                                        }
    157157
    … …  
    159159                                                $avatar_error = true;
    160160                                                $avatar_size = size_format(1024 * CORE_MAX_FILE_SIZE);
    161                                                 $avatar_error_msg = sprintf( __('The file you uploaded is too big. Please upload a file under %d'), $avatar_size);
     161                                                $avatar_error_msg = sprintf( __('The file you uploaded is too big. Please upload a file under %d', 'buddypress'), $avatar_size);
    162162                                        }
    163163
    164164                                        if ( !bp_core_check_avatar_type($_FILES) ) {
    165165                                                $avatar_error = true;
    166                                                 $avatar_error_msg = __('Please upload only JPG, GIF or PNG photos.');           
     166                                                $avatar_error_msg = __('Please upload only JPG, GIF or PNG photos.', 'buddypress');             
    167167                                        }
    168168
    … …  
    170170                                        if ( !$original = bp_core_handle_avatar_upload($_FILES) ) {
    171171                                                $avatar_error = true;
    172                                                 $avatar_error_msg = __('Upload Failed! Your photo dimensions are likely too big.');                                             
     172                                                $avatar_error_msg = __('Upload Failed! Your photo dimensions are likely too big.', 'buddypress');                                               
    173173                                        }
    174174
    175175                                        if ( !bp_core_check_avatar_dimensions($original) ) {
    176176                                                $avatar_error = true;
    177                                                 $avatar_error_msg = sprintf( __('The image you upload must have dimensions of %d x %d pixels or larger.'), CORE_AVATAR_V2_W, CORE_AVATAR_V2_W );
     177                                                $avatar_error_msg = sprintf( __('The image you upload must have dimensions of %d x %d pixels or larger.', 'buddypress'), CORE_AVATAR_V2_W, CORE_AVATAR_V2_W );
    178178                                        }
    179179                                       
    … …  
    241241
    242242                        } else {
    243                                 _e( "Registration has been disabled." );
     243                                _e( "Registration has been disabled." , 'buddypress');
    244244                        }
    245245                }
  • trunk/bp-xprofile/bp-xprofile-templatetags.php

    r375 r391  
    341341
    342342        if ( !$last_updated ) {
    343                 _e('Profile not recently updated') . '.';
     343                _e('Profile not recently updated', 'buddypress') . '.';
    344344        } else {
    345                 echo __('Profile updated ') . bp_core_time_since( strtotime( $last_updated ) ) . __(' ago');
     345                echo __('Profile updated ', 'buddypress') . bp_core_time_since( strtotime( $last_updated ) ) . __(' ago', 'buddypress');
    346346        }
    347347}
Note: See TracChangeset for help on using the changeset viewer.