Ticket #3313: bag-o-fun.patch
File bag-o-fun.patch, 71.7 KB (added by , 14 years ago) |
---|
-
bp-activity/bp-activity-notifications.php
46 46 // Set up and send the message 47 47 $ud = bp_core_get_core_userdata( $receiver_user_id ); 48 48 $to = $ud->user_email; 49 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );49 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 50 50 $subject = '[' . $sitename . '] ' . sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name ); 51 51 52 52 $message = sprintf( __( … … 92 92 // Set up and send the message 93 93 $ud = bp_core_get_core_userdata( $original_activity->user_id ); 94 94 $to = $ud->user_email; 95 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );95 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 96 96 $subject = '[' . $sitename . '] ' . sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name ); 97 97 98 98 $message = sprintf( __( … … 134 134 // Set up and send the message 135 135 $ud = bp_core_get_core_userdata( $parent_comment->user_id ); 136 136 $to = $ud->user_email; 137 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );137 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 138 138 $subject = '[' . $sitename . '] ' . sprintf( __( '%s replied to one of your comments', 'buddypress' ), $poster_name ); 139 139 140 140 $poster_name = stripslashes( $poster_name ); -
bp-blogs/bp-blogs-functions.php
291 291 if ( empty( $blog_id ) && isset( $wpdb->blogid ) ) 292 292 $blog_id = $wpdb->blogid; 293 293 else 294 $blog_id = BP_ROOT_BLOG;295 No newline at end of file 294 $blog_id = bp_get_root_blog_id(); 295 No newline at end of file 296 296 297 297 if ( empty( $role ) ) { -
bp-blogs/bp-blogs-widgets.php
$key = $wpdb->get_blog_prefix( $blog_id ). 'capabilities';
8 8 function bp_blogs_register_widgets() { 9 9 global $wpdb, $bp; 10 10 11 if ( bp_is_active( 'activity' ) && (int)$wpdb->blogid == BP_ROOT_BLOG)12 No newline at end of file 11 if ( bp_is_active( 'activity' ) && (int)$wpdb->blogid == bp_get_root_blog_id() ) 12 No newline at end of file 13 13 add_action('widgets_init', create_function('', 'return register_widget("BP_Blogs_Recent_Posts_Widget");') ); 14 14 } -
bp-core/admin/bp-core-update.php
add_action( 'bp_register_widgets', 'bp_blogs_register_widgets' );
776 776 if ( isset( $_POST['bp_components']['blogs'] ) ) { 777 777 $active_components['blogs'] = 1; 778 778 779 // Make sure that the pages are created on the BP_ROOT_BLOG, no matter which Dashboard the setup is being run on780 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )781 switch_to_blog( BP_ROOT_BLOG);779 // Make sure that the pages are created on the bp_get_root_blog_id(), no matter which Dashboard the setup is being run on 780 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 781 switch_to_blog( bp_get_root_blog_id() ); 782 782 783 783 // Move bp-pages data from the blog options table to site options 784 784 $existing_pages = bp_get_option( 'bp-pages' ); … … 788 788 789 789 bp_update_option( 'bp-pages', $existing_pages ); 790 790 791 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )791 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 792 792 restore_current_blog(); 793 793 794 794 bp_core_install( $active_components ); … … 830 830 if ( isset( $_POST['submit'] ) && isset( $_POST['bp_pages'] ) ) { 831 831 check_admin_referer( 'bpwizard_pages' ); 832 832 833 // Make sure that the pages are created on the BP_ROOT_BLOG, no matter which Dashboard the setup is being run on834 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )835 switch_to_blog( BP_ROOT_BLOG);833 // Make sure that the pages are created on the bp_get_root_blog_id(), no matter which Dashboard the setup is being run on 834 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 835 switch_to_blog( bp_get_root_blog_id() ); 836 836 837 837 // Delete any existing pages 838 838 $existing_pages = bp_core_update_get_page_meta( 'bp-pages' ); … … 843 843 $blog_pages = $this->setup_pages( (array)$_POST['bp_pages'] ); 844 844 bp_update_option( 'bp-pages', $blog_pages ); 845 845 846 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != BP_ROOT_BLOG) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) )846 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 847 847 restore_current_blog(); 848 848 849 849 return true; … … 957 957 if ( isset( $_POST['submit'] ) && isset( $_POST['theme'] ) ) { 958 958 check_admin_referer( 'bpwizard_theme' ); 959 959 960 if ( is_multisite() && BP_ROOT_BLOG!= get_current_blog_id() )961 switch_to_blog( BP_ROOT_BLOG);960 if ( is_multisite() && bp_get_root_blog_id() != get_current_blog_id() ) 961 switch_to_blog( bp_get_root_blog_id() ); 962 962 963 963 switch ( $_POST['theme'] ) { 964 964 -
bp-core/bp-core-adminbar.php
56 56 // Create the root blog menu 57 57 $wp_admin_bar->add_menu( array( 58 58 'id' => 'bp-root-blog', 59 'title' => get_blog_option( BP_ROOT_BLOG, 'blogname' ),59 'title' => get_blog_option( bp_get_root_blog_id(), 'blogname' ), 60 60 'href' => bp_get_root_domain() 61 61 ) ); 62 62 … … 71 71 'id' => 'dashboard', 72 72 'parent' => 'bp-root-blog', 73 73 'title' => __( 'Admin Dashboard', 'buddypress' ), 74 'href' => get_admin_url( BP_ROOT_BLOG)75 No newline at end of file 74 'href' => get_admin_url( bp_get_root_blog_id() ) 75 No newline at end of file 76 76 ) ); 77 77 -
bp-core/bp-core-avatars.php
// Add network admin link
641 641 $basedir = $upload_dir['basedir']; 642 642 643 643 // If multisite, and current blog does not match root blog, make adjustments 644 if ( is_multisite() && BP_ROOT_BLOG!= get_current_blog_id() )645 $basedir = get_blog_option( BP_ROOT_BLOG, 'upload_path' );644 if ( is_multisite() && bp_get_root_blog_id() != get_current_blog_id() ) 645 $basedir = get_blog_option( bp_get_root_blog_id(), 'upload_path' ); 646 646 } 647 647 648 648 return apply_filters( 'bp_core_avatar_upload_path', $basedir ); … … 668 668 $baseurl = $upload_dir['baseurl']; 669 669 670 670 // If multisite, and current blog does not match root blog, make adjustments 671 if ( is_multisite() && BP_ROOT_BLOG!= get_current_blog_id() )672 $baseurl = trailingslashit( get_blog_option( BP_ROOT_BLOG, 'home' ) ) . get_blog_option( BP_ROOT_BLOG, 'upload_path' );673 No newline at end of file 671 if ( is_multisite() && bp_get_root_blog_id() != get_current_blog_id() ) 672 $baseurl = trailingslashit( get_blog_option( bp_get_root_blog_id(), 'home' ) ) . get_blog_option( bp_get_root_blog_id(), 'upload_path' ); 673 No newline at end of file 674 674 } 675 675 -
bp-core/bp-core-buddybar.php
return apply_filters( 'bp_core_avatar_url', $baseurl );
200 200 'user_has_access' => $user_has_access, 201 201 'screen_function' => &$screen_function 202 202 ); 203 204 /** 205 * The last step is to hook the screen function for the added subnav item. But this only 206 * needs to be done if this subnav item is the current view, and the user has access to the 207 * subnav item. We figure out whether we're currently viewing this subnav by checking the 208 * following two conditions: 209 * (1) Either: 210 * (a) the parent slug matches the current_component, or 211 * (b) the parent slug matches the current_item 212 * (2) And either: 213 * (a) the current_action matches $slug, or 214 * (b) there is no current_action (ie, this is the default subnav for the parent nav) 215 * and this subnav item is the default for the parent item (which we check by 216 * comparing this subnav item's screen function with the screen function of the 217 * parent nav item in $bp->bp_nav). This condition only arises when viewing a 218 * user, since groups should always have an action set. 219 */ 220 221 // If we *don't* meet condition (1), return 222 if ( $bp->current_component != $parent_slug && $bp->current_item != $parent_slug ) 223 return; 224 225 // If we *do* meet condition (2), then the added subnav item is currently being requested 226 if ( ( !empty( $bp->current_action ) && $slug == $bp->current_action ) || ( bp_is_user() && empty( $bp->current_action ) && $screen_function == $bp->bp_nav[$parent_slug]['screen_function'] ) ) { 227 228 // Before hooking the screen function, check user access 229 if ( $user_has_access ) { 230 if ( !is_object( $screen_function[0] ) ) 231 add_action( 'bp_screens', $screen_function ); 232 else 233 add_action( 'bp_screens', array( &$screen_function[0], $screen_function[1] ) ); 234 } else { 235 // When the content is off-limits, we handle the situation differently 236 // depending on whether the current user is logged in 237 if ( is_user_logged_in() ) { 238 // Off-limits to this user. Throw an error and redirect to the displayed user's domain 239 bp_core_no_access( array( 240 'message' => __( 'You do not have access to this page.', 'buddypress' ), 241 'root' => bp_displayed_user_domain(), 242 'redirect' => false 243 ) ); 244 } else { 245 // Not logged in. Allow the user to log in, and attempt to redirect 246 bp_core_no_access(); 247 } 248 } 203 204 // Look for current component 205 if ( ( $bp->current_action == $slug && $bp->current_component == $parent_slug ) && $user_has_access ) { 206 if ( !is_object( $screen_function[0] ) ) 207 add_action( 'bp_screens', $screen_function ); 208 else 209 add_action( 'bp_screens', array( &$screen_function[0], $screen_function[1] ) ); 210 211 // Look for current item 212 } elseif ( ( $bp->current_action == $slug && $bp->current_item == $parent_slug ) && $user_has_access ) { 213 if ( !is_object( $screen_function[0] ) ) 214 add_action( 'bp_screens', $screen_function ); 215 else 216 add_action( 'bp_screens', array( &$screen_function[0], $screen_function[1] ) ); 249 217 } 250 218 } 251 219 … … 378 346 function bp_adminbar_logo() { 379 347 global $bp; 380 348 381 echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '</a>';382 No newline at end of file 349 echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . '</a>'; 350 No newline at end of file 383 351 } 384 352 -
bp-core/bp-core-catchuri.php
// **** "Log In" and "Sign Up" links (Visible when not logged in) ********
36 36 // Only catch URI's on the root blog if we are not running 37 37 // on multiple blogs 38 38 if ( !defined( 'BP_ENABLE_MULTIBLOG' ) && is_multisite() ) { 39 if ( BP_ROOT_BLOG!= (int) $wpdb->blogid )39 if ( bp_get_root_blog_id() != (int) $wpdb->blogid ) 40 40 return false; 41 41 } 42 42 … … 66 66 if ( empty( $bp_uri[$key] ) ) unset( $bp_uri[$key] ); 67 67 68 68 // Running off blog other than root 69 if ( is_multisite() && !is_subdomain_install() && ( defined( 'BP_ENABLE_MULTIBLOG' ) || 1 != BP_ROOT_BLOG) ) {70 No newline at end of file 69 if ( is_multisite() && !is_subdomain_install() && ( defined( 'BP_ENABLE_MULTIBLOG' ) || 1 != bp_get_root_blog_id() ) ) { 70 No newline at end of file 71 71 72 72 // Any subdirectory names must be removed from $bp_uri. -
bp-core/bp-core-cssjs.php
// This includes two cases: (1) when WP is installed in a subdirectory,
34 34 function bp_core_confirmation_js() { 35 35 global $wpdb; 36 36 37 if ( is_multisite() && $wpdb->blogid != BP_ROOT_BLOG)37 if ( is_multisite() && $wpdb->blogid != bp_get_root_blog_id() ) 38 38 return false; 39 39 40 40 if ( !wp_script_is( 'jquery' ) ) -
bp-core/bp-core-filters.php
35 35 * @return The blog name for the root blog 36 36 */ 37 37 function bp_core_email_from_name_filter() { 38 return apply_filters( 'bp_core_email_from_name_filter', wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES ) );38 return apply_filters( 'bp_core_email_from_name_filter', wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ) ); 39 39 } 40 40 add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' ); 41 41 … … 71 71 if ( !is_super_admin() ) 72 72 return $themes; 73 73 74 if ( $wpdb->blogid == BP_ROOT_BLOG) {74 if ( $wpdb->blogid == bp_get_root_blog_id() ) { 75 75 $themes['bp-default'] = 1; 76 76 } 77 77 … … 126 126 function bp_core_login_redirect( $redirect_to ) { 127 127 global $bp, $wpdb; 128 128 129 if ( is_multisite() && $wpdb->blogid != BP_ROOT_BLOG)130 No newline at end of file 129 if ( is_multisite() && $wpdb->blogid != bp_get_root_blog_id() ) 130 No newline at end of file 131 131 return $redirect_to; 132 132 -
bp-core/bp-core-functions.php
if ( isset( $_REQUEST['redirect_to'] ) && ( !empty( $_REQUEST['redirect_to'] ) || strpos( $_REQUEST['redirect_to'], 'wp-admin' ) ) )
11 11 * @package BuddyPress 12 12 * @since 1.3 13 13 * 14 * @uses bp_get_ option_blog_id()14 * @uses bp_get_root_blog_id() 15 15 * @param str $option_name The option to be retrieved 16 16 * @param str $default Optional. Default value to be returned if the option isn't set 17 17 * @return mixed The value for the option 18 18 */ 19 19 function bp_get_option( $option_name, $default = '' ) { 20 $value = get_blog_option( bp_get_ option_blog_id( $option_name), $option_name, $default );20 $value = get_blog_option( bp_get_root_blog_id(), $option_name, $default ); 21 21 22 22 return apply_filters( 'bp_get_option', $value ); 23 23 } … … 31 31 * @package BuddyPress 32 32 * @since 1.3 33 33 * 34 * @uses bp_get_ option_blog_id()34 * @uses bp_get_root_blog_id() 35 35 * @param str $option_name The option key to be set 36 36 * @param str $value The value to be set 37 37 */ 38 38 function bp_update_option( $option_name, $value ) { 39 // update_blog_option() does not return anything on success/failure, so neither can we 40 update_blog_option( bp_get_option_blog_id( $option_name ), $option_name, $value ); 39 update_blog_option( bp_get_root_blog_id(), $option_name, $value ); 41 40 } 42 41 43 42 /** … … 49 48 * @package BuddyPress 50 49 * @since 1.3 51 50 * 52 * @uses bp_get_ option_blog_id()51 * @uses bp_get_root_blog_id() 53 52 * @param str $option_name The option key to be set 54 53 */ 55 54 function bp_delete_option( $option_name ) { 56 // update_blog_option() does not return anything on success/failure, so neither can we 57 delete_blog_option( bp_get_option_blog_id( $option_name ), $option_name ); 55 delete_blog_option( bp_get_root_blog_id(), $option_name ); 58 56 } 59 57 60 58 /** 61 * Retrieve the filterable blog_id of the blog where the option is question is saved62 *63 * Since BP 1.3, BuddyPress has stored all of its settings in blog options tables, as opposed to64 * sitemeta. This makes it easier for non-standard setups (like BP_ENABLE_MULTIBLOG and65 * multinetwork BP) to save and access options in a consistent and logical way.66 *67 * By default, nearly all settings are stored in the options table of BP_ROOT_BLOG. The one68 * exception is when BP_ENABLE_MULTIBLOG is enabled. In this case, bp-pages - the list of pages that69 * are associated with BP top-level components - must be specific to each blog in the network. If70 * you are building a plugin that requires an option (either a BP-native option, or your own custom71 * option) to be specific to each blog in a network, filter 'bp_blog_specific_options' and add your72 * option's name. This will allow you to use bp_get_option() and bp_update_option() seamlessly.73 *74 * @package BuddyPress75 * @since 1.376 *77 * @see bp_get_option()78 * @see bp_update_option()79 * @uses apply_filters() Filter bp_get_option_blog_id to change this setting80 * @return int $blog_id81 */82 function bp_get_option_blog_id( $option_name ) {83 $blog_specific_options = apply_filters( 'bp_blog_specific_options', array(84 'bp-pages'85 ) );86 87 if ( in_array( $option_name, $blog_specific_options ) ) {88 if ( defined( 'BP_ENABLE_MULTIBLOG' ) && BP_ENABLE_MULTIBLOG ) {89 $blog_id = get_current_blog_id();90 } else {91 $blog_id = BP_ROOT_BLOG;92 }93 } else {94 $blog_id = BP_ROOT_BLOG;95 }96 97 return apply_filters( 'bp_get_option_blog_id', $blog_id );98 }99 100 /**101 59 * Allow filtering of database prefix. Intended for use in multinetwork installations. 102 60 * 103 61 * @global object $wpdb WordPress database object … … 125 83 if ( !isset( $page_ids['members'] ) && $ms_page_ids = get_site_option( 'bp-pages' ) ) { 126 84 $is_enable_multiblog = is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) && BP_ENABLE_MULTIBLOG ? true : false; 127 85 128 $page_blog_id = $is_enable_multiblog ? get_current_blog_id() : BP_ROOT_BLOG;86 $page_blog_id = $is_enable_multiblog ? get_current_blog_id() : bp_get_root_blog_id(); 129 87 130 88 if ( isset( $ms_page_ids[$page_blog_id] ) ) { 131 89 $page_ids = $ms_page_ids[$page_blog_id]; … … 141 99 * Stores BP pages in the meta table, depending on setup 142 100 * 143 101 * bp-pages data is stored in site_options (falls back to options on non-MS), in an array keyed by 144 * blog_id. This allows you to change your BP_ROOT_BLOGand go through the setup process again.102 * blog_id. This allows you to change your bp_get_root_blog_id() and go through the setup process again. 145 103 * 146 104 * @package BuddyPress Core 147 105 * @since 1.3 … … 169 127 // Get pages and IDs 170 128 if ( $page_ids = bp_core_get_page_meta() ) { 171 129 172 $posts_table_name = is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ? $wpdb->get_blog_prefix( BP_ROOT_BLOG) . 'posts' : $wpdb->posts;130 $posts_table_name = is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ? $wpdb->get_blog_prefix( bp_get_root_blog_id() ) . 'posts' : $wpdb->posts; 173 131 $page_ids_sql = implode( ',', (array)$page_ids ); 174 132 $page_names = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_name, post_parent, post_title FROM {$posts_table_name} WHERE ID IN ({$page_ids_sql}) AND post_status = 'publish' " ) ); 175 133 … … 512 470 function bp_core_get_root_domain() { 513 471 global $wpdb; 514 472 515 if ( defined( 'BP_ENABLE_MULTIBLOG' ) ) 516 $domain = get_home_url( $wpdb->blogid ); 517 else 518 $domain = get_home_url( BP_ROOT_BLOG ); 473 $domain = get_home_url( bp_get_root_blog_id() ); 519 474 520 475 return apply_filters( 'bp_core_get_root_domain', $domain ); 521 476 } … … 1096 1051 } 1097 1052 1098 1053 /** 1099 * Is this BP_ROOT_BLOG?1054 * Is this the root blog ID? 1100 1055 * 1101 1056 * @package BuddyPress 1102 1057 * @since 1.3 1103 1058 * 1104 1059 * @param int $blog_id Optional. Defaults to the current blog id. 1105 * @return bool $is_root_blog Returns true if this is BP_ROOT_BLOG.1060 * @return bool $is_root_blog Returns true if this is bp_get_root_blog_id(). 1106 1061 */ 1107 function bp_is_root_blog( $blog_id = false ) { 1108 $is_root_blog = true; 1062 function bp_is_root_blog( $blog_id = 0 ) { 1063 1064 // Assume false 1065 $is_root_blog = false; 1109 1066 1110 if ( !$blog_id ) 1067 // Use current blog if no ID is passed 1068 if ( empty( $blog_id ) ) 1111 1069 $blog_id = get_current_blog_id(); 1112 1070 1113 if ( $blog_id != BP_ROOT_BLOG ) 1114 $is_root_blog = false; 1071 // Compare to root blog ID 1072 if ( $blog_id == bp_get_root_blog_id() ) 1073 $is_root_blog = true; 1115 1074 1116 return apply_filters( 'bp_is_root_blog', $is_root_blog );1075 return apply_filters( 'bp_is_root_blog', (bool) $is_root_blog ); 1117 1076 } 1118 1077 1119 1078 /** 1079 * Is this bp_get_root_blog_id()? 1080 * 1081 * @package BuddyPress 1082 * @since 1.3 1083 * 1084 * @param int $blog_id Optional. Defaults to the current blog id. 1085 * @return bool $is_root_blog Returns true if this is bp_get_root_blog_id(). 1086 */ 1087 function bp_get_root_blog_id( $blog_id = false ) { 1088 1089 // Define on which blog ID BuddyPress should run 1090 if ( !defined( 'BP_ROOT_BLOG' ) ) { 1091 1092 // Root blog is the main site on this network 1093 if ( is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ) { 1094 $current_site = get_current_site(); 1095 $root_blog_id = $current_site->blog_id; 1096 1097 // Root blog is every site on this network 1098 } elseif ( is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) ) { 1099 $root_blog_id = get_current_blog_id(); 1100 1101 // Root blog is the only blog on this network 1102 } elseif( !is_multisite() ) { 1103 $root_blog_id = 1; 1104 } 1105 1106 define( 'BP_ROOT_BLOG', $root_blog_id ); 1107 1108 // Root blog is defined 1109 } else { 1110 $root_blog_id = BP_ROOT_BLOG; 1111 } 1112 1113 return apply_filters( 'bp_get_root_blog_id', (int) $root_blog_id ); 1114 } 1115 1116 /** 1120 1117 * Get the meta_key for a given piece of user metadata 1121 1118 * 1122 1119 * BuddyPress stores a number of pieces of userdata in the WordPress central usermeta table. In -
bp-core/bp-core-template.php
168 168 // Get GMT offset from root blog 169 169 $root_blog_offset = false; 170 170 if ( $localize_time ) 171 $root_blog_offset = get_blog_option( BP_ROOT_BLOG, 'gmt_offset' );172 No newline at end of file 171 $root_blog_offset = get_blog_option( bp_get_root_blog_id(), 'gmt_offset' ); 172 No newline at end of file 173 173 174 174 // Calculate offset time -
bp-core/bp-core-wpabstraction.php
$time_offset = $time + ( $root_blog_offset * 3600 );
32 32 33 33 if ( !function_exists( 'switch_to_blog' ) ) { 34 34 function switch_to_blog() { 35 return 1;35 return bp_get_root_blog_id(); 36 36 } 37 37 } 38 38 39 39 if ( !function_exists( 'restore_current_blog' ) ) { 40 40 function restore_current_blog() { 41 return 1;42 No newline at end of file 41 return bp_get_root_blog_id(); 42 No newline at end of file 43 43 } 44 44 } -
bp-forums/bp-forums-admin.php
189 189 $file .= "\n" . '$bb->custom_user_table = \'' . $wpdb->users . '\';'; 190 190 $file .= "\n" . '$bb->custom_user_meta_table = \'' . $wpdb->usermeta . '\';'; 191 191 $file .= "\n\n" . '$bb->uri = \'' . BP_PLUGIN_URL . '/bp-forums/bbpress/\';'; 192 $file .= "\n" . '$bb->name = \'' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';';192 $file .= "\n" . '$bb->name = \'' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . ' ' . __( 'Forums', 'buddypress' ) . '\';'; 193 193 194 194 if ( is_multisite() ) 195 $file .= "\n" . '$bb->wordpress_mu_primary_blog_id = ' . BP_ROOT_BLOG. ';';195 $file .= "\n" . '$bb->wordpress_mu_primary_blog_id = ' . bp_get_root_blog_id() . ';'; 196 196 197 197 if ( defined( 'AUTH_SALT' ) ) 198 198 $file .= "\n\n" . 'define(\'BB_AUTH_SALT\', \'' . addslashes( AUTH_SALT ) . '\');'; -
bp-forums/bp-forums-bbpress-sa.php
83 83 84 84 // Set a site id if there isn't one already 85 85 if ( !isset( $bb->site_id ) ) 86 $bb->site_id = BP_ROOT_BLOG;87 No newline at end of file 86 $bb->site_id = bp_get_root_blog_id(); 87 No newline at end of file 88 88 89 89 // Check if the tables are installed, if not, install them -
bp-friends/bp-friends-notifications.php
if ( !$tables_installed = (boolean) $bbdb->get_results( 'DESCRIBE `' . $bbdb->forums . '`;', ARRAY_A ) ) {
18 18 19 19 // Set up and send the message 20 20 $to = $ud->user_email; 21 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );21 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 22 22 $subject = '[' . $sitename . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name ); 23 23 24 24 $message = sprintf( __( … … 60 60 61 61 // Set up and send the message 62 62 $to = $ud->user_email; 63 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );64 No newline at end of file 63 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 64 No newline at end of file 65 65 $subject = '[' . $sitename . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name ); 66 66 -
bp-groups/bp-groups-notifications.php
$message = sprintf( __(
4 4 global $bp; 5 5 6 6 $group = new BP_Groups_Group( $group_id ); 7 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );7 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 8 8 $subject = '[' . $sitename . '] ' . __( 'Group Details Updated', 'buddypress' ); 9 9 10 10 $user_ids = BP_Groups_Member::get_group_member_ids( $group->id ); … … 111 111 112 112 // Set up and send the message 113 113 $to = $ud->user_email; 114 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );114 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 115 115 116 116 if ( $accepted ) { 117 117 $subject = '[' . $sitename . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), $group->name ); … … 171 171 172 172 // Set up and send the message 173 173 $to = $ud->user_email; 174 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );174 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 175 175 $subject = '[' . $sitename . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), $group->name ); 176 176 177 177 $message = sprintf( __( … … 221 221 222 222 // Set up and send the message 223 223 $to = $invited_ud->user_email; 224 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );224 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 225 225 $subject = '[' . $sitename . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), $group->name ); 226 226 227 227 $message = sprintf( __( … … 283 283 // Set up and send the message 284 284 $ud = bp_core_get_core_userdata( $receiver_user_id ); 285 285 $to = $ud->user_email; 286 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );286 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 287 287 $subject = '[' . $sitename . '] ' . sprintf( __( '%1$s mentioned you in the group "%2$s"', 'buddypress' ), $poster_name, $group->name ); 288 288 289 289 $message = sprintf( __( -
bp-languages/buddypress.pot
4 4 msgstr "" 5 5 "Project-Id-Version: BuddyPress \n" 6 6 "Report-Msgid-Bugs-To: wp-polyglots@lists.automattic.com\n" 7 "POT-Creation-Date: 2011-07-0 4 15:30:55+00:00\n"7 "POT-Creation-Date: 2011-07-02 11:30:54+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" … … 30 30 msgstr "" 31 31 32 32 #: bp-blogs/bp-blogs-loader.php:147 bp-blogs/bp-blogs-loader.php:168 33 #: bp-blogs/bp-blogs-buddybar.php:23 bp-core/bp-core-adminbar.php:10333 #: bp-blogs/bp-blogs-buddybar.php:23 34 34 msgid "My Sites" 35 35 msgstr "" 36 36 … … 46 46 msgid "New post comment posted" 47 47 msgstr "" 48 48 49 #: bp-blogs/bp-blogs-buddybar.php:35 bp-core/ bp-core-adminbar.php:11550 #: bp-core/ admin/bp-core-admin.php:28 bp-core/bp-core-buddybar.php:45749 #: bp-blogs/bp-blogs-buddybar.php:35 bp-core/admin/bp-core-admin.php:28 50 #: bp-core/bp-core-buddybar.php:425 51 51 msgid "Dashboard" 52 52 msgstr "" 53 53 54 #: bp-blogs/bp-blogs-buddybar.php:36 bp-core/bp-core-adminbar.php:118 55 #: bp-core/bp-core-buddybar.php:461 54 #: bp-blogs/bp-blogs-buddybar.php:36 bp-core/bp-core-buddybar.php:429 56 55 msgid "New Post" 57 56 msgstr "" 58 57 59 #: bp-blogs/bp-blogs-buddybar.php:37 bp-core/bp-core-buddybar.php:4 6258 #: bp-blogs/bp-blogs-buddybar.php:37 bp-core/bp-core-buddybar.php:430 60 59 msgid "Manage Posts" 61 60 msgstr "" 62 61 63 #: bp-blogs/bp-blogs-buddybar.php:38 bp-core/bp-core-adminbar.php:119 64 #: bp-core/bp-core-buddybar.php:463 62 #: bp-blogs/bp-blogs-buddybar.php:38 bp-core/bp-core-buddybar.php:431 65 63 msgid "Manage Comments" 66 64 msgstr "" 67 65 … … 147 145 #: bp-blogs/bp-blogs-template.php:467 bp-core/admin/bp-core-admin.php:89 148 146 #: bp-core/admin/bp-core-admin.php:99 bp-core/admin/bp-core-admin.php:107 149 147 #: bp-core/admin/bp-core-admin.php:115 bp-core/admin/bp-core-admin.php:125 150 #: bp-core/admin/bp-core-admin.php:137 bp-friends/bp-friends-screens.php:69 151 #: bp-groups/bp-groups-screens.php:822 bp-messages/bp-messages-screens.php:148 148 #: bp-core/admin/bp-core-admin.php:137 bp-core/admin/bp-core-admin.php:149 149 #: bp-friends/bp-friends-screens.php:69 bp-groups/bp-groups-screens.php:822 150 #: bp-messages/bp-messages-screens.php:148 152 151 #: bp-themes/bp-default/registration/register.php:205 153 152 #: bp-themes/bp-default/groups/single/admin.php:26 154 153 #: bp-activity/bp-activity-screens.php:170 … … 158 157 #: bp-blogs/bp-blogs-template.php:471 bp-core/admin/bp-core-admin.php:90 159 158 #: bp-core/admin/bp-core-admin.php:100 bp-core/admin/bp-core-admin.php:108 160 159 #: bp-core/admin/bp-core-admin.php:116 bp-core/admin/bp-core-admin.php:126 161 #: bp-core/admin/bp-core-admin.php:138 bp-friends/bp-friends-screens.php:70 162 #: bp-groups/bp-groups-screens.php:823 bp-messages/bp-messages-screens.php:149 160 #: bp-core/admin/bp-core-admin.php:138 bp-core/admin/bp-core-admin.php:150 161 #: bp-friends/bp-friends-screens.php:70 bp-groups/bp-groups-screens.php:823 162 #: bp-messages/bp-messages-screens.php:149 163 163 #: bp-themes/bp-default/registration/register.php:206 164 164 #: bp-themes/bp-default/groups/single/admin.php:27 165 165 #: bp-activity/bp-activity-screens.php:171 … … 174 174 msgid "<a href=\"%1$s\">%2$s</a> is your new site. <a href=\"%3$s\">Login</a> as \"%4$s\" using your existing password." 175 175 msgstr "" 176 176 177 #: bp-blogs/bp-blogs-template.php:538 bp-core/bp-core-filters.php:31 1177 #: bp-blogs/bp-blogs-template.php:538 bp-core/bp-core-filters.php:312 178 178 #: bp-themes/bp-default/blogs/index.php:21 179 179 #: bp-themes/bp-default/blogs/create.php:21 180 180 msgid "Create a Site" … … 200 200 msgstr "" 201 201 202 202 #: bp-blogs/bp-blogs-template.php:601 bp-blogs/bp-blogs-template.php:602 203 #: bp-core/bp-core-adminbar.php:122204 203 msgid "Visit Site" 205 204 msgstr "" 206 205 207 #: bp-blogs/bp-blogs-functions.php:1 10206 #: bp-blogs/bp-blogs-functions.php:103 208 207 msgid "%s created the site %s" 209 208 msgstr "" 210 209 211 #: bp-blogs/bp-blogs-functions.php:1 74210 #: bp-blogs/bp-blogs-functions.php:167 212 211 msgid "%1$s wrote a new post, %2$s, on the site %3$s" 213 212 msgstr "" 214 213 215 #: bp-blogs/bp-blogs-functions.php:1 76214 #: bp-blogs/bp-blogs-functions.php:169 216 215 msgid "%1$s wrote a new post, %2$s" 217 216 msgstr "" 218 217 219 #: bp-blogs/bp-blogs-functions.php:2 53218 #: bp-blogs/bp-blogs-functions.php:246 220 219 msgid "%1$s commented on the post, %2$s, on the site %3$s" 221 220 msgstr "" 222 221 223 #: bp-blogs/bp-blogs-functions.php:2 55222 #: bp-blogs/bp-blogs-functions.php:248 224 223 msgid "%1$s commented on the post, %2$s" 225 224 msgstr "" 226 225 … … 242 241 243 242 #: bp-core/bp-core-widgets.php:21 bp-core/bp-core-widgets.php:110 244 243 #: bp-core/admin/bp-core-update.php:427 bp-core/bp-core-template.php:242 245 #: bp- groups/bp-groups-template.php:1253 bp-members/bp-members-loader.php:26244 #: bp-members/bp-members-loader.php:26 246 245 #: bp-themes/bp-default/groups/single/admin.php:229 247 246 msgid "Members" 248 247 msgstr "" … … 322 321 msgid "There were no members found, please try another filter." 323 322 msgstr "" 324 323 325 #: bp-core/bp-core-adminbar.php:73326 msgid "Admin Dashboard"327 msgstr ""328 329 #: bp-core/bp-core-adminbar.php:84330 msgid "Network Dashboard"331 msgstr ""332 333 #: bp-core/bp-core-adminbar.php:110334 msgid "Blavatar"335 msgstr ""336 337 #: bp-core/bp-core-adminbar.php:140338 msgid "Comments %s"339 msgstr ""340 341 #: bp-core/bp-core-adminbar.php:154342 msgid "Appearance"343 msgstr ""344 345 #: bp-core/bp-core-adminbar.php:160346 msgid "Themes"347 msgstr ""348 349 #: bp-core/bp-core-adminbar.php:163350 msgid "Widgets"351 msgstr ""352 353 #: bp-core/bp-core-adminbar.php:166354 msgid "Menus"355 msgstr ""356 357 #: bp-core/bp-core-adminbar.php:169358 msgid "Background"359 msgstr ""360 361 #: bp-core/bp-core-adminbar.php:172362 msgid "Header"363 msgstr ""364 365 #: bp-core/bp-core-adminbar.php:205366 msgid "%d WordPress Update"367 msgstr ""368 369 #: bp-core/bp-core-adminbar.php:207370 msgid "%d Plugin Update"371 msgid_plural "%d Plugin Updates"372 msgstr[0] ""373 msgstr[1] ""374 375 #: bp-core/bp-core-adminbar.php:209376 msgid "%d Theme Update"377 msgid_plural "%d Theme Updates"378 msgstr[0] ""379 msgstr[1] ""380 381 #: bp-core/bp-core-adminbar.php:214382 msgid "Updates %s"383 msgstr ""384 385 324 #: bp-core/admin/bp-core-schema.php:207 386 325 msgctxt "First XProfile group name" 387 326 msgid "Base" … … 405 344 msgid "BuddyPress General Settings" 406 345 msgstr "" 407 346 408 #: bp-core/admin/bp-core-admin.php:74 bp-core/admin/bp-core-admin.php:2 15347 #: bp-core/admin/bp-core-admin.php:74 bp-core/admin/bp-core-admin.php:227 409 348 msgid "Settings Saved" 410 349 msgstr "" 411 350 … … 426 365 msgstr "" 427 366 428 367 #: bp-core/admin/bp-core-admin.php:123 429 msgid "Disable activity stream commenting on blog and forum posts?"368 msgid "Disable global forum directory?" 430 369 msgstr "" 431 370 432 371 #: bp-core/admin/bp-core-admin.php:135 372 msgid "Disable activity stream commenting on blog and forum posts?" 373 msgstr "" 374 375 #: bp-core/admin/bp-core-admin.php:147 433 376 msgid "Restrict group creation to Site Admins?" 434 377 msgstr "" 435 378 436 #: bp-core/admin/bp-core-admin.php:1 52 bp-core/admin/bp-core-admin.php:231379 #: bp-core/admin/bp-core-admin.php:164 bp-core/admin/bp-core-admin.php:243 437 380 msgid "Save Settings" 438 381 msgstr "" 439 382 440 #: bp-core/admin/bp-core-admin.php:2 09383 #: bp-core/admin/bp-core-admin.php:221 441 384 msgid "BuddyPress Component Settings" 442 385 msgstr "" 443 386 444 #: bp-core/admin/bp-core-admin.php:2 61bp-xprofile/bp-xprofile-loader.php:27387 #: bp-core/admin/bp-core-admin.php:273 bp-xprofile/bp-xprofile-loader.php:27 445 388 msgid "Extended Profiles" 446 389 msgstr "" 447 390 448 #: bp-core/admin/bp-core-admin.php:2 62391 #: bp-core/admin/bp-core-admin.php:274 449 392 msgid "Customize your community with fully editable profile fields that allow your users use to uniquely describe themselves." 450 393 msgstr "" 451 394 452 #: bp-core/admin/bp-core-admin.php:2 65395 #: bp-core/admin/bp-core-admin.php:277 453 396 msgid "Account Settings" 454 397 msgstr "" 455 398 456 #: bp-core/admin/bp-core-admin.php:2 66399 #: bp-core/admin/bp-core-admin.php:278 457 400 msgid "Allow your users to modify their account and notification settings directly from within their profiles." 458 401 msgstr "" 459 402 460 #: bp-core/admin/bp-core-admin.php:2 69bp-friends/bp-friends-loader.php:26403 #: bp-core/admin/bp-core-admin.php:281 bp-friends/bp-friends-loader.php:26 461 404 msgid "Friend Connections" 462 405 msgstr "" 463 406 464 #: bp-core/admin/bp-core-admin.php:2 70407 #: bp-core/admin/bp-core-admin.php:282 465 408 msgid "Let your users make connections so they can track the activity of others and focus on the people they care about the most." 466 409 msgstr "" 467 410 468 #: bp-core/admin/bp-core-admin.php:2 73411 #: bp-core/admin/bp-core-admin.php:285 469 412 msgid "Private Messaging" 470 413 msgstr "" 471 414 472 #: bp-core/admin/bp-core-admin.php:2 74415 #: bp-core/admin/bp-core-admin.php:286 473 416 msgid "Allow your users to talk to each other directly and in private. They are not just limited to one-on-one discussions, and can send messages to multiple recipients." 474 417 msgstr "" 475 418 476 #: bp-core/admin/bp-core-admin.php:2 77bp-activity/bp-activity-loader.php:26419 #: bp-core/admin/bp-core-admin.php:289 bp-activity/bp-activity-loader.php:26 477 420 msgid "Activity Streams" 478 421 msgstr "" 479 422 480 #: bp-core/admin/bp-core-admin.php:2 78423 #: bp-core/admin/bp-core-admin.php:290 481 424 msgid "Global, personal, and group activity streams with threaded commenting, direct posting, favoriting and @mentions, all with full RSS feed and email notification support." 482 425 msgstr "" 483 426 484 #: bp-core/admin/bp-core-admin.php:2 81bp-groups/bp-groups-loader.php:29427 #: bp-core/admin/bp-core-admin.php:293 bp-groups/bp-groups-loader.php:29 485 428 msgid "User Groups" 486 429 msgstr "" 487 430 488 #: bp-core/admin/bp-core-admin.php:2 82431 #: bp-core/admin/bp-core-admin.php:294 489 432 msgid "Groups allow your users to organize themselves into specific public, private or hidden sections with a separate activity stream and member listing." 490 433 msgstr "" 491 434 492 #: bp-core/admin/bp-core-admin.php:2 85bp-forums/bp-forums-loader.php:26435 #: bp-core/admin/bp-core-admin.php:297 bp-forums/bp-forums-loader.php:26 493 436 msgid "Discussion Forums" 494 437 msgstr "" 495 438 496 #: bp-core/admin/bp-core-admin.php:2 86439 #: bp-core/admin/bp-core-admin.php:298 497 440 msgid "Full powered discussion forums built directly into groups allow for more conventional in-depth conversations. NOTE: This will require an extra (but easy) setup step." 498 441 msgstr "" 499 442 500 #: bp-core/admin/bp-core-admin.php: 292bp-core/admin/bp-core-update.php:316443 #: bp-core/admin/bp-core-admin.php:304 bp-core/admin/bp-core-update.php:316 501 444 msgid "Site Tracking" 502 445 msgstr "" 503 446 504 #: bp-core/admin/bp-core-admin.php: 293bp-core/admin/bp-core-update.php:325447 #: bp-core/admin/bp-core-admin.php:305 bp-core/admin/bp-core-update.php:325 505 448 msgid "Track new sites, new posts and new comments across your entire network." 506 449 msgstr "" 507 450 508 #: bp-core/admin/bp-core-admin.php:3 06451 #: bp-core/admin/bp-core-admin.php:318 509 452 msgid "Active Components" 510 453 msgstr "" 511 454 512 #: bp-core/admin/bp-core-admin.php:3 08455 #: bp-core/admin/bp-core-admin.php:320 513 456 msgid "Choose which BuddyPress components you would like to use." 514 457 msgstr "" 515 458 516 #: bp-core/admin/bp-core-admin.php:3 60459 #: bp-core/admin/bp-core-admin.php:372 517 460 #: bp-themes/bp-default/members/index.php:21 518 461 msgid "Members Directory" 519 462 msgstr "" 520 463 521 #: bp-core/admin/bp-core-admin.php:3 61464 #: bp-core/admin/bp-core-admin.php:373 522 465 msgid "Activity Directory" 523 466 msgstr "" 524 467 525 #: bp-core/admin/bp-core-admin.php:3 62bp-themes/bp-default/groups/index.php:21468 #: bp-core/admin/bp-core-admin.php:374 bp-themes/bp-default/groups/index.php:21 526 469 #: bp-themes/bp-default/groups/create.php:18 527 470 msgid "Groups Directory" 528 471 msgstr "" 529 472 530 #: bp-core/admin/bp-core-admin.php:3 63bp-themes/bp-default/forums/index.php:23473 #: bp-core/admin/bp-core-admin.php:375 bp-themes/bp-default/forums/index.php:23 531 474 msgid "Forums Directory" 532 475 msgstr "" 533 476 534 #: bp-core/admin/bp-core-admin.php:3 67bp-core/admin/bp-core-update.php:210477 #: bp-core/admin/bp-core-admin.php:379 bp-core/admin/bp-core-update.php:210 535 478 #: bp-themes/bp-default/blogs/index.php:21 536 479 #: bp-themes/bp-default/blogs/create.php:21 537 480 msgid "Site Directory" 538 481 msgstr "" 539 482 540 #: bp-core/admin/bp-core-admin.php:3 69483 #: bp-core/admin/bp-core-admin.php:381 541 484 msgid "Directory Pages" 542 485 msgstr "" 543 486 544 #: bp-core/admin/bp-core-admin.php:3 71487 #: bp-core/admin/bp-core-admin.php:383 545 488 msgid "Choose a WordPress Page to associate with each BuddyPress component directory. Deactivated components should be set to \"None\"." 546 489 msgstr "" 547 490 548 #: bp-core/admin/bp-core-admin.php: 388 bp-core/admin/bp-core-admin.php:428491 #: bp-core/admin/bp-core-admin.php:400 bp-core/admin/bp-core-admin.php:440 549 492 msgid "- None -" 550 493 msgstr "" 551 494 552 #: bp-core/admin/bp-core-admin.php:4 06495 #: bp-core/admin/bp-core-admin.php:418 553 496 msgid "Sign up Page" 554 497 msgstr "" 555 498 556 #: bp-core/admin/bp-core-admin.php:4 07499 #: bp-core/admin/bp-core-admin.php:419 557 500 msgid "Activation Page" 558 501 msgstr "" 559 502 560 #: bp-core/admin/bp-core-admin.php:4 10503 #: bp-core/admin/bp-core-admin.php:422 561 504 msgid "Other Pages" 562 505 msgstr "" 563 506 564 #: bp-core/admin/bp-core-admin.php:4 12507 #: bp-core/admin/bp-core-admin.php:424 565 508 msgid "Associate WordPress Pages with the following BuddyPress pages. Setting to \"None\" will render that page inaccessible." 566 509 msgstr "" 567 510 568 511 #: bp-core/admin/bp-core-update.php:69 bp-core/admin/bp-core-update.php:214 569 #: bp-core/bp-core-functions.php:28 4512 #: bp-core/bp-core-functions.php:285 570 513 msgid "Components" 571 514 msgstr "" 572 515 … … 685 628 msgstr "" 686 629 687 630 #: bp-core/admin/bp-core-update.php:390 688 #: bp-activity/bp-activity-template.php:129 9631 #: bp-activity/bp-activity-template.php:1296 689 632 msgid "groups" 690 633 msgstr "" 691 634 … … 733 676 #: bp-core/admin/bp-core-update.php:455 bp-core/bp-core-template.php:245 734 677 #: bp-groups/bp-groups-activity.php:103 bp-groups/bp-groups-activity.php:116 735 678 #: bp-groups/bp-groups-activity.php:129 bp-groups/bp-groups-activity.php:142 736 #: bp-groups/bp-groups-loader.php:389 bp-groups/bp-groups-widgets.php:18 737 #: bp-groups/bp-groups-widgets.php:39 bp-groups/bp-groups-widgets.php:106 738 #: bp-groups/bp-groups-screens.php:821 bp-activity/bp-activity-loader.php:165 679 #: bp-groups/bp-groups-loader.php:265 bp-groups/bp-groups-loader.php:389 680 #: bp-groups/bp-groups-widgets.php:18 bp-groups/bp-groups-widgets.php:39 681 #: bp-groups/bp-groups-widgets.php:106 bp-groups/bp-groups-screens.php:821 682 #: bp-activity/bp-activity-loader.php:165 739 683 #: bp-activity/bp-activity-loader.php:238 740 684 msgid "Groups" 741 685 msgstr "" 742 686 743 687 #: bp-core/admin/bp-core-update.php:470 bp-core/bp-core-template.php:251 744 688 #: bp-forums/bp-forums-admin.php:192 bp-forums/bp-forums-loader.php:111 745 #: bp-forums/bp-forums-loader.php:194 bp-forums/bp-forums-loader.php:234689 #: bp-forums/bp-forums-loader.php:194 746 690 msgid "Forums" 747 691 msgstr "" 748 692 749 #: bp-core/admin/bp-core-update.php:498 bp-core/bp-core-functions.php:48 4750 #: bp-members/bp-members-adminbar.php: 61693 #: bp-core/admin/bp-core-update.php:498 bp-core/bp-core-functions.php:485 694 #: bp-members/bp-members-adminbar.php:90 751 695 msgid "Register" 752 696 msgstr "" 753 697 … … 755 699 msgid "Displays a site registration page where users can create new accounts." 756 700 msgstr "" 757 701 758 #: bp-core/admin/bp-core-update.php:509 bp-core/bp-core-functions.php:4 79702 #: bp-core/admin/bp-core-update.php:509 bp-core/bp-core-functions.php:480 759 703 #: bp-messages/bp-messages-template.php:493 760 704 #: bp-themes/bp-default/registration/activate.php:36 761 705 msgid "Activate" … … 989 933 msgstr "" 990 934 991 935 #: bp-core/bp-core-template.php:321 bp-core/bp-core-template.php:323 992 #: bp-core/bp-core-buddybar.php:4 49 bp-members/bp-members-adminbar.php:169936 #: bp-core/bp-core-buddybar.php:417 bp-members/bp-members-adminbar.php:195 993 937 #: bp-members/bp-members-template.php:654 bp-themes/bp-default/sidebar.php:18 994 938 msgid "Log Out" 995 939 msgstr "" 996 940 997 #: bp-core/bp-core-filters.php:5 4941 #: bp-core/bp-core-filters.php:55 998 942 msgid "noreply" 999 943 msgstr "" 1000 944 1001 #: bp-core/bp-core-filters.php:15 8 bp-core/bp-core-filters.php:182945 #: bp-core/bp-core-filters.php:159 bp-core/bp-core-filters.php:183 1002 946 msgid "[User Set]" 1003 947 msgstr "" 1004 948 1005 #: bp-core/bp-core-filters.php:20 3949 #: bp-core/bp-core-filters.php:204 1006 950 msgid "Activate %s" 1007 951 msgstr "" 1008 952 1009 #: bp-core/bp-core-filters.php:23 5bp-members/bp-members-signup.php:571953 #: bp-core/bp-core-filters.php:236 bp-members/bp-members-signup.php:571 1010 954 msgid "" 1011 955 "Thanks for registering! To complete the activation of your account please click the following link:\n" 1012 956 "\n" … … 1014 958 "\n" 1015 959 msgstr "" 1016 960 1017 #: bp-core/bp-core-filters.php:23 6bp-members/bp-members-signup.php:572961 #: bp-core/bp-core-filters.php:237 bp-members/bp-members-signup.php:572 1018 962 msgid "Activate Your Account" 1019 963 msgstr "" 1020 964 1021 965 #. translators: "displayed user's name | canonicalised component name" 1022 966 #. translators: "group name | group nav section name" 1023 967 1024 #: bp-core/bp-core-filters.php:27 7 bp-core/bp-core-filters.php:283968 #: bp-core/bp-core-filters.php:278 bp-core/bp-core-filters.php:284 1025 969 msgid "%1$s | %2$s" 1026 970 msgstr "" 1027 971 1028 972 #. translators: "root component name | component item name | component nav 1029 973 #. section name" 1030 974 1031 #: bp-core/bp-core-filters.php:28 8975 #: bp-core/bp-core-filters.php:289 1032 976 msgid "%1$s | %2$s | %3$s" 1033 977 msgstr "" 1034 978 1035 #: bp-core/bp-core-filters.php:29 3 bp-core/bp-core-filters.php:295979 #: bp-core/bp-core-filters.php:294 bp-core/bp-core-filters.php:296 1036 980 msgid "%s Directory" 1037 981 msgstr "" 1038 982 1039 #: bp-core/bp-core-filters.php: 299983 #: bp-core/bp-core-filters.php:300 1040 984 #: bp-themes/bp-default/registration/register.php:23 1041 985 msgid "Create an Account" 1042 986 msgstr "" 1043 987 1044 #: bp-core/bp-core-filters.php:30 3988 #: bp-core/bp-core-filters.php:304 1045 989 #: bp-themes/bp-default/registration/activate.php:24 1046 990 msgid "Activate your Account" 1047 991 msgstr "" 1048 992 1049 #: bp-core/bp-core-filters.php:30 7bp-themes/bp-default/groups/index.php:21993 #: bp-core/bp-core-filters.php:308 bp-themes/bp-default/groups/index.php:21 1050 994 #: bp-themes/bp-default/groups/create.php:18 1051 995 msgid "Create a Group" 1052 996 msgstr "" … … 1097 1041 msgid "Yahoo Messenger" 1098 1042 msgstr "" 1099 1043 1100 #: bp-core/bp-core-functions.php:28 5bp-settings/bp-settings-loader.php:171044 #: bp-core/bp-core-functions.php:286 bp-settings/bp-settings-loader.php:17 1101 1045 #: bp-settings/bp-settings-loader.php:73 bp-settings/bp-settings-loader.php:143 1102 #: bp-groups/bp-groups-loader.php:188 bp-groups/bp-groups-template.php:12511046 #: bp-groups/bp-groups-loader.php:188 1103 1047 msgid "Settings" 1104 1048 msgstr "" 1105 1049 1106 #: bp-core/bp-core-functions.php:40 01050 #: bp-core/bp-core-functions.php:401 1107 1051 msgid "<strong>BuddyPress is almost ready</strong>. You must <a href=\"%s\">update your permalink structure</a> to something other than the default for it to work." 1108 1052 msgstr "" 1109 1053 1110 #: bp-core/bp-core-functions.php:41 31054 #: bp-core/bp-core-functions.php:414 1111 1055 msgid "You'll need to <a href='%s'>activate a <strong>BuddyPress-compatible theme</strong></a> to take advantage of all of BuddyPress's features. We've bundled a default theme, but you can always <a href='%s'>install some other compatible themes</a> or <a href='%s'>update your existing WordPress theme</a>." 1112 1056 msgstr "" 1113 1057 1114 #: bp-core/bp-core-functions.php:45 21058 #: bp-core/bp-core-functions.php:453 1115 1059 msgid "Some of your WordPress pages are linked to BuddyPress components that have been disabled. These pages may continue to show up in your site navigation. Consider <a href=\"%1$s\">reactivating the components</a>, or unpublishing the pages: <strong>%2$s</strong>" 1116 1060 msgstr "" 1117 1061 1118 #: bp-core/bp-core-functions.php:49 71062 #: bp-core/bp-core-functions.php:498 1119 1063 msgid "Some BuddyPress components must be associated with WordPress pages for your site to work properly. The following components are missing their required WP pages: <strong>%1$s</strong>. Visit the <a href=\"%2$s\">BuddyPress Components</a> panel, where you can either deactivate unused components or complete the page setup." 1120 1064 msgstr "" 1121 1065 1122 #: bp-core/bp-core-functions.php:65 11066 #: bp-core/bp-core-functions.php:652 1123 1067 msgid "year" 1124 1068 msgstr "" 1125 1069 1126 #: bp-core/bp-core-functions.php:65 11070 #: bp-core/bp-core-functions.php:652 1127 1071 msgid "years" 1128 1072 msgstr "" 1129 1073 1130 #: bp-core/bp-core-functions.php:65 21074 #: bp-core/bp-core-functions.php:653 1131 1075 msgid "month" 1132 1076 msgstr "" 1133 1077 1134 #: bp-core/bp-core-functions.php:65 21078 #: bp-core/bp-core-functions.php:653 1135 1079 msgid "months" 1136 1080 msgstr "" 1137 1081 1138 #: bp-core/bp-core-functions.php:65 31082 #: bp-core/bp-core-functions.php:654 1139 1083 msgid "week" 1140 1084 msgstr "" 1141 1085 1142 #: bp-core/bp-core-functions.php:65 31086 #: bp-core/bp-core-functions.php:654 1143 1087 msgid "weeks" 1144 1088 msgstr "" 1145 1089 1146 #: bp-core/bp-core-functions.php:65 41090 #: bp-core/bp-core-functions.php:655 1147 1091 msgid "day" 1148 1092 msgstr "" 1149 1093 1150 #: bp-core/bp-core-functions.php:65 41094 #: bp-core/bp-core-functions.php:655 1151 1095 msgid "days" 1152 1096 msgstr "" 1153 1097 1154 #: bp-core/bp-core-functions.php:65 51098 #: bp-core/bp-core-functions.php:656 1155 1099 msgid "hour" 1156 1100 msgstr "" 1157 1101 1158 #: bp-core/bp-core-functions.php:65 51102 #: bp-core/bp-core-functions.php:656 1159 1103 msgid "hours" 1160 1104 msgstr "" 1161 1105 1162 #: bp-core/bp-core-functions.php:65 61106 #: bp-core/bp-core-functions.php:657 1163 1107 msgid "minute" 1164 1108 msgstr "" 1165 1109 1166 #: bp-core/bp-core-functions.php:65 61110 #: bp-core/bp-core-functions.php:657 1167 1111 msgid "minutes" 1168 1112 msgstr "" 1169 1113 1170 #: bp-core/bp-core-functions.php:65 71114 #: bp-core/bp-core-functions.php:658 1171 1115 msgid "second" 1172 1116 msgstr "" 1173 1117 1174 #: bp-core/bp-core-functions.php:65 7 bp-core/bp-core-functions.php:6981175 #: bp-core/bp-core-functions.php:71 51118 #: bp-core/bp-core-functions.php:658 bp-core/bp-core-functions.php:699 1119 #: bp-core/bp-core-functions.php:716 1176 1120 msgid "seconds" 1177 1121 msgstr "" 1178 1122 1179 #: bp-core/bp-core-functions.php:67 81123 #: bp-core/bp-core-functions.php:679 1180 1124 msgid "sometime" 1181 1125 msgstr "" 1182 1126 1183 #: bp-core/bp-core-functions.php:71 01127 #: bp-core/bp-core-functions.php:711 1184 1128 msgctxt "Separator in time since" 1185 1129 msgid "," 1186 1130 msgstr "" 1187 1131 1188 #: bp-core/bp-core-functions.php:76 41132 #: bp-core/bp-core-functions.php:760 1189 1133 msgid "not recently active" 1190 1134 msgstr "" 1191 1135 … … 1197 1141 msgid "You must log in to access the page you requested." 1198 1142 msgstr "" 1199 1143 1200 #: bp-core/bp-core-buddybar.php:240 1201 msgid "You do not have access to this page." 1202 msgstr "" 1203 1204 #: bp-core/bp-core-buddybar.php:391 bp-themes/bp-default/sidebar.php:50 1144 #: bp-core/bp-core-buddybar.php:359 bp-themes/bp-default/sidebar.php:50 1205 1145 msgid "Log In" 1206 1146 msgstr "" 1207 1147 1208 #: bp-core/bp-core-buddybar.php:3 951148 #: bp-core/bp-core-buddybar.php:363 1209 1149 msgid "Sign Up" 1210 1150 msgstr "" 1211 1151 1212 #: bp-core/bp-core-buddybar.php: 4071152 #: bp-core/bp-core-buddybar.php:375 1213 1153 msgid "My Account" 1214 1154 msgstr "" 1215 1155 1216 #: bp-core/bp-core-buddybar.php:4 781156 #: bp-core/bp-core-buddybar.php:446 1217 1157 msgid "Visit" 1218 1158 msgstr "" 1219 1159 1220 #: bp-core/bp-core-buddybar.php:4 801160 #: bp-core/bp-core-buddybar.php:448 1221 1161 msgid "Random Member" 1222 1162 msgstr "" 1223 1163 1224 #: bp-core/bp-core-buddybar.php:4 841164 #: bp-core/bp-core-buddybar.php:452 1225 1165 msgid "Random Group" 1226 1166 msgstr "" 1227 1167 1228 #: bp-core/bp-core-buddybar.php:4 901168 #: bp-core/bp-core-buddybar.php:458 1229 1169 msgid "Random Site" 1230 1170 msgstr "" 1231 1171 … … 1252 1192 msgstr "" 1253 1193 1254 1194 #: bp-friends/bp-friends-loader.php:109 bp-friends/bp-friends-loader.php:169 1255 #: bp-friends/bp-friends-loader.php:195 1256 #: bp-themes/bp-default/members/single/activity.php:35 1257 #: bp-themes/bp-default/activity/index.php:118 1258 msgid "Friendships" 1195 #: bp-friends/bp-friends-loader.php:195 bp-friends/bp-friends-template.php:89 1196 msgid "My Friends" 1259 1197 msgstr "" 1260 1198 1261 #: bp-friends/bp-friends-loader.php:119 bp-groups/bp-groups-template.php:12561199 #: bp-friends/bp-friends-loader.php:119 1262 1200 msgid "Requests" 1263 1201 msgstr "" 1264 1202 … … 1335 1273 msgstr "" 1336 1274 1337 1275 #: bp-friends/bp-friends-template.php:89 1338 msgid "My Friends"1339 msgstr ""1340 1341 #: bp-friends/bp-friends-template.php:891342 1276 msgid "%s's Friends" 1343 1277 msgstr "" 1344 1278 … … 1478 1412 msgstr "" 1479 1413 1480 1414 #: bp-settings/bp-settings-loader.php:108 1481 #: bp-members/bp-members-adminbar.php:1431482 1415 #: bp-themes/bp-default/members/single/settings/delete-account.php:50 1483 1416 msgid "Delete Account" 1484 1417 msgstr "" … … 1547 1480 msgid "There was an error leaving the group." 1548 1481 msgstr "" 1549 1482 1550 #: bp-groups/bp-groups-actions.php:248 bp-groups/bp-groups-functions.php:2 791483 #: bp-groups/bp-groups-actions.php:248 bp-groups/bp-groups-functions.php:265 1551 1484 msgid "You successfully left the group." 1552 1485 msgstr "" 1553 1486 … … 1635 1568 msgid "You do not have access to this group." 1636 1569 msgstr "" 1637 1570 1638 #: bp-groups/bp-groups-loader.php:184 bp-groups/bp-groups-template.php:12441571 #: bp-groups/bp-groups-loader.php:184 1639 1572 msgid "Details" 1640 1573 msgstr "" 1641 1574 1642 #: bp-groups/bp-groups-loader.php:192 bp-groups/bp-groups-template.php:12521575 #: bp-groups/bp-groups-loader.php:192 1643 1576 msgid "Avatar" 1644 1577 msgstr "" 1645 1578 … … 1651 1584 msgid "Groups <span>(%d)</span>" 1652 1585 msgstr "" 1653 1586 1654 #: bp-groups/bp-groups-loader.php:237 bp-groups/bp-groups-loader.php: 2651655 #: bp-groups/bp-groups-loader.php:4 04 bp-groups/bp-groups-loader.php:4311656 msgid "M emberships"1587 #: bp-groups/bp-groups-loader.php:237 bp-groups/bp-groups-loader.php:404 1588 #: bp-groups/bp-groups-loader.php:431 1589 msgid "My Groups" 1657 1590 msgstr "" 1658 1591 1659 1592 #: bp-groups/bp-groups-loader.php:248 … … 1700 1633 msgid "No Pending Invites" 1701 1634 msgstr "" 1702 1635 1703 #: bp-groups/bp-groups-loader.php:450 bp-groups/bp-groups-buddybar.php:21 1636 #: bp-groups/bp-groups-loader.php:450 bp-groups/bp-groups-adminbar.php:58 1637 #: bp-groups/bp-groups-buddybar.php:21 bp-groups/bp-groups-template.php:1252 1704 1638 #: bp-groups/bp-groups-template.php:2297 1705 1639 msgid "Group Avatar" 1706 1640 msgstr "" … … 1709 1643 msgid "Group Mod" 1710 1644 msgstr "" 1711 1645 1712 #: bp-groups/bp-groups-classes.php:708 bp-groups/bp-groups-functions.php:96 1646 #: bp-groups/bp-groups-classes.php:708 bp-groups/bp-groups-adminbar.php:34 1647 #: bp-groups/bp-groups-functions.php:82 1713 1648 msgid "Group Admin" 1714 1649 msgstr "" 1715 1650 … … 1823 1758 "---------------------\n" 1824 1759 msgstr "" 1825 1760 1826 #: bp-groups/bp-groups-adminbar.php:55 bp-groups/bp-groups-buddybar.php:17 1761 #: bp-groups/bp-groups-adminbar.php:42 bp-groups/bp-groups-buddybar.php:17 1762 #: bp-groups/bp-groups-template.php:1244 1827 1763 msgid "Edit Details" 1828 1764 msgstr "" 1829 1765 1830 #: bp-groups/bp-groups-adminbar.php:63 1831 msgid "Edit Settings" 1766 #: bp-groups/bp-groups-adminbar.php:50 bp-groups/bp-groups-buddybar.php:19 1767 #: bp-groups/bp-groups-template.php:1251 1768 msgid "Group Settings" 1832 1769 msgstr "" 1833 1770 1834 #: bp-groups/bp-groups-adminbar.php:71 bp-members/bp-members-adminbar.php:116 1835 msgid "Edit Avatar" 1836 msgstr "" 1837 1838 #: bp-groups/bp-groups-adminbar.php:80 bp-groups/bp-groups-buddybar.php:25 1771 #: bp-groups/bp-groups-adminbar.php:67 bp-groups/bp-groups-buddybar.php:25 1839 1772 msgid "Manage Invitations" 1840 1773 msgstr "" 1841 1774 1842 #: bp-groups/bp-groups-adminbar.php:89 bp-groups/bp-groups-buddybar.php:29 1775 #: bp-groups/bp-groups-adminbar.php:76 bp-groups/bp-groups-buddybar.php:29 1776 #: bp-groups/bp-groups-template.php:1253 1843 1777 msgid "Manage Members" 1844 1778 msgstr "" 1845 1779 1846 #: bp-groups/bp-groups-adminbar.php:98 bp-groups/bp-groups-buddybar.php:33 1780 #: bp-groups/bp-groups-adminbar.php:85 bp-groups/bp-groups-buddybar.php:33 1781 #: bp-groups/bp-groups-template.php:1256 1847 1782 msgid "Membership Requests" 1848 1783 msgstr "" 1849 1784 1850 #: bp-groups/bp-groups-adminbar.php: 107bp-groups/bp-groups-buddybar.php:371851 #: bp- xprofile/bp-xprofile-admin.php:1231785 #: bp-groups/bp-groups-adminbar.php:94 bp-groups/bp-groups-buddybar.php:37 1786 #: bp-groups/bp-groups-template.php:1261 bp-xprofile/bp-xprofile-admin.php:97 1852 1787 #: bp-themes/bp-default/groups/single/admin.php:358 1853 1788 msgid "Delete Group" 1854 1789 msgstr "" … … 1893 1828 msgid "Group invite accepted" 1894 1829 msgstr "" 1895 1830 1896 #: bp-groups/bp-groups-screens.php:59 bp-groups/bp-groups-functions.php:3 231897 #: bp-groups/bp-groups-functions.php: 8001831 #: bp-groups/bp-groups-screens.php:59 bp-groups/bp-groups-functions.php:309 1832 #: bp-groups/bp-groups-functions.php:786 1898 1833 msgid "%1$s joined the group %2$s" 1899 1834 msgstr "" 1900 1835 … … 2126 2061 msgid "A member requests to join a private group for which you are an admin" 2127 2062 msgstr "" 2128 2063 2129 #: bp-groups/bp-groups-buddybar.php:14 bp-members/bp-members-buddybar.php:101 2064 #: bp-groups/bp-groups-buddybar.php:14 bp-xprofile/bp-xprofile-buddybar.php:47 2065 #: bp-members/bp-members-buddybar.php:101 2130 2066 msgid "Admin Options" 2131 2067 msgstr "" 2132 2068 2133 #: bp-groups/bp-groups-buddybar.php:192134 msgid "Group Settings"2135 msgstr ""2136 2137 2069 #: bp-groups/bp-groups-template.php:324 2138 2070 msgid "Public Group" 2139 2071 msgstr "" … … 2246 2178 msgid "This group has no moderators" 2247 2179 msgstr "" 2248 2180 2249 #: bp-groups/bp-groups-template.php:1261 bp-xprofile/bp-xprofile-admin.php:4562250 #: bp-forums/bp-forums-template.php:1070 bp-themes/bp-default/_inc/ajax.php:2192251 #: bp-themes/bp-default/members/single/messages/messages-loop.php:502252 #: bp-themes/bp-default/members/single/messages/single.php:132253 #: bp-themes/bp-default/activity/comment.php:322254 #: bp-activity/bp-activity-template.php:12192255 msgid "Delete"2256 msgstr ""2257 2258 2181 #: bp-groups/bp-groups-template.php:1467 bp-groups/bp-groups-template.php:1468 2259 2182 #: bp-themes/bp-default/forums/index.php:23 2260 2183 #: bp-themes/bp-default/forums/single/forum.php:19 … … 2328 2251 msgid "Group Activity RSS Feed" 2329 2252 msgstr "" 2330 2253 2331 #: bp-groups/bp-groups-functions.php:2 542254 #: bp-groups/bp-groups-functions.php:240 2332 2255 msgid "As the only Admin, you cannot leave the group." 2333 2256 msgstr "" 2334 2257 2335 #: bp-groups/bp-groups-functions.php:4 962258 #: bp-groups/bp-groups-functions.php:482 2336 2259 msgid "%1$s posted an update in the group %2$s:" 2337 2260 msgstr "" 2338 2261 2339 2262 #: bp-xprofile/bp-xprofile-loader.php:137 2340 #: bp-xprofile/bp-xprofile- loader.php:193 bp-xprofile/bp-xprofile-admin.php:4552341 #: bp- forums/bp-forums-template.php:1069 bp-themes/bp-default/functions.php:4472342 msgid "Edit "2263 #: bp-xprofile/bp-xprofile-template.php:761 2264 #: bp-xprofile/bp-xprofile-template.php:762 2265 msgid "Edit Profile" 2343 2266 msgstr "" 2344 2267 2345 2268 #: bp-xprofile/bp-xprofile-loader.php:147 2346 #: bp-xprofile/bp-xprofile-loader.php:2002347 2269 #: bp-themes/bp-default/members/single/profile/change-avatar.php:1 2348 2270 msgid "Change Avatar" 2349 2271 msgstr "" 2350 2272 2351 2273 #: bp-xprofile/bp-xprofile-loader.php:186 2352 #: bp-members/bp-members-template.php:523 2353 #: bp-themes/bp-default/functions.php:443 2354 #: bp-themes/bp-default/activity/entry.php:74 2355 #: bp-activity/bp-activity-template.php:710 2356 #: bp-activity/bp-activity-template.php:1239 2357 msgid "View" 2274 msgid "View My Profile" 2358 2275 msgstr "" 2359 2276 2277 #: bp-xprofile/bp-xprofile-loader.php:193 2278 msgid "Edit My Profile" 2279 msgstr "" 2280 2281 #: bp-xprofile/bp-xprofile-loader.php:200 2282 msgid "Change My Avatar" 2283 msgstr "" 2284 2360 2285 #: bp-xprofile/bp-xprofile-screens.php:85 2361 2286 msgid "Please make sure you fill in all required fields in this profile field group before saving." 2362 2287 msgstr "" … … 2553 2478 msgid "Checkbox field types require at least one option. Please add options below." 2554 2479 msgstr "" 2555 2480 2556 #: bp-xprofile/bp-xprofile- admin.php:232557 msgid "Profile sFields"2481 #: bp-xprofile/bp-xprofile-buddybar.php:24 2482 msgid "Profile Fields" 2558 2483 msgstr "" 2559 2484 2560 #: bp-xprofile/bp-xprofile-admin.php:23 2561 msgid "Profile Fields" 2485 #: bp-xprofile/bp-xprofile-buddybar.php:50 2486 #: bp-members/bp-members-adminbar.php:126 2487 #: bp-members/bp-members-buddybar.php:106 2488 msgid "Edit %s's Profile" 2562 2489 msgstr "" 2563 2490 2564 #: bp-xprofile/bp-xprofile-admin.php:72 2491 #: bp-xprofile/bp-xprofile-buddybar.php:51 2492 #: bp-members/bp-members-adminbar.php:134 2493 #: bp-members/bp-members-adminbar.php:142 2494 #: bp-members/bp-members-buddybar.php:110 2495 msgid "Edit %s's Avatar" 2496 msgstr "" 2497 2498 #: bp-xprofile/bp-xprofile-buddybar.php:55 2499 msgid "Edit %s's Settings" 2500 msgstr "" 2501 2502 #: bp-xprofile/bp-xprofile-buddybar.php:61 2503 #: bp-members/bp-members-adminbar.php:151 2504 #: bp-members/bp-members-buddybar.php:114 2505 msgid "Mark as Spammer" 2506 msgstr "" 2507 2508 #: bp-xprofile/bp-xprofile-buddybar.php:65 2509 #: bp-members/bp-members-adminbar.php:159 2510 #: bp-members/bp-members-buddybar.php:118 2511 msgid "Not a Spammer" 2512 msgstr "" 2513 2514 #: bp-xprofile/bp-xprofile-buddybar.php:69 2515 msgid "Delete %s" 2516 msgstr "" 2517 2518 #: bp-xprofile/bp-xprofile-admin.php:46 2565 2519 msgid "Extended Profile Fields" 2566 2520 msgstr "" 2567 2521 2568 #: bp-xprofile/bp-xprofile-admin.php: 74 bp-xprofile/bp-xprofile-admin.php:1762522 #: bp-xprofile/bp-xprofile-admin.php:48 bp-xprofile/bp-xprofile-admin.php:150 2569 2523 msgid "Add New Group" 2570 2524 msgstr "" 2571 2525 2572 #: bp-xprofile/bp-xprofile-admin.php: 772526 #: bp-xprofile/bp-xprofile-admin.php:51 2573 2527 msgid "Your users will distinguish themselves through their profile page. You must give them profile fields that allow them to describe themselves in a way that is relevant to the theme of your social network." 2574 2528 msgstr "" 2575 2529 2576 #: bp-xprofile/bp-xprofile-admin.php: 782530 #: bp-xprofile/bp-xprofile-admin.php:52 2577 2531 msgid "NOTE: Any fields in the \"%s\" group will appear on the signup page." 2578 2532 msgstr "" 2579 2533 2580 #: bp-xprofile/bp-xprofile-admin.php: 101 bp-xprofile/bp-xprofile-admin.php:3912534 #: bp-xprofile/bp-xprofile-admin.php:75 bp-xprofile/bp-xprofile-admin.php:365 2581 2535 msgid "(Primary)" 2582 2536 msgstr "" 2583 2537 2584 #: bp-xprofile/bp-xprofile-admin.php: 1182538 #: bp-xprofile/bp-xprofile-admin.php:92 2585 2539 msgid "Add New Field" 2586 2540 msgstr "" 2587 2541 2588 #: bp-xprofile/bp-xprofile-admin.php: 1192542 #: bp-xprofile/bp-xprofile-admin.php:93 2589 2543 msgid "Edit Group" 2590 2544 msgstr "" 2591 2545 2592 #: bp-xprofile/bp-xprofile-admin.php:1 582546 #: bp-xprofile/bp-xprofile-admin.php:132 2593 2547 msgid "There are no fields in this group." 2594 2548 msgstr "" 2595 2549 2596 #: bp-xprofile/bp-xprofile-admin.php:1 752550 #: bp-xprofile/bp-xprofile-admin.php:149 2597 2551 msgid "You have no groups." 2598 2552 msgstr "" 2599 2553 2600 #: bp-xprofile/bp-xprofile-admin.php: 2072554 #: bp-xprofile/bp-xprofile-admin.php:181 2601 2555 msgid "There was an error saving the group. Please try again" 2602 2556 msgstr "" 2603 2557 2604 #: bp-xprofile/bp-xprofile-admin.php: 2102558 #: bp-xprofile/bp-xprofile-admin.php:184 2605 2559 msgid "The group was saved successfully." 2606 2560 msgstr "" 2607 2561 2608 #: bp-xprofile/bp-xprofile-admin.php:2 392562 #: bp-xprofile/bp-xprofile-admin.php:213 2609 2563 msgid "There was an error deleting the group. Please try again" 2610 2564 msgstr "" 2611 2565 2612 #: bp-xprofile/bp-xprofile-admin.php:2 422566 #: bp-xprofile/bp-xprofile-admin.php:216 2613 2567 msgid "The group was deleted successfully." 2614 2568 msgstr "" 2615 2569 2616 #: bp-xprofile/bp-xprofile-admin.php:2 832570 #: bp-xprofile/bp-xprofile-admin.php:257 2617 2571 msgid "There was an error saving the field. Please try again" 2618 2572 msgstr "" 2619 2573 2620 #: bp-xprofile/bp-xprofile-admin.php:2 892574 #: bp-xprofile/bp-xprofile-admin.php:263 2621 2575 msgid "The field was saved successfully." 2622 2576 msgstr "" 2623 2577 2624 #: bp-xprofile/bp-xprofile-admin.php: 3162578 #: bp-xprofile/bp-xprofile-admin.php:290 2625 2579 msgid "field" 2626 2580 msgstr "" 2627 2581 2628 #: bp-xprofile/bp-xprofile-admin.php: 3182582 #: bp-xprofile/bp-xprofile-admin.php:292 2629 2583 msgid "option" 2630 2584 msgstr "" 2631 2585 2632 #: bp-xprofile/bp-xprofile-admin.php: 3232586 #: bp-xprofile/bp-xprofile-admin.php:297 2633 2587 msgid "There was an error deleting the %s. Please try again" 2634 2588 msgstr "" 2635 2589 2636 #: bp-xprofile/bp-xprofile-admin.php:3 262590 #: bp-xprofile/bp-xprofile-admin.php:300 2637 2591 msgid "The %s was deleted successfully!" 2638 2592 msgstr "" 2639 2593 2640 #: bp-xprofile/bp-xprofile-admin.php:3 912594 #: bp-xprofile/bp-xprofile-admin.php:365 2641 2595 msgid "(Required)" 2642 2596 msgstr "" 2643 2597 2644 #: bp-xprofile/bp-xprofile-admin.php: 4242598 #: bp-xprofile/bp-xprofile-admin.php:398 2645 2599 #: bp-themes/bp-default/registration/register.php:119 2646 2600 #: bp-themes/bp-default/members/single/profile/edit.php:58 2647 2601 #: bp-themes/bp-default/members/single/profile/edit.php:73 2648 2602 msgid "Clear" 2649 2603 msgstr "" 2650 2604 2605 #: bp-xprofile/bp-xprofile-admin.php:429 bp-forums/bp-forums-template.php:1069 2606 #: bp-themes/bp-default/functions.php:447 2607 msgid "Edit" 2608 msgstr "" 2609 2610 #: bp-xprofile/bp-xprofile-admin.php:430 bp-forums/bp-forums-template.php:1070 2611 #: bp-themes/bp-default/_inc/ajax.php:219 2612 #: bp-themes/bp-default/members/single/messages/messages-loop.php:50 2613 #: bp-themes/bp-default/members/single/messages/single.php:13 2614 #: bp-themes/bp-default/activity/comment.php:32 2615 #: bp-activity/bp-activity-template.php:1219 2616 msgid "Delete" 2617 msgstr "" 2618 2651 2619 #: bp-xprofile/bp-xprofile-template.php:558 2652 2620 msgid "January" 2653 2621 msgstr "" … … 2708 2676 msgid "Profile updated %s ago" 2709 2677 msgstr "" 2710 2678 2711 #: bp-xprofile/bp-xprofile-template.php:7612712 #: bp-xprofile/bp-xprofile-template.php:7622713 #: bp-members/bp-members-adminbar.php:1082714 msgid "Edit Profile"2715 msgstr ""2716 2717 2679 #: bp-xprofile/bp-xprofile-activity.php:19 2718 2680 msgid "New member registered" 2719 2681 msgstr "" … … 2804 2766 msgid "Search Forums..." 2805 2767 msgstr "" 2806 2768 2807 #: bp-forums/bp-forums-loader.php:135 bp-forums/bp-forums-loader.php:2012808 msgid " TopicsStarted"2769 #: bp-forums/bp-forums-loader.php:135 2770 msgid "Started" 2809 2771 msgstr "" 2810 2772 2811 2773 #: bp-forums/bp-forums-loader.php:146 2812 2774 msgid "Replied To" 2813 2775 msgstr "" 2814 2776 2777 #: bp-forums/bp-forums-loader.php:201 2778 msgid "My Topics" 2779 msgstr "" 2780 2815 2781 #: bp-forums/bp-forums-loader.php:208 2816 msgid " Replies"2782 msgid "My Replies" 2817 2783 msgstr "" 2818 2784 2819 #: bp-forums/bp-forums-loader.php:215 2820 msgid " Favorite Topics"2785 #: bp-forums/bp-forums-loader.php:215 bp-themes/bp-default/functions.php:144 2786 msgid "My Favorites" 2821 2787 msgstr "" 2822 2788 2789 #: bp-forums/bp-forums-loader.php:234 2790 msgid "My Forums" 2791 msgstr "" 2792 2823 2793 #: bp-forums/bp-forums-template.php:371 bp-forums/bp-forums-template.php:430 2824 2794 #: bp-forums/bp-forums-template.php:1015 2825 2795 msgid "Deleted User" … … 2898 2868 msgstr "" 2899 2869 2900 2870 #: bp-messages/bp-messages-loader.php:127 2901 #: bp-messages/bp-messages-loader.php:206 2902 msgid "Sent" 2871 msgid "Sent Messages" 2903 2872 msgstr "" 2904 2873 2905 2874 #: bp-messages/bp-messages-loader.php:148 … … 2915 2884 msgid "Messages" 2916 2885 msgstr "" 2917 2886 2887 #: bp-messages/bp-messages-loader.php:206 2888 msgid "Sent" 2889 msgstr "" 2890 2918 2891 #: bp-messages/bp-messages-loader.php:221 2919 2892 msgid "All Member Notices" 2920 2893 msgstr "" … … 3100 3073 msgid "You have %d new message" 3101 3074 msgstr "" 3102 3075 3103 #: bp-members/bp-members-adminbar.php:53 3076 #: bp-members/bp-members-adminbar.php:40 3077 msgid "Admin Dashboard" 3078 msgstr "" 3079 3080 #: bp-members/bp-members-adminbar.php:50 3081 msgid "Network Dashboard" 3082 msgstr "" 3083 3084 #: bp-members/bp-members-adminbar.php:82 3104 3085 msgid "Log in" 3105 3086 msgstr "" 3106 3087 3107 #: bp-members/bp-members-adminbar.php:125 3108 #: bp-members/bp-members-buddybar.php:114 3109 msgid "Mark as Spammer" 3088 #: bp-members/bp-members-adminbar.php:118 3089 msgid "User Admin" 3110 3090 msgstr "" 3111 3091 3112 #: bp-members/bp-members-adminbar.php:1 273092 #: bp-members/bp-members-adminbar.php:153 3113 3093 msgid "Are you sure you want to mark this user as a spammer?" 3114 3094 msgstr "" 3115 3095 3116 #: bp-members/bp-members-adminbar.php:133 3117 #: bp-members/bp-members-buddybar.php:118 3118 msgid "Not a Spammer" 3096 #: bp-members/bp-members-adminbar.php:161 3097 msgid "Are you sure you want to mark this user as not a spammer?" 3119 3098 msgstr "" 3120 3099 3121 #: bp-members/bp-members-adminbar.php:135 3122 msgid "Are you sure you want to mark this user as not a spammer?" 3100 #: bp-members/bp-members-adminbar.php:169 3101 #: bp-members/bp-members-buddybar.php:122 3102 msgid "Delete %s's Account" 3123 3103 msgstr "" 3124 3104 3125 #: bp-members/bp-members-adminbar.php:1 453105 #: bp-members/bp-members-adminbar.php:171 3126 3106 msgid "Are you sure you want to delete this user's account?" 3127 3107 msgstr "" 3128 3108 … … 3150 3130 msgid "Blog Authors" 3151 3131 msgstr "" 3152 3132 3153 #: bp-members/bp-members-buddybar.php:1063154 msgid "Edit %s's Profile"3155 msgstr ""3156 3157 #: bp-members/bp-members-buddybar.php:1103158 msgid "Edit %s's Avatar"3159 msgstr ""3160 3161 #: bp-members/bp-members-buddybar.php:1223162 msgid "Delete %s's Account"3163 msgstr ""3164 3165 3133 #: bp-members/bp-members-loader.php:70 3166 3134 msgid "Search Members..." 3167 3135 msgstr "" … … 3170 3138 msgid "You" 3171 3139 msgstr "" 3172 3140 3173 #: bp-members/bp-members-functions.php:6 693141 #: bp-members/bp-members-functions.php:610 3174 3142 msgid "<strong>ERROR</strong>: Your account has been marked as a spammer." 3175 3143 msgstr "" 3176 3144 … … 3262 3230 msgid "Never active" 3263 3231 msgstr "" 3264 3232 3233 #: bp-members/bp-members-template.php:523 3234 #: bp-themes/bp-default/functions.php:443 3235 #: bp-themes/bp-default/activity/entry.php:74 3236 #: bp-activity/bp-activity-template.php:710 3237 #: bp-activity/bp-activity-template.php:1236 3238 msgid "View" 3239 msgstr "" 3240 3265 3241 #: bp-members/bp-members-template.php:559 3266 3242 msgid "registered %s ago" 3267 3243 msgstr "" … … 3607 3583 msgid "Primary Navigation" 3608 3584 msgstr "" 3609 3585 3610 #: bp-themes/bp-default/functions.php:1443611 msgid "My Favorites"3612 msgstr ""3613 3614 3586 #: bp-themes/bp-default/functions.php:145 3615 3587 msgid "Accepted" 3616 3588 msgstr "" … … 3693 3665 msgid "Your comment is awaiting moderation." 3694 3666 msgstr "" 3695 3667 3696 #: bp-themes/bp-default/functions.php:5 333668 #: bp-themes/bp-default/functions.php:525 3697 3669 msgid "Theme activated! This theme contains <a href=\"%s\">custom header image</a> support and <a href=\"%s\">sidebar widgets</a>." 3698 3670 msgstr "" 3699 3671 … … 4024 3996 msgid "Comments" 4025 3997 msgstr "" 4026 3998 3999 #: bp-themes/bp-default/members/single/activity.php:35 4000 #: bp-themes/bp-default/activity/index.php:118 4001 msgid "Friendships" 4002 msgstr "" 4003 4027 4004 #: bp-themes/bp-default/members/single/activity.php:43 4028 4005 #: bp-themes/bp-default/activity/index.php:104 4029 4006 #: bp-themes/bp-default/groups/single/activity.php:14 … … 4077 4054 msgstr "" 4078 4055 4079 4056 #: bp-themes/bp-default/activity/index.php:75 4080 #: bp-activity/bp-activity-functions.php:1 284057 #: bp-activity/bp-activity-functions.php:114 4081 4058 msgid "@%s Mentions" 4082 4059 msgstr "" 4083 4060 … … 4591 4568 msgid " %s ago" 4592 4569 msgstr "" 4593 4570 4594 #: bp-activity/bp-activity-template.php:129 94571 #: bp-activity/bp-activity-template.php:1296 4595 4572 msgid "xprofile" 4596 4573 msgstr "" 4597 4574 4598 #: bp-activity/bp-activity-template.php:129 94575 #: bp-activity/bp-activity-template.php:1296 4599 4576 msgid "friends" 4600 4577 msgstr "" 4601 4578 4602 #: bp-activity/bp-activity-template.php:129 94579 #: bp-activity/bp-activity-template.php:1296 4603 4580 msgid "status" 4604 4581 msgstr "" 4605 4582 4606 #: bp-activity/bp-activity-template.php:129 94583 #: bp-activity/bp-activity-template.php:1296 4607 4584 msgid "sites" 4608 4585 msgstr "" 4609 4586 4610 #: bp-activity/bp-activity-template.php:130 74587 #: bp-activity/bp-activity-template.php:1304 4611 4588 msgid "Clear Filter" 4612 4589 msgstr "" 4613 4590 4614 #: bp-activity/bp-activity-template.php:137 34591 #: bp-activity/bp-activity-template.php:1370 4615 4592 msgid "a user" 4616 4593 msgstr "" 4617 4594 4618 #: bp-activity/bp-activity-template.php:140 44595 #: bp-activity/bp-activity-template.php:1401 4619 4596 msgid "Mention this user in a new public message, this will send the user a notification to get their attention." 4620 4597 msgstr "" 4621 4598 4622 #: bp-activity/bp-activity-template.php:140 54599 #: bp-activity/bp-activity-template.php:1402 4623 4600 msgid "Mention this User" 4624 4601 msgstr "" 4625 4602 4626 #: bp-activity/bp-activity-template.php:153 34603 #: bp-activity/bp-activity-template.php:1530 4627 4604 msgid "Site Wide Activity RSS Feed" 4628 4605 msgstr "" 4629 4606 … … 4707 4684 msgid "[Read more]" 4708 4685 msgstr "" 4709 4686 4710 #: bp-activity/bp-activity-functions.php:1 314687 #: bp-activity/bp-activity-functions.php:117 4711 4688 msgid "You have %1$d new activity mentions" 4712 4689 msgstr "" 4713 4690 4714 #: bp-activity/bp-activity-functions.php:1 354691 #: bp-activity/bp-activity-functions.php:121 4715 4692 msgid "%1$s mentioned you in an activity update" 4716 4693 msgstr "" 4717 4694 4718 #: bp-activity/bp-activity-functions.php:5 374695 #: bp-activity/bp-activity-functions.php:523 4719 4696 msgid "Posted an update" 4720 4697 msgstr "" 4721 4698 4722 #: bp-activity/bp-activity-functions.php:6 794699 #: bp-activity/bp-activity-functions.php:662 4723 4700 msgid "%s posted an update:" 4724 4701 msgstr "" 4725 4702 4726 #: bp-activity/bp-activity-functions.php:7 314703 #: bp-activity/bp-activity-functions.php:715 4727 4704 msgid "%s posted a new activity comment:" 4728 4705 msgstr "" 4729 4706 4730 #: bp-activity/bp-activity-functions.php:9 684731 No newline at end of file 4707 #: bp-activity/bp-activity-functions.php:952 4708 No newline at end of file 4732 4709 msgid "Thumbnail" 4733 4710 msgstr "" -
bp-loader.php
27 27 28 28 // Define on which blog ID BuddyPress should run 29 29 if ( !defined( 'BP_ROOT_BLOG' ) ) { 30 if ( is_multisite() ) { 30 31 // Root blog is the main site on this network 32 if ( is_multisite() && !defined( 'BP_ENABLE_MULTIBLOG' ) ) { 31 33 $current_site = get_current_site(); 32 34 $root_blog_id = $current_site->blog_id; 33 } else { 35 36 // Root blog is every site on this network 37 } elseif ( is_multisite() && defined( 'BP_ENABLE_MULTIBLOG' ) ) { 38 $root_blog_id = get_current_blog_id(); 39 40 // Root blog is the only blog on this network 41 } elseif( !is_multisite() ) { 34 42 $root_blog_id = 1; 35 43 } 36 44 … … 103 111 104 112 // Switch the user to the new bp-default if they are using the old 105 113 // bp-default on activation. 106 if ( 'bp-sn-parent' == get_blog_option( BP_ROOT_BLOG, 'template' ) && 'bp-default' == get_blog_option( BP_ROOT_BLOG, 'stylesheet' ) )114 if ( 'bp-sn-parent' == get_blog_option( bp_get_root_blog_id(), 'template' ) && 'bp-default' == get_blog_option( bp_get_root_blog_id(), 'stylesheet' ) ) 107 115 switch_theme( 'bp-default', 'bp-default' ); 108 116 109 117 do_action( 'bp_loader_activate' ); -
bp-members/bp-members-actions.php
48 48 49 49 foreach ( (array) $blogs as $key => $details ) { 50 50 // Do not mark the main or current root blog as spam 51 if ( 1 == $details->userblog_id || BP_ROOT_BLOG== $details->userblog_id )52 No newline at end of file 51 if ( 1 == $details->userblog_id || bp_get_root_blog_id() == $details->userblog_id ) 52 No newline at end of file 53 53 continue; 54 54 -
bp-members/bp-members-buddybar.php
// Update the blog status
48 48 return false; 49 49 50 50 // Hide on root blog 51 if ( $wpdb->blogid == BP_ROOT_BLOG|| !bp_is_active( 'blogs' ) )51 if ( $wpdb->blogid == bp_get_root_blog_id() || !bp_is_active( 'blogs' ) ) 52 52 return false; 53 53 54 54 $blog_prefix = $wpdb->get_blog_prefix( $wpdb->blogid ); -
bp-messages/bp-messages-notifications.php
24 24 25 25 // Set up and send the message 26 26 $email_to = $ud->user_email; 27 $sitename = wp_specialchars_decode( get_blog_option( BP_ROOT_BLOG, 'blogname' ), ENT_QUOTES );28 No newline at end of file 27 $sitename = wp_specialchars_decode( get_blog_option( bp_get_root_blog_id(), 'blogname' ), ENT_QUOTES ); 28 No newline at end of file 29 29 $email_subject = '[' . $sitename . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name ); 30 30