Changeset 391
- Timestamp:
- 10/12/2008 08:19:04 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 35 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r375 r391 145 145 146 146 /* 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'] ); 148 148 bp_core_add_nav_default( $bp['activity']['slug'], 'bp_activity_screen_my_activity', 'just-me' ); 149 149 … … 151 151 152 152 /* 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' ); 155 155 156 156 if ( $bp['current_component'] == $bp['activity']['slug'] ) { 157 157 if ( bp_is_home() ) { 158 $bp['bp_options_title'] = __('My Activity' );158 $bp['bp_options_title'] = __('My Activity', 'buddypress'); 159 159 } else { 160 160 $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 ); -
trunk/bp-activity/bp-activity-templatetags.php
r375 r391 149 149 /* Switch 'their/your' and 'Name/You' depending on whether the user is logged in or not and viewing their profile */ 150 150 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] ); 153 153 } 154 154 … … 160 160 161 161 function 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') ); 163 163 } 164 164 -
trunk/bp-activity/bp-activity-widgets.php
r375 r391 9 9 10 10 /* 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' ); 13 13 14 14 } … … 41 41 <?php else: ?> 42 42 <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') ?> 44 44 </div> 45 45 <?php endif; ?> … … 66 66 $max_items = attribute_escape( $options['max_items'] ); 67 67 ?> 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> 69 69 <input type="hidden" id="bp-activity-widget-sitewide-submit" name="bp-activity-widget-sitewide-submit" value="1" /> 70 70 <?php -
trunk/bp-blogs.php
r387 r391 77 77 78 78 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' ); 83 83 } 84 84 … … 129 129 130 130 /* 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'] ); 132 132 bp_core_add_nav_default( $bp['blogs']['slug'], 'bp_blogs_screen_my_blogs', 'my-blogs' ); 133 133 … … 135 135 136 136 /* 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' ); 141 141 142 142 /* Set up the component options navigation for Blog */ … … 144 144 if ( bp_is_home() ) { 145 145 if ( function_exists('xprofile_setup_nav') ) { 146 $bp['bp_options_title'] = __('My Blogs' );146 $bp['bp_options_title'] = __('My Blogs', 'buddypress'); 147 147 } 148 148 } else { … … 212 212 return false; 213 213 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>'; 215 215 break; 216 216 case 'new_blog_post': … … 225 225 return false; 226 226 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>'; 228 228 $content .= '<blockquote>' . bp_create_excerpt($post->post_content) . '</blockquote>'; 229 229 return $content; … … 240 240 241 241 $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>'; 243 243 $content .= '<blockquote>' . bp_create_excerpt($comment->comment_content) . '</blockquote>'; 244 244 return $content; -
trunk/bp-blogs/bp-blogs-templatetags.php
r359 r391 275 275 if ( !empty($posts_template->postpost_password) ) { // if there's a password 276 276 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'); 278 278 return; 279 279 } … … 295 295 echo apply_filters( 'comments_popup_link_attributes', '' ); 296 296 297 echo ' title="' . sprintf( __('Comment on %s' ), $title ) . '">';297 echo ' title="' . sprintf( __('Comment on %s', 'buddypress'), $title ) . '">'; 298 298 comments_number( $zero, $one, $more, $number ); 299 299 echo '</a>'; … … 635 635 636 636 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>"; 638 638 } 639 639 ?> 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’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’re not going to use a great blog domain, leave it for a new user. Now have at it!", 'buddypress') ?></p> 643 643 644 644 <form id="setupform" method="post" action="<?php echo $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog' ?>"> … … 648 648 <?php bp_blogs_signup_blog($blogname, $blog_title, $errors); ?> 649 649 <p> 650 <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog »' ) ?>" />650 <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog »', 'buddypress') ?>" /> 651 651 </p> 652 652 </form> … … 660 660 // Blog name 661 661 if( constant( "VHOST" ) == 'no' ) 662 echo '<label for="blogname">' . __('Blog Name:' ) . '</label>';662 echo '<label for="blogname">' . __('Blog Name:', 'buddypress') . '</label>'; 663 663 else 664 echo '<label for="blogname">' . __('Blog Domain:' ) . '</label>';664 echo '<label for="blogname">' . __('Blog Domain:', 'buddypress') . '</label>'; 665 665 666 666 if ( $errmsg = $errors->get_error_message('blogname') ) { ?> … … 674 674 } 675 675 if ( !is_user_logged_in() ) { 676 print '(<strong>' . __( 'Your address will be ' );676 print '(<strong>' . __( 'Your address will be ' , 'buddypress'); 677 677 if( constant( "VHOST" ) == 'no' ) { 678 print $current_site->domain . $current_site->path . __( 'blogname' );678 print $current_site->domain . $current_site->path . __( 'blogname' , 'buddypress'); 679 679 } 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>'; 683 683 } 684 684 685 685 // Blog Title 686 686 ?> 687 <label for="blog_title"><?php _e('Blog Title:' ) ?></label>687 <label for="blog_title"><?php _e('Blog Title:', 'buddypress') ?></label> 688 688 <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?> 689 689 <p class="error"><?php echo $errmsg ?></p> … … 693 693 694 694 <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'); ?> 697 697 <div style="clear:both;"></div> 698 698 <label class="checkbox" for="blog_public_on"> 699 699 <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> 701 701 </label> 702 702 <label class="checkbox" for="blog_public_off"> 703 703 <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> 705 705 </label> 706 706 </p> … … 753 753 function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = '' ) { 754 754 ?> 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> 756 756 <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) ?> 758 758 </p> 759 759 <?php … … 765 765 766 766 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>'; 768 768 } 769 769 } -
trunk/bp-blogs/bp-blogs-widgets.php
r375 r391 9 9 10 10 /* 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' ); 13 13 14 14 } … … 35 35 <?php if ( $posts ) : ?> 36 36 <div class="item-options" id="recent-posts-options"> 37 <?php _e("Site Wide" ) ?>37 <?php _e("Site Wide", 'buddypress') ?> 38 38 </div> 39 39 <ul id="recent-posts" class="item-list"> … … 57 57 <?php else: ?> 58 58 <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') ?> 60 60 </div> 61 61 <?php endif; ?> … … 82 82 $max_posts = attribute_escape( $options['max_posts'] ); 83 83 ?> 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> 85 85 <input type="hidden" id="bp-blogs-widget-recent-posts-submit" name="bp-blogs-widget-recent-posts-submit" value="1" /> 86 86 <?php -
trunk/bp-core.php
r388 r391 158 158 global $menu; 159 159 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' ); 161 161 } 162 162 add_action( 'admin_menu', 'bp_core_add_settings_tab' ); … … 425 425 if ( count($list) < count($options) ) : 426 426 ?> 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> 428 428 429 429 </ul> … … 431 431 <form id="all-my-blogs" action="" method="get" style="display: none"> 432 432 <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> 437 437 </p> 438 438 </form> … … 800 800 801 801 if ( !$just_date ) { 802 $date .= __('at' ) . date( ' g:iA', $time );802 $date .= __('at', 'buddypress') . date( ' g:iA', $time ); 803 803 } 804 804 … … 900 900 // Make sure we have an uploads dir 901 901 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 ); 903 903 return array( 'error' => $message ); 904 904 } … … 968 968 // array of time period chunks 969 969 $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') ) 977 977 ); 978 978 … … 1009 1009 $name2 = $chunks[$i + 1][1]; 1010 1010 1011 if ( $name2 == __('second' ) ) return $output;1011 if ( $name2 == __('second', 'buddypress') ) return $output; 1012 1012 1013 1013 if ( ( $count2 = floor( ( $since - ( $seconds * $count ) ) / $seconds2 ) ) != 0 ) { … … 1058 1058 function bp_core_get_last_activity( $last_activity_date, $before, $after ) { 1059 1059 if ( !$last_activity_date || $last_activity_date == '' ) { 1060 $last_active = __('not recently active' );1060 $last_active = __('not recently active', 'buddypress'); 1061 1061 } else { 1062 1062 $last_active = $before; -
trunk/bp-core/admin-mods/bp-core-account-tab.php
r309 r391 3 3 $is_profile_page = true; 4 4 5 $title = $is_profile_page? __('Profile' ) : __('Edit User');5 $title = $is_profile_page? __('Profile', 'buddypress') : __('Edit User', 'buddypress'); 6 6 if ( current_user_can('edit_users') && !$is_profile_page ) 7 7 $submenu_file = 'users.php'; … … 21 21 $user_id = $current_user->ID; 22 22 } else { 23 wp_die(__('Invalid user ID.' ));23 wp_die(__('Invalid user ID.', 'buddypress')); 24 24 } 25 25 … … 42 42 43 43 if ( !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')); 45 45 46 46 if ( $is_profile_page ) { … … 64 64 65 65 if ( !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')); 67 67 68 68 ?> … … 70 70 <?php if ( isset($_GET['updated']) ) : ?> 71 71 <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> 73 73 <?php if ( $wp_http_referer && !$is_profile_page ) : ?> 74 <p><a href="users.php"><?php _e('« Back to Authors and Users' ); ?></a></p>74 <p><a href="users.php"><?php _e('« Back to Authors and Users', 'buddypress'); ?></a></p> 75 75 <?php endif; ?> 76 76 </div> … … 88 88 89 89 <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> 91 91 92 92 <form name="profile" id="your-profile" action="admin.php?page=bp-core/admin-mods/bp-core-account-tab.php" method="post"> … … 101 101 </p> 102 102 103 <h3><?php _e('Personal Options' ); ?></h3>103 <h3><?php _e('Personal Options', 'buddypress'); ?></h3> 104 104 105 105 <table class="form-table"> 106 106 <?php if ( rich_edit_exists() ) : // don't bother showing the option if the editor has been removed ?> 107 107 <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> 110 110 </tr> 111 111 <?php endif; ?> 112 112 <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> 115 115 <?php 116 116 $current_color = get_user_option('admin_color', $user_id); … … 135 135 </table> 136 136 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> 138 138 139 139 <table class="form-table"> 140 140 <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> 143 143 </tr> 144 144 <?php … … 147 147 ?> 148 148 <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 /> 152 152 <?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 !"?$%^&( 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 !"?$%^&( in your password.', 'buddypress'); ?> 155 155 <?php endif; ?> 156 156 </td> … … 171 171 <table width="99%" style="border: none;" cellspacing="2" cellpadding="3" class="editform"> 172 172 <tr> 173 <th scope="row"><?php _e('Additional Capabilities' ) ?></th>173 <th scope="row"><?php _e('Additional Capabilities', 'buddypress') ?></th> 174 174 <td><?php 175 175 $output = ''; … … 189 189 <input type="hidden" name="action" value="update" /> 190 190 <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" /> 192 192 </p> 193 193 </form> -
trunk/bp-core/admin-mods/bp-core-homebase-dashboard.php
r359 r391 31 31 32 32 <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> 34 34 </div> 35 35 -
trunk/bp-core/bp-core-adminbar.php
r378 r391 14 14 bp_core_get_avatar( $bp['loggedin_userid'], 1 ); 15 15 16 echo __('My Account' ) . '</a>';16 echo __('My Account', 'buddypress') . '</a>'; 17 17 echo '<ul>'; 18 18 … … 32 32 echo '</li>'; 33 33 } 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>'; 35 35 echo '</ul>'; 36 36 echo '</li>'; … … 42 42 43 43 echo '<li><a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/my-blogs">'; 44 _e('My Blogs' );44 _e('My Blogs', 'buddypress'); 45 45 echo '</a>'; 46 46 … … 54 54 55 55 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>'; 61 61 echo '</ul>'; 62 62 … … 65 65 } else { 66 66 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>'; 68 68 echo '</li>'; 69 69 } … … 81 81 /* This is a blog, render a menu with links to all authors */ 82 82 echo '<li><a href="/">'; 83 _e('Blog Authors' );83 _e('Blog Authors', 'buddypress'); 84 84 echo '</a>'; 85 85 -
trunk/bp-core/bp-core-ajax.php
r374 r391 42 42 <?php 43 43 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') ); 45 45 } 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') ); 47 47 } else if ( $_POST['filter'] == 'popular-members') { 48 48 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'); 50 50 else 51 echo get_usermeta( $user->user_id, 'total_friend_count' ) . __(' friends' );51 echo get_usermeta( $user->user_id, 'total_friend_count' ) . __(' friends', 'buddypress'); 52 52 } 53 53 ?> … … 59 59 } 60 60 } else { 61 echo "-1[[SPLIT]]<li>" . __("No members matched the current filter." );61 echo "-1[[SPLIT]]<li>" . __("No members matched the current filter.", 'buddypress'); 62 62 } 63 63 } -
trunk/bp-core/bp-core-avatars.php
r373 r391 77 77 <?php if ( !isset($_POST['slick_avatars_action']) && !isset($_GET['slick_avatars_action']) ) { ?> 78 78 <div class="wrap"> 79 <h2><?php _e('Your Avatar' ) ?></h2>79 <h2><?php _e('Your Avatar', 'buddypress') ?></h2> 80 80 81 81 <?php if ( $message ) { ?> … … 86 86 <?php } ?> 87 87 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> 90 90 91 91 <?php … … 100 100 $str = bp_core_get_avatar( get_current_user_id(), 1 ); 101 101 if ( strlen($str) ) { 102 echo '<h3>' . __('This is your current avatar' ) . '</h3>';102 echo '<h3>' . __('This is your current avatar', 'buddypress') . '</h3>'; 103 103 echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 1) . '</span>'; 104 104 echo '<span class="crop-img avatar">' . bp_core_get_avatar(get_current_user_id(), 2) . '</span>'; … … 111 111 112 112 echo '<div class="wrap"><h2>'; 113 _e('Your Avatar' );113 _e('Your Avatar', 'buddypress'); 114 114 echo '</h2>'; 115 115 … … 120 120 // Set friendly error feedback. 121 121 $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') 128 128 ); 129 129 … … 171 171 // Store details to the DB and we're done 172 172 echo '<div class="wrap"><h2>'; 173 _e('Your Avatar' );173 _e('Your Avatar', 'buddypress'); 174 174 echo '</h2>'; 175 175 176 echo '<p>' . __('Your new avatar was successfully created!' ) . '</p>';176 echo '<p>' . __('Your new avatar was successfully created!', 'buddypress') . '</p>'; 177 177 178 178 bp_core_avatar_save($result); … … 191 191 192 192 unset($_GET['slick_avatars_action']); 193 $message = __('Avatar successfully removed.' );193 $message = __('Avatar successfully removed.', 'buddypress'); 194 194 bp_core_avatar_admin($message); 195 195 … … 278 278 279 279 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>'; 282 282 283 283 // Canvas … … 285 285 286 286 // Preview 287 echo '<p class="crop-preview"><strong>' . __('Crop Preview' ) . '</strong></p>';287 echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>'; 288 288 echo '<div id="crop-preview-v1" class="crop-preview"></div>'; 289 289 … … 299 299 if (CORE_AVATAR_V2_W !== false && CORE_AVATAR_V2_H !== false) { 300 300 // Continue button (v1 => v2) 301 echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop & Continue' ) . '" onclick="cropAndContinue();" /></p>';301 echo '<p class="submit"><input type="button" name="avatar_continue" value="' . __('Crop & Continue', 'buddypress') . '" onclick="cropAndContinue();" /></p>'; 302 302 echo '</div>'; 303 303 304 304 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>'; 307 307 308 308 // Canvas … … 310 310 311 311 // Preview 312 echo '<p class="crop-preview"><strong>' . __('Crop Preview' ) . '</strong></p>';312 echo '<p class="crop-preview"><strong>' . __('Crop Preview', 'buddypress') . '</strong></p>'; 313 313 echo '<div id="crop-preview-v2" class="crop-preview"></div>'; 314 314 … … 322 322 323 323 // Final button to process everything 324 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save' ) . '" /></p>';324 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save', 'buddypress') . '" /></p>'; 325 325 echo '</div>'; 326 326 } else { … … 329 329 330 330 // Final button to process everything 331 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save' ) . '" /></p>';331 echo '<p class="submit"><input type="submit" name="save" value="' . __('Crop & Save', 'buddypress') . '" /></p>'; 332 332 } 333 333 … … 458 458 function bp_core_ap_die( $msg ) { 459 459 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>'; 461 461 echo '</div>'; 462 462 exit; -
trunk/bp-core/bp-core-classes.php
r381 r391 61 61 $this->fullname = bp_core_get_userlink( $this->id, true ); 62 62 $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') ); 64 64 65 65 if ( function_exists('xprofile_install') ) { -
trunk/bp-core/bp-core-templatetags.php
r375 r391 172 172 173 173 if ( $bp['bp_options_title'] == '' ) 174 $bp['bp_options_title'] = __('Options' );174 $bp['bp_options_title'] = __('Options', 'buddypress'); 175 175 176 176 echo $bp['bp_options_title']; … … 210 210 211 211 if ( !$just_date ) { 212 $date .= __('at' ) . date( ' g:iA', $time );212 $date .= __('at', 'buddypress') . date( ' g:iA', $time ); 213 213 } 214 214 … … 219 219 global $bp; 220 220 221 $my = __('my' );221 $my = __('my', 'buddypress'); 222 222 223 223 if ( $capitalize ) … … 240 240 global $bp; 241 241 242 $you = __('you haven\'t' );242 $you = __('you haven\'t', 'buddypress'); 243 243 244 244 if ( $capitalize ) … … 261 261 global $bp; 262 262 263 $your = __('your' );263 $your = __('your', 'buddypress'); 264 264 265 265 if ( $capitalize ) … … 282 282 global $bp; 283 283 284 $your = __('your' );285 $their = __('their' );284 $your = __('your', 'buddypress'); 285 $their = __('their', 'buddypress'); 286 286 287 287 if ( $capitalize ) -
trunk/bp-core/bp-core-widgets.php
r375 r391 9 9 10 10 /* 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' ); 13 13 14 14 /* 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' ); 17 17 18 18 /* Include the javascript needed for activated widgets only */ … … 26 26 27 27 /* 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' ); 30 30 31 31 } … … 49 49 <p><?php echo $options['text'] ?></p> 50 50 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> 52 52 53 53 <?php echo $after_widget; ?> … … 73 73 $text = attribute_escape( $options['text'] ); 74 74 ?> 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> 76 76 <p> 77 <label for="bp-widget-welcome-text"><?php _e( 'Welcome Text:' ); ?>77 <label for="bp-widget-welcome-text"><?php _e( 'Welcome Text:' , 'buddypress'); ?> 78 78 <textarea id="bp-widget-welcome-text" name="bp-widget-welcome-text" class="widefat" style="height: 100px"><?php echo $text; ?></textarea> 79 79 </label> … … 101 101 <div class="item-options" id="members-list-options"> 102 102 <img id="ajax-loader-members" src="<?php echo $bp['core']['image_base'] ?>/ajax-loader.gif" height="7" alt="Loading" style="display: none;" /> 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> 106 106 </div> 107 107 <ul id="members-list" class="item-list"> … … 115 115 <div class="item"> 116 116 <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> 118 118 </div> 119 119 </li> … … 131 131 <?php else: ?> 132 132 <div class="widget-error"> 133 <?php _e('No one has signed up yet!' ) ?>133 <?php _e('No one has signed up yet!', 'buddypress') ?> 134 134 </div> 135 135 <?php endif; ?> … … 155 155 $max_members = attribute_escape( $options['max_members'] ); 156 156 ?> 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> 158 158 <input type="hidden" id="bp-core-widget-members-submit" name="bp-core-widget-members-submit" value="1" /> 159 159 <?php … … 195 195 <?php else: ?> 196 196 <div class="widget-error"> 197 <?php _e('There are no users currently online.' ) ?>197 <?php _e('There are no users currently online.', 'buddypress') ?> 198 198 </div> 199 199 <?php endif; ?> … … 219 219 $max_members = attribute_escape( $options['max_members'] ); 220 220 ?> 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> 222 222 <input type="hidden" id="bp-widget-whos-online-submit" name="bp-widget-whos-online-submit" value="1" /> 223 223 <?php -
trunk/bp-core/homebase-creation/bp-core-homebase-functions.php
r359 r391 7 7 ?> 8 8 <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> 11 11 </div> 12 12 <?php … … 17 17 function bp_core_add_createhomebase_tab() { 18 18 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'); 20 20 } 21 21 } … … 27 27 if ( ( is_site_admin() && $bp['current_userid'] != $bp['loggedin_userid'] ) && ( $wpdb->blogid == $bp['current_homebase_id'] ) ) { ?> 28 28 <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> 30 30 </div> 31 31 <?php … … 58 58 59 59 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>"; 61 61 } 62 62 ?> 63 63 64 64 <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> 66 66 <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> 70 70 71 71 <form id="setupform" method="post" action="admin.php?page=bp-core/homebase-creation/bp-core-homebase-tab.php"> … … 75 75 <?php do_action( 'signup_extra_fields', $errors ); ?> 76 76 <p> 77 <input id="submit" type="submit" name="submit" value="<?php _e('Create Home Base »' ) ?>" /></p>77 <input id="submit" type="submit" name="submit" value="<?php _e('Create Home Base »', 'buddypress') ?>" /></p> 78 78 </form> 79 79 </div> … … 88 88 <tbody> 89 89 <tr> 90 <th scope="row"><?php _e('Username' ) ?></th>90 <th scope="row"><?php _e('Username', 'buddypress') ?></th> 91 91 <td> 92 92 <?php … … 112 112 ?> 113 113 <?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> 115 115 <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?> 116 116 <p class="error"><?php echo $errmsg ?></p> -
trunk/bp-core/homebase-creation/bp-core-homebase-tab.php
r359 r391 21 21 $current_user = wp_get_current_user(); 22 22 if( $active_signup == "none" ) { 23 _e( "Registration has been disabled." );23 _e( "Registration has been disabled." , 'buddypress'); 24 24 } else { 25 25 if( $active_signup == 'blog' && !is_user_logged_in() ) … … 45 45 bp_core_homebase_signup_form($newblogname); 46 46 } 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'); 48 48 } 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'); 50 50 } 51 51 } -
trunk/bp-friends.php
r375 r391 93 93 94 94 /* 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'] ); 96 96 bp_core_add_nav_default( $bp['friends']['slug'], 'friends_screen_my_friends', 'my-friends' ); 97 97 … … 99 99 100 100 /* 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' ); 105 105 106 106 if ( $bp['current_component'] == $bp['friends']['slug'] ) { 107 107 if ( bp_is_home() ) { 108 $bp['bp_options_title'] = __('My Friends' );108 $bp['bp_options_title'] = __('My Friends', 'buddypress'); 109 109 } else { 110 110 $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 ); … … 127 127 128 128 if ( friends_accept_friendship( $bp['action_variables'][1] ) ) { 129 $bp['message'] = __('Friendship accepted' );129 $bp['message'] = __('Friendship accepted', 'buddypress'); 130 130 $bp['message_type'] = 'success'; 131 131 } else { 132 $bp['message'] = __('Friendship could not be accepted' );132 $bp['message'] = __('Friendship could not be accepted', 'buddypress'); 133 133 $bp['message_type'] = 'error'; 134 134 } … … 138 138 139 139 if ( friends_reject_friendship( $bp['action_variables'][1] ) ) { 140 $bp['message'] = __('Friendship rejected' );140 $bp['message'] = __('Friendship rejected', 'buddypress'); 141 141 $bp['message_type'] = 'success'; 142 142 } else { 143 $bp['message'] = __('Friendship could not be rejected' );143 $bp['message'] = __('Friendship could not be rejected', 'buddypress'); 144 144 $bp['message_type'] = 'error'; 145 145 } … … 198 198 199 199 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>'; 201 201 } 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>'; 203 203 } 204 204 -
trunk/bp-friends/bp-friends-ajax.php
r375 r391 56 56 } else { 57 57 $result['message'] = '<img src="' . $bp['friends']['image_base'] . '/warning.gif" alt="Warning" /> ' . $result['message']; 58 echo "-1[[SPLIT]]" . __("No friends matched your search." );58 echo "-1[[SPLIT]]" . __("No friends matched your search.", 'buddypress'); 59 59 } 60 60 } … … 79 79 80 80 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'); 82 82 return; 83 83 } … … 118 118 } else { 119 119 $result['message'] = '<img src="' . $bp['friends']['image_base'] . '/warning.gif" alt="Warning" /> ' . $result['message']; 120 echo "-1[[SPLIT]]" . __("No site users matched your search." );120 echo "-1[[SPLIT]]" . __("No site users matched your search.", 'buddypress'); 121 121 } 122 122 } … … 134 134 if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'is_friend' ) { 135 135 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'); 137 137 } else { 138 138 friends_update_friend_totals( $bp['loggedin_userid'], $bp['current_userid'], 'remove' ); 139 echo __('Add Friend' );139 echo __('Add Friend', 'buddypress'); 140 140 } 141 141 } else if ( BP_Friends_Friendship::check_is_friend( $bp['loggedin_userid'], $_POST['fid'] ) == 'not_friends' ) { 142 142 if ( !friends_add_friend( $bp['loggedin_userid'], $_POST['fid'] ) ) { 143 echo __("Friendship could not be requested." );143 echo __("Friendship could not be requested.", 'buddypress'); 144 144 } else { 145 echo __('Friendship Requested' );145 echo __('Friendship Requested', 'buddypress'); 146 146 } 147 147 } else { 148 echo __('Request Pending' );148 echo __('Request Pending', 'buddypress'); 149 149 } 150 150 -
trunk/bp-friends/bp-friends-templatetags.php
r359 r391 242 242 243 243 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'); 245 245 } 246 246 } … … 268 268 if ( $bp['current_action'] == 'my-friends' || !$bp['current_action'] ) { 269 269 $action = $bp['current_domain'] . $bp['friends']['slug'] . '/my-friends/search/'; 270 $label = __('Filter Friends' );270 $label = __('Filter Friends', 'buddypress'); 271 271 $type = 'friend'; 272 272 } else { 273 273 $action = $bp['current_domain'] . $bp['friends']['slug'] . '/friend-finder/search/'; 274 $label = __('Find Friends' );274 $label = __('Find Friends', 'buddypress'); 275 275 $type = 'finder'; 276 276 $value = $bp['action_variables'][1]; … … 326 326 echo '<div class="friendship-button" id="friendship-button-' . $potential_friend_id . '">'; 327 327 if ( $friend_status == 'pending' ) { 328 _e('Friendship Requested' );328 _e('Friendship Requested', 'buddypress'); 329 329 } 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>'; 331 331 } 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>'; 333 333 } 334 334 echo '</div>'; … … 345 345 ?> 346 346 <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') ?> »</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') ?> »</a></h4> 348 348 349 349 <?php if ( $friend_ids ) { ?> … … 358 358 <?php } else { ?> 359 359 <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> 361 361 </div> 362 362 <?php } ?> -
trunk/bp-groups.php
r388 r391 164 164 165 165 /* 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'] ); 167 167 bp_core_add_nav_default( $bp['groups']['slug'], 'groups_screen_my_groups', 'my-groups' ); 168 168 … … 170 170 171 171 /* 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' ); 176 176 177 177 if ( $bp['current_component'] == $bp['groups']['slug'] ) { … … 179 179 if ( bp_is_home() && !$is_single_group ) { 180 180 181 $bp['bp_options_title'] = __('My Groups' );181 $bp['bp_options_title'] = __('My Groups', 'buddypress'); 182 182 183 183 } else if ( !bp_is_home() && !$is_single_group ) { … … 208 208 bp_core_add_nav_default( $bp['groups']['slug'], 'groups_screen_group_home', 'home' ); 209 209 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'); 212 212 213 213 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' ); 215 215 } 216 216 217 217 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' ); 219 219 } 220 220 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' ); 222 222 223 223 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' ); 226 226 } 227 227 } … … 279 279 280 280 if ( $member->save() ) { 281 $bp['message'] = __('Group invite accepted' );281 $bp['message'] = __('Group invite accepted', 'buddypress'); 282 282 $bp['message_type'] = 'success'; 283 283 } else { 284 $bp['message'] = __('Group invite could not be accepted' );284 $bp['message'] = __('Group invite could not be accepted', 'buddypress'); 285 285 $bp['message_type'] = 'error'; 286 286 } … … 288 288 } else if ( isset($bp['action_variables']) && in_array( 'reject', $bp['action_variables'] ) && is_numeric($bp['action_variables'][1]) ) { 289 289 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'); 291 291 $bp['message_type'] = 'success'; 292 292 } else { 293 $bp['message'] = __('Group invite could not be rejected' );293 $bp['message'] = __('Group invite could not be rejected', 'buddypress'); 294 294 $bp['message_type'] = 'error'; 295 295 } … … 326 326 } else { 327 327 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'); 329 329 $bp['message_type'] = 'error'; 330 330 … … 373 373 bp_catch_uri( 'groups/group-home' ); 374 374 } else { 375 $bp['message'] = __('Wire message successfully posted.' );375 $bp['message'] = __('Wire message successfully posted.', 'buddypress'); 376 376 $bp['message_type'] = 'success'; 377 377 … … 390 390 bp_catch_uri( 'groups/group-home' ); 391 391 } else { 392 $bp['message'] = __('Wire message successfully deleted.' );392 $bp['message'] = __('Wire message successfully deleted.', 'buddypress'); 393 393 $bp['message_type'] = 'success'; 394 394 … … 438 438 groups_send_invites($group_obj); 439 439 440 $bp['message'] = __('Group invites sent.' );440 $bp['message'] = __('Group invites sent.', 'buddypress'); 441 441 $bp['message_type'] = 'success'; 442 442 … … 458 458 // remove the user from the group. 459 459 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'); 461 461 $bp['message_type'] = 'error'; 462 462 } else { 463 $bp['message'] = __('You left the group successfully.' );463 $bp['message'] = __('You left the group successfully.', 'buddypress'); 464 464 $bp['message_type'] = 'success'; 465 465 } … … 490 490 if ( !BP_Groups_Member::check_is_member( $bp['loggedin_userid'], $group_obj->id ) ) { 491 491 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'); 493 493 $bp['message_type'] = 'error'; 494 494 } else { 495 $bp['message'] = __('You joined the group!' );495 $bp['message'] = __('You joined the group!', 'buddypress'); 496 496 $bp['message_type'] = 'success'; 497 497 } … … 540 540 return false; 541 541 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>'; 543 543 break; 544 544 case 'created_group': … … 548 548 return false; 549 549 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>'; 551 551 break; 552 552 case 'new_wire_post': … … 557 557 return false; 558 558 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>'; 560 560 $content .= '<blockquote>' . bp_create_excerpt($wire_post->content) . '</blockquote>'; 561 561 return $content; … … 617 617 // Set friendly error feedback. 618 618 $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') 625 625 ); 626 626 627 627 if ( !bp_core_check_avatar_upload($file) ) { 628 628 $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'); 630 630 } 631 631 … … 633 633 $avatar_error = true; 634 634 $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); 636 636 } 637 637 638 638 else if ( !bp_core_check_avatar_type($file) ) { 639 639 $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'); 641 641 } 642 642 … … 644 644 else if ( !$original = bp_core_handle_avatar_upload($file) ) { 645 645 $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'); 647 647 } 648 648 649 649 else if ( !bp_core_check_avatar_dimensions($original) ) { 650 650 $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 ); 652 652 } 653 653 … … 722 722 $admin = new BP_Groups_Member( $bp['loggedin_userid'], $group->id ); 723 723 $admin->is_admin = 1; 724 $admin->user_title = __('Group Admin' );724 $admin->user_title = __('Group Admin', 'buddypress'); 725 725 $admin->date_modified = time(); 726 726 $admin->inviter_id = 0; … … 897 897 $message .= "Reject the invite: " . $invited_user->user_url . $bp['groups']['slug'] . "/invites/reject/" . $group_obj->id . "\n"; 898 898 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' ] ); 900 900 } 901 901 -
trunk/bp-groups/bp-groups-ajax.php
r375 r391 95 95 <h4> 96 96 <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> 98 98 </h4> 99 99 <p class="desc"><?php echo bp_create_excerpt( $group->description, 20 ) ?></p> … … 104 104 } else { 105 105 $result['message'] = '<img src="' . $bp['groups']['image_base'] . '/warning.gif" alt="Warning" /> ' . $result['message']; 106 echo "-1[[SPLIT]]" . __("No groups matched your search." );106 echo "-1[[SPLIT]]" . __("No groups matched your search.", 'buddypress'); 107 107 } 108 108 } … … 151 151 <h4> 152 152 <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> 154 154 </h4> 155 155 <p class="desc"><?php echo bp_create_excerpt( $group->description, 20 ) ?></p> … … 160 160 } else { 161 161 $result['message'] = '<img src="' . $bp['groups']['image_base'] . '/warning.gif" alt="Warning" /> ' . $result['message']; 162 echo "-1[[SPLIT]]" . __("No groups matched your search." );162 echo "-1[[SPLIT]]" . __("No groups matched your search.", 'buddypress'); 163 163 } 164 164 } … … 205 205 <?php 206 206 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') ); 208 208 } 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') ); 210 210 } else if ( $_POST['filter'] == 'popular-groups') { 211 211 if ( $group->total_member_count == 1 ) 212 echo $group->total_member_count . __(' member' );212 echo $group->total_member_count . __(' member', 'buddypress'); 213 213 else 214 echo $group->total_member_count . __(' members' );214 echo $group->total_member_count . __(' members', 'buddypress'); 215 215 } 216 216 ?> … … 222 222 } 223 223 } else { 224 echo "-1[[SPLIT]]<li>" . __("No groups matched the current filter." );224 echo "-1[[SPLIT]]<li>" . __("No groups matched the current filter.", 'buddypress'); 225 225 } 226 226 } -
trunk/bp-groups/bp-groups-templatetags.php
r375 r391 141 141 function bp_group_type() { 142 142 global $groups_template; 143 echo ucwords($groups_template->group->status) . ' ' . __('Group' );143 echo ucwords($groups_template->group->status) . ' ' . __('Group', 'buddypress'); 144 144 } 145 145 … … 205 205 206 206 if ( $groups_template->group->is_public ) { 207 _e('Public' );207 _e('Public', 'buddypress'); 208 208 } else { 209 _e('Private' );209 _e('Private', 'buddypress'); 210 210 } 211 211 } … … 219 219 220 220 if ( $groups_template->group->is_invitation_only ) { 221 _e('Invitation Only' );221 _e('Invitation Only', 'buddypress'); 222 222 } else { 223 _e('Open' );223 _e('Open', 'buddypress'); 224 224 } 225 225 } … … 280 280 if ( $bp['current_action'] == 'my-groups' || !$bp['current_action'] ) { 281 281 $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/my-groups/search/'; 282 $label = __('Filter Groups' );282 $label = __('Filter Groups', 'buddypress'); 283 283 $type = 'group'; 284 284 } else { 285 285 $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/group-finder/search/'; 286 $label = __('Find a Group' );286 $label = __('Find a Group', 'buddypress'); 287 287 $type = 'groupfinder'; 288 288 $value = $bp['action_variables'][1]; … … 323 323 global $bp, $create_group_step, $completed_to_step; 324 324 ?> 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> 329 329 <?php 330 330 } … … 335 335 switch( $create_group_step ) { 336 336 case '1': 337 echo '<span>— ' . __('Group Details' ) . '</span>';337 echo '<span>— ' . __('Group Details', 'buddypress') . '</span>'; 338 338 break; 339 339 340 340 case '2': 341 echo '<span>— ' . __('Group Settings' ) . '</span>';341 echo '<span>— ' . __('Group Settings', 'buddypress') . '</span>'; 342 342 break; 343 343 344 344 case '3': 345 echo '<span>— ' . __('Group Avatar' ) . '</span>';345 echo '<span>— ' . __('Group Avatar', 'buddypress') . '</span>'; 346 346 break; 347 347 348 348 case '4': 349 echo '<span>— ' . __('Invite Members' ) . '</span>';349 echo '<span>— ' . __('Invite Members', 'buddypress') . '</span>'; 350 350 break; 351 351 } … … 360 360 <?php switch( $create_group_step ) { 361 361 case '1': ?> 362 <label for="group-name">* <?php _e('Group Name' ) ?></label>362 <label for="group-name">* <?php _e('Group Name', 'buddypress') ?></label> 363 363 <input type="text" name="group-name" id="group-name" value="<?php echo ( $group_obj ) ? $group_obj->name : $_POST['group-name']; ?>" /> 364 364 365 <label for="group-desc">* <?php _e('Group Description' ) ?></label>365 <label for="group-desc">* <?php _e('Group Description', 'buddypress') ?></label> 366 366 <textarea name="group-desc" id="group-desc"><?php echo ( $group_obj ) ? $group_obj->description : $_POST['group-desc']; ?></textarea> 367 367 368 <label for="group-news">* <?php _e('Recent News' ) ?></label>368 <label for="group-news">* <?php _e('Recent News', 'buddypress') ?></label> 369 369 <textarea name="group-news" id="group-news"><?php echo ( $group_obj ) ? $group_obj->news : $_POST['group-news']; ?></textarea> 370 370 371 <input type="submit" value="<?php _e('Save and Continue' ) ?> »" id="save" name="save" />371 <input type="submit" value="<?php _e('Save and Continue', 'buddypress') ?> »" id="save" name="save" /> 372 372 <?php break; ?> 373 373 … … 375 375 <?php if ( $completed_to_step > 0 ) { ?> 376 376 <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> 378 378 </div> 379 379 <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> 381 381 </div> 382 382 <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> 384 384 <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> 387 387 </div> 388 388 </div> 389 389 390 <h3><?php _e('Privacy Options' ); ?></h3>390 <h3><?php _e('Privacy Options', 'buddypress'); ?></h3> 391 391 392 392 <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' ) ?> »" 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') ?> »" id="save" name="save" /> 399 399 <?php } else { ?> 400 400 <div id="message" class="info"> … … 415 415 416 416 <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> 418 418 419 419 <?php … … 426 426 427 427 <div id="skip-continue"> 428 <input type="submit" value="<?php _e('Skip' ) ?> »" id="skip" name="skip" />428 <input type="submit" value="<?php _e('Skip', 'buddypress') ?> »" id="skip" name="skip" /> 429 429 </div> 430 430 </div> … … 543 543 544 544 <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> 546 546 </div> 547 547 … … 561 561 </ul> 562 562 563 <input type="submit" value="<?php _e('Finish & Send Invites' ) ?> »" id="save" name="save" />563 <input type="submit" value="<?php _e('Finish & Send Invites', 'buddypress') ?> »" id="save" name="save" /> 564 564 565 565 </div> … … 577 577 578 578 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>'; 580 580 } 581 581 } … … 587 587 ?> 588 588 <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') ?> »</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') ?> »</a></h4> 590 590 <?php if ( $group_ids ) { ?> 591 591 <ul class="horiz-gallery"> … … 600 600 <?php } else { ?> 601 601 <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> 603 603 </div> 604 604 <?php } ?> -
trunk/bp-groups/bp-groups-widgets.php
r380 r391 9 9 10 10 /* 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' ); 13 13 14 14 /* Include the javascript needed for activated widgets only */ … … 38 38 <div class="item-options" id="groups-list-options"> 39 39 <img id="ajax-loader-groups" src="<?php echo $bp['groups']['image_base'] ?>/ajax-loader.gif" height="7" alt="Loading" style="display: none;" /> 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> 43 43 </div> 44 44 <ul id="groups-list" class="item-list"> … … 56 56 <?php 57 57 if ( $group->total_member_count == 1 ) 58 echo $group->total_member_count . __(' member' );58 echo $group->total_member_count . __(' member', 'buddypress'); 59 59 else 60 echo $group->total_member_count . __(' members' );60 echo $group->total_member_count . __(' members', 'buddypress'); 61 61 ?> 62 62 </span></div> … … 76 76 <?php else: ?> 77 77 <div class="widget-error"> 78 <?php _e('There are no groups to display.' ) ?>78 <?php _e('There are no groups to display.', 'buddypress') ?> 79 79 </div> 80 80 <?php endif; ?> … … 100 100 $max_groups = attribute_escape( $options['max_groups'] ); 101 101 ?> 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> 103 103 <input type="hidden" id="groups-widget-groups-list-submit" name="groups-widget-groups-list-submit" value="1" /> 104 104 <?php -
trunk/bp-messages.php
r385 r391 143 143 144 144 /* 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 ); 146 146 bp_core_add_nav_default( $bp['messages']['slug'], 'messages_screen_inbox', 'inbox' ); 147 147 … … 149 149 150 150 /* 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 ); 155 155 156 156 if ( $bp['current_component'] == $bp['messages']['slug'] ) { 157 157 if ( bp_is_home() ) { 158 $bp['bp_options_title'] = __('My Messages' );158 $bp['bp_options_title'] = __('My Messages', 'buddypress'); 159 159 } else { 160 160 $bp_options_avatar = bp_core_get_avatar( $bp['current_userid'], 1 ); … … 195 195 if ( $bp['action_variables'][0] == 'deactivate' ) { 196 196 if ( !$notice->deactivate() ) { 197 $bp['message'] = __('There was a problem deactivating that notice.' );197 $bp['message'] = __('There was a problem deactivating that notice.', 'buddypress'); 198 198 } else { 199 $bp['message'] = __('Notice deactivated.' );199 $bp['message'] = __('Notice deactivated.', 'buddypress'); 200 200 $bp['message_type'] = 'success'; 201 201 } 202 202 } else if ( $bp['action_variables'][0] == 'activate' ) { 203 203 if ( !$notice->activate() ) { 204 $bp['message'] = __('There was a problem activating that notice.' );204 $bp['message'] = __('There was a problem activating that notice.', 'buddypress'); 205 205 } else { 206 $bp['message'] = __('Notice activated.' );206 $bp['message'] = __('Notice activated.', 'buddypress'); 207 207 $bp['message_type'] = 'success'; 208 208 } 209 209 } else if ( $bp['action_variables'][0] == 'delete' ) { 210 210 if ( !$notice->delete() ) { 211 $bp['message'] = __('There was a problem deleting that notice.' );211 $bp['message'] = __('There was a problem deleting that notice.', 'buddypress'); 212 212 } else { 213 $bp['message'] = __('Notice deleted.' );213 $bp['message'] = __('Notice deleted.', 'buddypress'); 214 214 $bp['message_type'] = 'success'; 215 215 } … … 236 236 } else { 237 237 $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'), 239 239 'link' => $bp['loggedin_domain'] . $bp['messages']['slug'] . '/' 240 240 ); … … 260 260 // delete message 261 261 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'); 263 263 add_action( 'template_notices', 'bp_core_render_notice' ); 264 264 … … 266 266 bp_catch_uri( 'messages/index' ); 267 267 } else { 268 $bp['message'] = __('Message deleted.' );268 $bp['message'] = __('Message deleted.', 'buddypress'); 269 269 $bp['message_type'] = 'success'; 270 270 add_action( 'template_notices', 'bp_core_render_notice' ); … … 291 291 } else { 292 292 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'); 294 294 add_action( 'template_notices', 'bp_core_render_notice' ); 295 295 … … 297 297 bp_catch_uri( 'messages/index' ); 298 298 } else { 299 $bp['message'] = __('Messages deleted.' );299 $bp['message'] = __('Messages deleted.', 'buddypress'); 300 300 $bp['message_type'] = 'success'; 301 301 add_action( 'template_notices', 'bp_core_render_notice' ); … … 355 355 356 356 <div class="wrap"> 357 <h2><?php _e('Compose Message' ) ?></h2>357 <h2><?php _e('Compose Message', 'buddypress') ?></h2> 358 358 359 359 <?php … … 370 370 <p> 371 371 <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> 373 373 <div id="titlewrap"> 374 374 <input type="text" name="send_to" id="send_to" value="<?php echo $username; ?>" /> … … 380 380 <p> 381 381 <div id="titlediv"> 382 <h3><?php _e("Subject" ) ?></h3>382 <h3><?php _e("Subject", 'buddypress') ?></h3> 383 383 <div id="titlewrap"> 384 384 <input type="text" name="subject" id="subject" value="<?php echo $subject; ?>" /> … … 389 389 <p> 390 390 <div id="postdivrich" class="postarea"> 391 <h3><?php _e("Message" ) ?></h3>391 <h3><?php _e("Message", 'buddypress') ?></h3> 392 392 <div id="editorcontainer"> 393 393 <textarea name="content" id="message_content" rows="15" cols="40"><?php echo $content; ?></textarea> … … 397 397 398 398 <p class="submit"> 399 <input type="submit" value="<?php _e("Send" ) ?> »" name="send" id="send" style="font-weight: bold" />399 <input type="submit" value="<?php _e("Send", 'buddypress') ?> »" name="send" id="send" style="font-weight: bold" /> 400 400 </p> 401 401 </div> … … 410 410 411 411 function messages_inbox() { 412 messages_box( 'inbox', __('Inbox' ) );412 messages_box( 'inbox', __('Inbox', 'buddypress') ); 413 413 } 414 414 415 415 function messages_sentbox() { 416 messages_box( 'sentbox', __('Sent Messages' ) );416 messages_box( 'sentbox', __('Sent Messages', 'buddypress') ); 417 417 } 418 418 … … 520 520 <tr class="alternate"> 521 521 <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 . '.'; ?> 523 523 </td> 524 524 </tr> … … 552 552 if ( $recipients == '' ) { 553 553 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 ); 555 555 } 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')); 557 557 } 558 558 } else if ( $subject == '' || $content == '' ) { 559 559 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 ); 561 561 } 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')); 563 563 } 564 564 } else { … … 584 584 if ( !is_null( $pmessage->recipients ) ) { 585 585 if ( !$pmessage->send() ) { 586 $message = __('Message could not be sent, please try again.' );586 $message = __('Message could not be sent, please try again.', 'buddypress'); 587 587 $type = 'error'; 588 588 … … 597 597 messages_write_new(); 598 598 } else { 599 messages_box( 'inbox', __('Inbox' ), $message, $type );599 messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type ); 600 600 } 601 601 } else { 602 $message = __('Message sent successfully!' ) . ' <a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/view/' . $pmessage->thread_id . '">' . __('View Message') . '</a> »';602 $message = __('Message sent successfully!', 'buddypress') . ' <a href="' . $bp['loggedin_domain'] . $bp['messages']['slug'] . '/view/' . $pmessage->thread_id . '">' . __('View Message', 'buddypress') . '</a> »'; 603 603 $type = 'success'; 604 604 … … 615 615 messages_write_new(); 616 616 } else { 617 messages_box( 'inbox', __('Inbox' ), $message, $type );617 messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type ); 618 618 } 619 619 } … … 622 622 unset($_POST['send-notice']); 623 623 624 $message = __('Message could not be sent, please try again.' );624 $message = __('Message could not be sent, please try again.', 'buddypress'); 625 625 $type = 'error'; 626 626 … … 634 634 messages_write_new(); 635 635 } else { 636 messages_box( 'inbox', __('Inbox' ), $message, $type );636 messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type ); 637 637 } 638 638 } … … 652 652 unset($_POST['send-notice']); 653 653 654 $message = __('Notice could not be sent, please try again.' );654 $message = __('Notice could not be sent, please try again.', 'buddypress'); 655 655 $type = 'error'; 656 656 … … 659 659 messages_write_new(); 660 660 } else { 661 messages_box( 'inbox', __('Inbox' ), $message, $type );661 messages_box( 'inbox', __('Inbox', 'buddypress'), $message, $type ); 662 662 } 663 663 } else { … … 683 683 684 684 if ( is_array($thread_ids) ) { 685 $message = __('Messages deleted successfully!' );685 $message = __('Messages deleted successfully!', 'buddypress'); 686 686 687 687 for ( $i = 0; $i < count($thread_ids); $i++ ) { 688 688 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'); 690 690 $type = 'error'; 691 691 } 692 692 } 693 693 } else { 694 $message = __('Message deleted successfully!' );694 $message = __('Message deleted successfully!', 'buddypress'); 695 695 696 696 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'); 698 698 $type = 'error'; 699 699 } … … 721 721 if ( !$thread->has_access ) { 722 722 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' ); 724 724 } else { 725 725 if ( $thread->messages ) { ?> … … 733 733 <td> 734 734 <img src="<?php echo $bp['messages']['image_base'] ?>/email_open.gif" alt="Message" style="vertical-align: top;" /> 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) ?>. 737 737 </td> 738 738 </tr> … … 768 768 ?> 769 769 770 <h3><?php _e("Reply: " ) ?></h3>770 <h3><?php _e("Reply: ", 'buddypress') ?></h3> 771 771 </div> 772 772 <label for="reply"></label> … … 779 779 </p> 780 780 <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); ?>" /> 782 782 </div> 783 783 <?php if ( function_exists('wp_nonce_field') ) -
trunk/bp-messages/bp-messages-ajax.php
r304 r391 41 41 42 42 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'); 44 44 } else { 45 45 $thread_ids = explode( ',', $_POST['thread_ids'] ); … … 61 61 62 62 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'); 64 64 } else { 65 65 $thread_ids = explode( ',', $_POST['thread_ids'] ); … … 81 81 82 82 if ( !isset($_POST['thread_ids']) ) { 83 echo "-1|" . __('There was a problem deleting messages.' );83 echo "-1|" . __('There was a problem deleting messages.', 'buddypress'); 84 84 } else { 85 85 $thread_ids = explode( ',', $_POST['thread_ids'] ); … … 89 89 } 90 90 91 echo __('Messages deleted.' );91 echo __('Messages deleted.', 'buddypress'); 92 92 } 93 93 } … … 98 98 99 99 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'); 101 101 } else { 102 102 $notice_ids = get_usermeta( $userdata->ID, 'closed_notices' ); -
trunk/bp-messages/bp-messages-classes.php
r251 r391 264 264 function get_recipient_links($recipients) { 265 265 if ( count($recipients) >= 5 ) 266 return count($recipients) . __(' Recipients' );266 return count($recipients) . __(' Recipients', 'buddypress'); 267 267 268 268 for ( $i = 0; $i < count($recipients); $i++ ) { -
trunk/bp-messages/bp-messages-templatetags.php
r359 r391 216 216 <select name="message-type-select" id="message-type-select"> 217 217 <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> 221 221 </select> 222 <a href="#" id="mark_as_read"><?php _e('Mark as Read' ) ?></a> 223 <a href="#" id="mark_as_unread"><?php _e('Mark as Unread' ) ?></a> 224 <a href="#" id="delete_messages"><?php _e('Delete' ) ?></a> 222 <a href="#" id="mark_as_read"><?php _e('Mark as Read', 'buddypress') ?></a> 223 <a href="#" id="mark_as_unread"><?php _e('Mark as Unread', 'buddypress') ?></a> 224 <a href="#" id="delete_messages"><?php _e('Delete', 'buddypress') ?></a> 225 225 <?php 226 226 } … … 231 231 if ( $messages_template->thread->is_active ) { 232 232 echo "<strong>"; 233 _e('Currently Active' );233 _e('Currently Active', 'buddypress'); 234 234 echo "</strong>"; 235 235 } … … 272 272 273 273 if ( $messages_template->thread->is_active == "1" ) { 274 $text = __('Deactivate' );274 $text = __('Deactivate', 'buddypress'); 275 275 } else { 276 $text = __('Activate' );276 $text = __('Activate', 'buddypress'); 277 277 } 278 278 echo $text; -
trunk/bp-wire.php
r373 r391 59 59 60 60 /* 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'] ); 62 62 bp_core_add_nav_default( $bp['wire']['slug'], 'bp_wire_screen_latest', 'all-posts' ); 63 63 64 64 /* 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' ); 66 66 67 67 if ( $bp['current_component'] == $bp['wire']['slug'] ) { 68 68 if ( bp_is_home() ) { 69 $bp['bp_options_title'] = __('My Wire' );69 $bp['bp_options_title'] = __('My Wire', 'buddypress'); 70 70 } else { 71 71 $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 ); … … 91 91 92 92 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'); 94 94 $bp['message_type'] = 'success'; 95 95 … … 115 115 116 116 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'); 118 118 $bp['message_type'] = 'success'; 119 119 -
trunk/bp-wire/bp-wire-templatetags.php
r367 r391 122 122 123 123 if ( !$message ) 124 $empty_message = __("There are currently no wire posts." );124 $empty_message = __("There are currently no wire posts.", 'buddypress'); 125 125 126 126 if ( !$title ) 127 $title = __('Wire' );127 $title = __('Wire', 'buddypress'); 128 128 129 129 /* Pass them as globals, using the same name doesn't work. */ … … 228 228 global $bp; 229 229 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>'; 231 231 } 232 232 … … 248 248 if ( ( $wire_posts_template->wire_post->user_id == $bp['loggedin_userid'] ) || $bp['is_item_admin'] ) { 249 249 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>'; 251 251 } 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>'; 253 253 } 254 254 } -
trunk/bp-xprofile.php
r375 r391 70 70 id, group_id, parent_id, type, name, description, is_required, field_order, option_order, order_by, is_public, can_delete 71 71 ) VALUES ( 72 1, 1, 0, 'textbox', ' First Name', '', 1, 1, 0, '', 1, 072 1, 1, 0, 'textbox', '" . __( 'First Name', 'buddypress') . "', '', 1, 1, 0, '', 1, 0 73 73 );"; 74 74 … … 76 76 id, group_id, parent_id, type, name, description, is_required, field_order, option_order, order_by, is_public, can_delete 77 77 ) VALUES ( 78 2, 1, 0, 'textbox', ' Last Name', '', 1, 2, 0, '', 1, 078 2, 1, 0, 'textbox', '" . __( 'Last Name', 'buddypress') . "', '', 1, 2, 0, '', 1, 0 79 79 );"; 80 80 … … 138 138 139 139 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 › 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 › Avatar', 'buddypress'), __('Avatar', 'buddypress'), 1, basename(__FILE__), 'xprofile_avatar_admin' ); 142 142 143 143 $groups = BP_XProfile_Group::get_all(); … … 145 145 for ( $i=0; $i < count($groups); $i++ ) { 146 146 if ( $groups[$i]->fields ) { 147 add_submenu_page( basename(__FILE__), __('Profile' ) . ' › ' . $groups[$i]->name, $groups[$i]->name, 1, "xprofile_" . $groups[$i]->name, "xprofile_edit" );147 add_submenu_page( basename(__FILE__), __('Profile', 'buddypress') . ' › ' . $groups[$i]->name, $groups[$i]->name, 1, "xprofile_" . $groups[$i]->name, "xprofile_edit" ); 148 148 } 149 149 } … … 154 154 155 155 /* 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" ); 157 157 } 158 158 … … 175 175 176 176 /* 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'] ); 178 178 bp_core_add_nav_default( $bp['profile']['slug'], 'xprofile_screen_display_profile', 'public' ); 179 179 … … 181 181 182 182 /* 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' ); 186 186 187 187 if ( $bp['current_component'] == $bp['profile']['slug'] ) { 188 188 if ( bp_is_home() ) { 189 $bp['bp_options_title'] = __('My Profile' );189 $bp['bp_options_title'] = __('My Profile', 'buddypress'); 190 190 } else { 191 191 $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 ); … … 263 263 264 264 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>'; 266 266 } 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>'; 268 268 } 269 269 … … 277 277 return false; 278 278 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>'; 280 280 break; 281 281 } … … 309 309 <div class="wrap"> 310 310 311 <h2><?php echo $group->name ?> <?php _e("Information" ) ?></h2>311 <h2><?php echo $group->name ?> <?php _e("Information", 'buddypress') ?></h2> 312 312 313 313 <?php … … 329 329 330 330 // 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 ); 332 332 $errors[] = $field->message . "<br />"; 333 333 } else if ( !$field->is_required && ( $current_field == '' || is_null($current_field) ) ) { … … 357 357 358 358 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'); 360 360 } else { 361 361 $field->data->value = $profile_data->value; … … 370 370 371 371 $list_html .= '<p class="submit"> 372 <input type="submit" name="save" id="save" value="'.__('Save Changes »' ).'" />372 <input type="submit" name="save" id="save" value="'.__('Save Changes »', 'buddypress').'" /> 373 373 </p>'; 374 374 375 375 if ( $errors && isset($_POST['save']) ) { 376 376 $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'); 378 378 379 379 for ( $i = 0; $i < count($errors); $i++ ) { … … 382 382 } else if ( !$errors && isset($_POST['save'] ) ) { 383 383 $type = 'success'; 384 $message = __('Changes saved.' );384 $message = __('Changes saved.', 'buddypress'); 385 385 386 386 do_action( 'bp_xprofile_updated_profile', array( 'item_id' => $group->id, 'component_name' => 'profile', 'component_action' => 'updated_profile', 'is_private' => 0 ) ); … … 390 390 else { ?> 391 391 <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> 393 393 </div> 394 394 <?php … … 431 431 ?> 432 432 <div class="wrap"> 433 <h2><?php _e('Profile Settings' ); ?></h2>433 <h2><?php _e('Profile Settings', 'buddypress'); ?></h2> 434 434 <p>Member profile settings will appear here.</p> 435 435 </div> -
trunk/bp-xprofile/bp-xprofile-admin.php
r166 r391 32 32 <div class="wrap"> 33 33 34 <h2><?php _e("Profile Settings" ) ?></h2>34 <h2><?php _e("Profile Settings", 'buddypress') ?></h2> 35 35 <br /> 36 36 <p><?php _e('Your users will distinguish themselves through their profile page. 37 37 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> 41 41 42 42 <?php … … 147 147 148 148 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'); 150 150 $type = 'error'; 151 151 } else { 152 $message = __('The group was saved successfully.' );152 $message = __('The group was saved successfully.', 'buddypress'); 153 153 $type = 'success'; 154 154 } … … 177 177 178 178 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'); 180 180 $type = 'error'; 181 181 } else { 182 $message = __('The group was deleted successfully.' );182 $message = __('The group was deleted successfully.', 'buddypress'); 183 183 $type = 'success'; 184 184 } … … 211 211 212 212 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'); 214 214 $type = 'error'; 215 215 … … 217 217 xprofile_admin($message, $type); 218 218 } else { 219 $message = __('The field was saved successfully.' );219 $message = __('The field was saved successfully.', 'buddypress'); 220 220 $type = 'success'; 221 221 … … 243 243 244 244 if ( $type == 'field' ) { 245 $type = __('field' );246 } else { 247 $type = __('option' );245 $type = __('field', 'buddypress'); 246 } else { 247 $type = __('option', 'buddypress'); 248 248 } 249 249 … … 251 251 252 252 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); 254 254 $type = 'error'; 255 255 } else { 256 $message = sprintf( __('The %s was deleted successfully!' ), $type);256 $message = sprintf( __('The %s was deleted successfully!', 'buddypress'), $type); 257 257 $type = 'success'; 258 258 } -
trunk/bp-xprofile/bp-xprofile-classes.php
r375 r391 97 97 98 98 if ( $this->id == null ) { 99 $title = __('Add Group' );99 $title = __('Add Group', 'buddypress'); 100 100 $action = "admin.php?page=xprofile_settings&mode=add_group"; 101 101 } else { 102 $title = __('Edit Group' );102 $title = __('Edit Group', 'buddypress'); 103 103 $action = "admin.php?page=xprofile_settings&mode=edit_group&group_id=" . $this->id; 104 104 } … … 121 121 122 122 <div id="titlediv"> 123 <label for="group_name"><?php _e("Group Name" ) ?></label>123 <label for="group_name"><?php _e("Group Name", 'buddypress') ?></label> 124 124 <div> 125 125 <input type="text" name="group_name" id="group_name" value="<?php echo $this->name ?>" style="width:50%" /> … … 164 164 // Validate Form 165 165 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'); 167 167 return false; 168 168 } else { … … 621 621 ?> 622 622 <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> 624 624 <p>Order By: 625 625 … … 640 640 $default_name = '[' . $j . ']'; 641 641 ?> 642 <p><?php _e('Option' ) ?> <?php echo $j ?>:642 <p><?php _e('Option', 'buddypress') ?> <?php echo $j ?>: 643 643 <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 ?>" /> 644 644 <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 … … 654 654 ?> 655 655 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" /> 657 657 <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 658 658 <input type="hidden" name="<?php echo $type ?>_option_number" id="<?php echo $type ?>_option_number" value="2" /> … … 660 660 <?php } // end if ?> 661 661 <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> 663 663 </div> 664 664 … … 668 668 function render_admin_form( $message = '' ) { 669 669 if ( $this->id == null ) { 670 $title = __('Add Field' );670 $title = __('Add Field', 'buddypress'); 671 671 $action = "admin.php?page=xprofile_settings&group_id=" . $this->group_id . "&mode=add_field"; 672 672 } else { 673 $title = __('Edit Field' );673 $title = __('Edit Field', 'buddypress'); 674 674 $action = "admin.php?page=xprofile_settings&mode=edit_field&group_id=" . $this->group_id . "&field_id=" . $this->id; 675 675 $options = $this->get_children(); … … 695 695 <div id="poststuff"> 696 696 <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> 698 698 <div id="titlewrap"> 699 699 <input type="text" name="title" id="title" value="<?php echo $this->name ?>" style="width:50%" /> … … 702 702 703 703 <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> 705 705 <div id="titlewrap"> 706 706 <textarea name="description" id="description" rows="8" cols="60" style="border: none; width: 99%;"><?php echo $this->desc ?></textarea> … … 709 709 710 710 <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> 712 712 <select name="required" id="required" style="width: 30%"> 713 713 <option value="0"<?php if ( $this->is_required == '0' ) { ?> selected="selected"<?php } ?>>Not Required</option> … … 717 717 718 718 <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> 720 720 <select name="public" id="public" style="width: 30%"> 721 721 <option value="1"<?php if ( $this->is_public== '1' ) { ?> selected="selected"<?php } ?>>Viewable by everyone</option> … … 725 725 726 726 <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> 728 728 <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)" style="width: 30%"> 729 729 <option value="textbox"<?php if ( $this->type == 'textbox' ) {?> selected="selected"<?php } ?>>Text Box</option> … … 740 740 741 741 <p class="submit"> 742 <input type="submit" value="<?php _e("Save" ) ?> »" 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 <input type="submit" value="<?php _e("Save", 'buddypress') ?> »" 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> 744 744 </p> 745 745 … … 792 792 <form action="<?php echo $action ?>" method="post"> 793 793 794 <label for="title">* <?php _e("Field Title" ) ?></label>794 <label for="title">* <?php _e("Field Title", 'buddypress') ?></label> 795 795 <div> 796 796 <input type="text" name="title" id="title" value="<?php echo $field_data['Name']; ?>" style="width:50%" /> 797 797 </div> 798 798 <p></p> 799 <label for="description"><?php _e("Field Description" ) ?></label>799 <label for="description"><?php _e("Field Description", 'buddypress') ?></label> 800 800 <div> 801 801 <textarea name="description" id="description" rows="5" cols="60"><?php echo $field_data['Description']; ?></textarea> 802 802 </div> 803 803 <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> 805 805 <div> 806 806 <select name="required" id="required"> … … 810 810 </div> 811 811 <p></p> 812 <label for="fieldtype">* <?php _e("Field Type" ) ?></label>812 <label for="fieldtype">* <?php _e("Field Type", 'buddypress') ?></label> 813 813 <div> 814 814 <select name="fieldtype" id="fieldtype" onchange="show_options(this.value)"> … … 830 830 831 831 <p class="submit"> 832 <input type="submit" value="<?php _e("Add" ) ?> »" name="saveField" id="saveField<?php echo $counter;?>" class="button" />832 <input type="submit" value="<?php _e("Add", 'buddypress') ?> »" name="saveField" id="saveField<?php echo $counter;?>" class="button" /> 833 833 <input type="hidden" name="field_file" value="<?php echo $field_file_path; ?>"> 834 834 </p> … … 842 842 ?></table><?php 843 843 } else { 844 ?><p><?php _e('No prebuilt fields available at this time.' ) ?></p><?php844 ?><p><?php _e('No prebuilt fields available at this time.', 'buddypress') ?></p><?php 845 845 } 846 846 @closedir( $prebuilt_fields_dir ); … … 884 884 $author = wp_kses( trim( $author_name[1] ), $allowed_tags ); 885 885 } 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'), 887 887 wp_kses( trim( $author_name[1] ), $allowed_tags ) ); 888 888 } 889 889 } else { 890 $author = __('Anonymous' );890 $author = __('Anonymous', 'buddypress'); 891 891 } 892 892 … … 914 914 // Validate Form 915 915 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'); 917 917 return false; 918 918 } 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'); 920 920 return false; 921 921 } 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'); 923 923 return false; 924 924 } 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'); 926 926 return false; 927 927 } 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'); 929 929 return false; 930 930 } else { -
trunk/bp-xprofile/bp-xprofile-signup.php
r389 r391 17 17 <div id="extraFields"> 18 18 <div id="breaker"> 19 <h3><?php _e('Additional Information' ); ?></h3>19 <h3><?php _e('Additional Information', 'buddypress'); ?></h3> 20 20 <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> 22 22 </div> 23 23 <?php … … 43 43 ?> 44 44 <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> 47 47 </div> 48 48 <?php … … 96 96 97 97 if ( $active_signup == "none" ) { 98 _e( "Registration has been disabled." );98 _e( "Registration has been disabled." , 'buddypress'); 99 99 } else { 100 100 if ( $active_signup == 'all' || $active_signup == "blog" ) { … … 153 153 if ( !bp_core_check_avatar_upload($_FILES) ) { 154 154 $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'); 156 156 } 157 157 … … 159 159 $avatar_error = true; 160 160 $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); 162 162 } 163 163 164 164 if ( !bp_core_check_avatar_type($_FILES) ) { 165 165 $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'); 167 167 } 168 168 … … 170 170 if ( !$original = bp_core_handle_avatar_upload($_FILES) ) { 171 171 $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'); 173 173 } 174 174 175 175 if ( !bp_core_check_avatar_dimensions($original) ) { 176 176 $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 ); 178 178 } 179 179 … … 241 241 242 242 } else { 243 _e( "Registration has been disabled." );243 _e( "Registration has been disabled." , 'buddypress'); 244 244 } 245 245 } -
trunk/bp-xprofile/bp-xprofile-templatetags.php
r375 r391 341 341 342 342 if ( !$last_updated ) { 343 _e('Profile not recently updated' ) . '.';343 _e('Profile not recently updated', 'buddypress') . '.'; 344 344 } 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'); 346 346 } 347 347 }
Note: See TracChangeset
for help on using the changeset viewer.