How do you translate a component name in the SWA filter menu ?
In bp-activity-templatetags.php, there is a function called bp_get_activity_filter_links who shows the SWA filter menu.
I have a new comonent who appears in the menu list, but who’s not translated. The comp name is in the .po file and is translated on other part of the site. So the problem is somewhere else, maybe in the BP core ?
I tried to add the component name in the above list, to “make sure”, but this didn’t work.
/* Make sure all core internal component names are translatable */
$translatable_component_names = array( __( 'profile', 'buddypress'), __( 'friends', 'buddypress' ), __( 'groups', 'buddypress' ), __( 'status', 'buddypress' ), __( 'blogs', 'buddypress' ) );
$component_links = $before . '<a href="' . attribute_escape( $link ) . '">' . ucwords( __( $component_name, 'buddypress' ) ) . '</a>' . $after;
Thank you for ideas or help.
- The topic ‘How do you translate a component name in the SWA filter menu ?’ is closed to new replies.