Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2014 02:38:24 PM (10 years ago)
Author:
boonebgorges
Message:

Improve strings used for <title> and header of directory pages

Our legacy method for creating directory titles involved concatenating the
component name into '% Directory', which did not work well in languages where
a term like 'Groups Directory' would be translated into a single word. In
addition, there was inconistency between the <title> element on directory pages
and the header element used in the page body.

This changeset introduces a 'directory_title' parameter to BP_Core_Component,
so that directories can register a fully localizable string as the title/
header for directories.

To avoid filter name conflicts, the filter names associated with the headers
on group and blog directory pages were changed to _directory_header. See r7942,

See #4726, #4630

Fixes #4631

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-templates/bp-legacy/buddypress-functions.php

    r8088 r8090  
    112112                add_action( 'bp_group_header_actions',     'bp_group_new_topic_button',      20 );
    113113                add_action( 'bp_directory_groups_actions', 'bp_group_join_button' );
    114                 add_filter( 'bp_groups_directory_title',   'bp_legacy_theme_group_create_button' );
    115                 add_filter( 'bp_blogs_directory_title',    'bp_legacy_theme_blog_create_button' );
     114                add_filter( 'bp_groups_directory_header',  'bp_legacy_theme_group_create_button' );
     115                add_filter( 'bp_blogs_directory_header',   'bp_legacy_theme_blog_create_button' );
    116116            }
    117117
Note: See TracChangeset for help on using the changeset viewer.