Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/16/2009 02:40:47 PM (15 years ago)
Author:
apeatling
Message:

Fixing missing translation and template tag bug in new widgets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/bp-core/bp-core-widgets.php

    r1612 r1617  
    7171class BP_Core_Members_Widget extends WP_Widget {
    7272    function bp_core_members_widget() {
    73         parent::WP_Widget( false, $name = 'Members' );
     73        parent::WP_Widget( false, $name = __( 'Members', 'buddypress' ) );
    7474        wp_enqueue_script( 'bp_core_widget_members-js', BP_PLUGIN_URL . '/bp-core/js/widget-members.js', array('jquery', 'jquery-livequery-pack') );       
    7575        wp_enqueue_style( 'bp_core_widget_members-css', BP_PLUGIN_URL . '/bp-core/css/widget-members.css' );
     
    102102
    103103                        <div class="item">
    104                             <div class="item-title fn"><a href="<?php bp_the_site_member_name() ?>" title="<?php bp_the_site_member_name() ?>"><?php bp_the_site_member_name() ?></a></div>
     104                            <div class="item-title fn"><a href="<?php bp_the_site_member_link() ?>" title="<?php bp_the_site_member_name() ?>"><?php bp_the_site_member_name() ?></a></div>
    105105                            <div class="item-meta"><span class="activity"><?php echo bp_core_get_last_activity( bp_get_the_site_member_registered(), __( 'registered %s ago', 'buddypress' ) ) ?></span></div>
    106106                        </div>
     
    145145class BP_Core_Whos_Online_Widget extends WP_Widget {
    146146    function bp_core_whos_online_widget() {
    147         parent::WP_Widget( false, $name = 'Who\'s Online Avatars' );
     147        parent::WP_Widget( false, $name = __( "Who's Online Avatars", 'buddypress' ) );
    148148    }
    149149
     
    199199class BP_Core_Recently_Active_Widget extends WP_Widget {
    200200    function bp_core_recently_active_widget() {
    201         parent::WP_Widget( false, $name = 'Recently Active Member Avatars' );
     201        parent::WP_Widget( false, $name = __( 'Recently Active Member Avatars' ) );
    202202    }
    203203
Note: See TracChangeset for help on using the changeset viewer.