Ticket #1364: page_title_i18n_2.patch
File page_title_i18n_2.patch, 13.0 KB (added by , 14 years ago) |
---|
-
bp-activity.php
59 59 60 60 $bp->activity->table_name = $wpdb->base_prefix . 'bp_activity_user_activity_cached'; 61 61 $bp->activity->slug = BP_ACTIVITY_SLUG; 62 $bp->activity->title = apply_filters( 'bp_activity_title', __( 'Activity', 'buddypress' ) ); 62 63 63 64 /* Register this in the active components array */ 64 65 $bp->active_components[$bp->activity->slug] = $bp->activity->id; … … 86 87 global $bp; 87 88 88 89 /* Add 'Activity' to the main navigation */ 89 bp_core_new_nav_item( array( 'name' => __( 'Activity', 'buddypress' ), 'slug' => $bp->activity->slug, 'position' => 10, 'screen_function' => 'bp_activity_screen_my_activity', 'default_subnav_slug' => 'just-me', 'item_css_id' => $bp->activity->id ) );90 bp_core_new_nav_item( array( 'name' => $bp->activity->title, 'slug' => $bp->activity->slug, 'position' => 10, 'screen_function' => 'bp_activity_screen_my_activity', 'default_subnav_slug' => 'just-me', 'item_css_id' => $bp->activity->id ) ); 90 91 91 92 $activity_link = $bp->loggedin_user->domain . $bp->activity->slug . '/'; 92 93 -
bp-blogs.php
116 116 $bp->blogs->table_name_blogmeta = $wpdb->base_prefix . 'bp_user_blogs_blogmeta'; 117 117 $bp->blogs->format_notification_function = 'bp_blogs_format_notifications'; 118 118 $bp->blogs->slug = BP_BLOGS_SLUG; 119 $bp->blogs->title = apply_filters( 'bp_blogs_title', __( 'Blogs', 'buddypress' ) ); 120 $bp->blogs->directory_title = apply_filters( 'bp_blogs_directory_title', __( 'Blog Directory', 'buddypress' ) ); 119 121 120 122 /* Register this in the active components array */ 121 123 $bp->active_components[$bp->blogs->slug] = $bp->blogs->id; … … 144 146 global $bp; 145 147 146 148 /* Add 'Blogs' to the main navigation */ 147 bp_core_new_nav_item( array( 'name' => __( 'Blogs', 'buddypress' ), 'slug' => $bp->blogs->slug, 'position' => 30, 'screen_function' => 'bp_blogs_screen_my_blogs', 'default_subnav_slug' => 'my-blogs', 'item_css_id' => $bp->blogs->id ) );149 bp_core_new_nav_item( array( 'name' => $bp->blogs->title, 'slug' => $bp->blogs->slug, 'position' => 30, 'screen_function' => 'bp_blogs_screen_my_blogs', 'default_subnav_slug' => 'my-blogs', 'item_css_id' => $bp->blogs->id ) ); 148 150 149 151 $blogs_link = $bp->loggedin_user->domain . $bp->blogs->slug . '/'; 150 152 -
bp-core.php
340 340 341 341 /* Add 'Profile' to the main navigation */ 342 342 bp_core_new_nav_item( array( 343 'name' => __('Profile', 'buddypress'),343 'name' => apply_filters( 'bp_profile_title', __( 'Profile', 'buddypress' ) ), 344 344 'slug' => $bp->core->profile->slug, 345 345 'position' => 20, 346 346 'screen_function' => 'bp_core_catch_profile_uri', -
bp-core/bp-core-settings.php
9 9 /* Set up settings as a sudo-component for identification and nav selection */ 10 10 $bp->settings->id = 'settings'; 11 11 $bp->settings->slug = BP_SETTINGS_SLUG; 12 $bp->settings->title = apply_filters( 'bp_settings_title', __( 'Settings', 'buddypress' ) ); 12 13 13 14 /* Register this in the active components array */ 14 15 $bp->active_components[$bp->settings->slug] = $bp->settings->id; 15 16 16 17 /* Add the settings navigation item */ 17 bp_core_new_nav_item( array( 'name' => __('Settings', 'buddypress'), 'slug' => $bp->settings->slug, 'position' => 100, 'show_for_displayed_user' => false, 'screen_function' => 'bp_core_screen_general_settings', 'default_subnav_slug' => 'general' ) );18 bp_core_new_nav_item( array( 'name' => $bp->settings->title, 'slug' => $bp->settings->slug, 'position' => 100, 'show_for_displayed_user' => false, 'screen_function' => 'bp_core_screen_general_settings', 'default_subnav_slug' => 'general' ) ); 18 19 19 20 $settings_link = $bp->loggedin_user->domain . 'settings/'; 20 21 -
bp-core/bp-core-templatetags.php
489 489 $title = __( 'Blog', 'buddypress' ); 490 490 491 491 } else if ( !empty( $bp->displayed_user->fullname ) ) { 492 $title = strip_tags( $bp->displayed_user->fullname . ' — ' . ucwords( $bp->current_component ). ' — ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'] );492 $title = strip_tags( $bp->displayed_user->fullname . ' — ' . $bp->{$bp->current_component}->title . ' — ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'] ); 493 493 } else if ( $bp->is_single_item ) { 494 $title = ucwords( $bp->current_component ). ' — ' . $bp->bp_options_title;494 $title = $bp->{$bp->current_component}->title . ' — ' . $bp->bp_options_title; 495 495 } else if ( $bp->is_directory ) { 496 if ( !$bp->current_component )497 $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( BP_MEMBERS_SLUG) );496 if ( !$bp->current_component || BP_MEMBERS_SLUG == $bp->current_component ) 497 $title = apply_filters( 'bp_members_directory_title', __( 'Members Directory', 'buddypress' ) ); 498 498 else 499 $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( $bp->current_component ) ); 499 $title = $bp->{$bp->current_component}->directory_title; 500 } else if ( BP_REGISTER_SLUG == $bp->current_component ) { 501 $title = apply_filters( 'bp_signup_title', __( 'Sign Up', 'buddypress' ) ); 502 } else if ( BP_ACTIVATION_SLUG == $bp->current_component ) { 503 $title = apply_filters( 'bp_activation_title', __( 'Activation', 'buddypress' ) ); 500 504 } else { 501 505 global $post; 502 506 $title = get_the_title($post->ID); -
bp-forums.php
22 22 $bp->forums->image_base = BP_PLUGIN_URL . '/bp-forums/images'; 23 23 $bp->forums->bbconfig = get_site_option( 'bb-config-location' ); 24 24 $bp->forums->slug = BP_FORUMS_SLUG; 25 $bp->forums->title = apply_filters( 'bp_forums_title', __( 'Forums', 'buddypress' ) ); 26 $bp->forums->directory_title = apply_filters( 'bp_groups_directory_title', __( 'Forum Directory', 'buddypress' ) ); 25 27 26 28 /* Register this in the active components array */ 27 29 $bp->active_components[$bp->forums->slug] = $bp->forums->id; -
bp-friends.php
45 45 $bp->friends->table_name = $wpdb->base_prefix . 'bp_friends'; 46 46 $bp->friends->format_notification_function = 'friends_format_notifications'; 47 47 $bp->friends->slug = BP_FRIENDS_SLUG; 48 $bp->friends->title = apply_filters( 'bp_friends_title', __( 'Friends', 'buddypress' ) ); 48 49 49 50 /* Register this in the active components array */ 50 51 $bp->active_components[$bp->friends->slug] = $bp->friends->id; … … 70 71 global $bp; 71 72 72 73 /* Add 'Friends' to the main navigation */ 73 bp_core_new_nav_item( array( 'name' => __('Friends', 'buddypress'), 'slug' => $bp->friends->slug, 'position' => 60, 'screen_function' => 'friends_screen_my_friends', 'default_subnav_slug' => 'my-friends', 'item_css_id' => $bp->friends->id ) );74 bp_core_new_nav_item( array( 'name' => $bp->friends->title, 'slug' => $bp->friends->slug, 'position' => 60, 'screen_function' => 'friends_screen_my_friends', 'default_subnav_slug' => 'my-friends', 'item_css_id' => $bp->friends->id ) ); 74 75 75 76 $friends_link = $bp->loggedin_user->domain . $bp->friends->slug . '/'; 76 77 -
bp-groups.php
130 130 $bp->groups->table_name_groupmeta = $wpdb->base_prefix . 'bp_groups_groupmeta'; 131 131 $bp->groups->format_notification_function = 'groups_format_notifications'; 132 132 $bp->groups->slug = BP_GROUPS_SLUG; 133 $bp->groups->title = apply_filters( 'bp_groups_title', __( 'Groups', 'buddypress' ) ); 134 $bp->groups->directory_title = apply_filters( 'bp_groups_directory_title', __( 'Groups Directory', 'buddypress' ) ); 133 135 134 136 /* Register this in the active components array */ 135 137 $bp->active_components[$bp->groups->slug] = $bp->groups->id; … … 211 213 } 212 214 213 215 /* Add 'Groups' to the main navigation */ 214 bp_core_new_nav_item( array( 'name' => __('Groups', 'buddypress'), 'slug' => $bp->groups->slug, 'position' => 70, 'screen_function' => 'groups_screen_my_groups', 'default_subnav_slug' => 'my-groups', 'item_css_id' => $bp->groups->id ) );216 bp_core_new_nav_item( array( 'name' => $bp->groups->title, 'slug' => $bp->groups->slug, 'position' => 70, 'screen_function' => 'groups_screen_my_groups', 'default_subnav_slug' => 'my-groups', 'item_css_id' => $bp->groups->id ) ); 215 217 216 218 $groups_link = $bp->loggedin_user->domain . $bp->groups->slug . '/'; 217 219 -
bp-messages.php
84 84 $bp->messages->format_activity_function = 'messages_format_activity'; 85 85 $bp->messages->format_notification_function = 'messages_format_notifications'; 86 86 $bp->messages->slug = BP_MESSAGES_SLUG; 87 87 $bp->messages->title = apply_filters( 'bp_messages_title', __( 'Messages', 'buddypress' ) ); 88 88 89 /* Register this in the active components array */ 89 90 $bp->active_components[$bp->messages->slug] = $bp->messages->id; 90 91 … … 115 116 } 116 117 117 118 /* Add 'Messages' to the main navigation */ 118 bp_core_new_nav_item( array( 'name' => __('Messages', 'buddypress'), 'slug' => $bp->messages->slug, 'position' => 50, 'show_for_displayed_user' => false, 'screen_function' => 'messages_screen_inbox', 'default_subnav_slug' => 'inbox', 'item_css_id' => $bp->messages->id ) );119 bp_core_new_nav_item( array( 'name' => $bp->messages->title, 'slug' => $bp->messages->slug, 'position' => 50, 'show_for_displayed_user' => false, 'screen_function' => 'messages_screen_inbox', 'default_subnav_slug' => 'inbox', 'item_css_id' => $bp->messages->id ) ); 119 120 120 121 $messages_link = $bp->loggedin_user->domain . $bp->messages->slug . '/'; 121 122 -
bp-status.php
11 11 /* For internal identification */ 12 12 $bp->status->id = 'status'; 13 13 $bp->status->slug = BP_STATUS_SLUG; 14 $bp->status->title = apply_filters( 'bp_status_title', __( 'Status', 'buddypress' ) ); 14 15 15 16 /* Register this in the active components array */ 16 17 $bp->active_components[$bp->status->slug] = $bp->status->id; -
bp-wire.php
21 21 22 22 /* For internal identification */ 23 23 $bp->wire->id = 'wire'; 24 25 24 $bp->wire->slug = BP_WIRE_SLUG; 26 25 $bp->wire->title = apply_filters( 'bp_wire_title', __( 'Wire', 'buddypress' ) ); 26 27 27 /* Register this in the active components array */ 28 28 $bp->active_components[$bp->wire->slug] = $bp->wire->id; 29 29 … … 40 40 return false; 41 41 42 42 /* Add 'Wire' to the main navigation */ 43 bp_core_new_nav_item( array( 'name' => __('Wire', 'buddypress'), 'slug' => $bp->wire->slug, 'position' => 40, 'screen_function' => 'bp_wire_screen_latest', 'default_subnav_slug' => 'all-posts', 'item_css_id' => $bp->wire->id ) );43 bp_core_new_nav_item( array( 'name' => $bp->wire->title, 'slug' => $bp->wire->slug, 'position' => 40, 'screen_function' => 'bp_wire_screen_latest', 'default_subnav_slug' => 'all-posts', 'item_css_id' => $bp->wire->id ) ); 44 44 45 45 $wire_link = $bp->loggedin_user->domain . $bp->wire->slug . '/'; 46 46 -
bp-xprofile.php
141 141 142 142 $bp->profile->format_notification_function = 'xprofile_format_notifications'; 143 143 $bp->profile->slug = BP_XPROFILE_SLUG; 144 $bp->profile->title = apply_filters( 'bp_profile_title', __( 'Profile', 'buddypress' ) ); 144 145 145 146 /* Register this in the active components array */ 146 147 $bp->active_components[$bp->profile->slug] = $bp->profile->id; … … 204 205 global $bp; 205 206 206 207 /* Add 'Profile' to the main navigation */ 207 bp_core_new_nav_item( array( 'name' => __( 'Profile', 'buddypress' ), 'slug' => $bp->profile->slug, 'position' => 20, 'screen_function' => 'xprofile_screen_display_profile', 'default_subnav_slug' => 'public', 'item_css_id' => $bp->profile->id ) );208 bp_core_new_nav_item( array( 'name' => $bp->profile->title, 'slug' => $bp->profile->slug, 'position' => 20, 'screen_function' => 'xprofile_screen_display_profile', 'default_subnav_slug' => 'public', 'item_css_id' => $bp->profile->id ) ); 208 209 209 210 $profile_link = $bp->loggedin_user->domain . $bp->profile->slug . '/'; 210 211