Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/12/2008 08:19:04 PM (17 years ago)
Author:
apeatling
Message:

Added the 'buddypress' textdomain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-templatetags.php

    r375 r391  
    141141function bp_group_type() {
    142142    global $groups_template;
    143     echo ucwords($groups_template->group->status) . ' ' . __('Group'); 
     143    echo ucwords($groups_template->group->status) . ' ' . __('Group', 'buddypress');   
    144144}
    145145
     
    205205   
    206206    if ( $groups_template->group->is_public ) {
    207         _e('Public');
     207        _e('Public', 'buddypress');
    208208    } else {
    209         _e('Private');
     209        _e('Private', 'buddypress');
    210210    }
    211211}
     
    219219   
    220220    if ( $groups_template->group->is_invitation_only ) {
    221         _e('Invitation Only');
     221        _e('Invitation Only', 'buddypress');
    222222    } else {
    223         _e('Open');
     223        _e('Open', 'buddypress');
    224224    }
    225225}
     
    280280    if ( $bp['current_action'] == 'my-groups' || !$bp['current_action'] ) {
    281281        $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/my-groups/search/';
    282         $label = __('Filter Groups');
     282        $label = __('Filter Groups', 'buddypress');
    283283        $type = 'group';
    284284    } else {
    285285        $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/group-finder/search/';
    286         $label = __('Find a Group');
     286        $label = __('Find a Group', 'buddypress');
    287287        $type = 'groupfinder';
    288288        $value = $bp['action_variables'][1];
     
    323323    global $bp, $create_group_step, $completed_to_step;
    324324?>
    325     <li<?php if ( $create_group_step == '1' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/1">1. <?php _e('Group Details') ?></a></li>
    326     <li<?php if ( $create_group_step == '2' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 0 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/2">2. <?php _e('Group Settings') ?></a><?php } else { ?><span>2. <?php _e('Group Settings') ?></span><?php } ?></li>
    327     <li<?php if ( $create_group_step == '3' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 1 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/3">3. <?php _e('Group Avatar') ?></a><?php } else { ?><span>3. <?php _e('Group Avatar') ?></span><?php } ?></li>
    328     <li<?php if ( $create_group_step == '4' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 2 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/4">4. <?php _e('Invite Members') ?></a><?php } else { ?><span>4. <?php _e('Invite Members') ?></span><?php } ?></li>
     325    <li<?php if ( $create_group_step == '1' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/1">1. <?php _e('Group Details', 'buddypress') ?></a></li>
     326    <li<?php if ( $create_group_step == '2' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 0 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/2">2. <?php _e('Group Settings', 'buddypress') ?></a><?php } else { ?><span>2. <?php _e('Group Settings', 'buddypress') ?></span><?php } ?></li>
     327    <li<?php if ( $create_group_step == '3' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 1 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/3">3. <?php _e('Group Avatar', 'buddypress') ?></a><?php } else { ?><span>3. <?php _e('Group Avatar', 'buddypress') ?></span><?php } ?></li>
     328    <li<?php if ( $create_group_step == '4' ) : ?> class="current"<?php endif; ?>><?php if ( $completed_to_step > 2 ) { ?><a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>/create/step/4">4. <?php _e('Invite Members', 'buddypress') ?></a><?php } else { ?><span>4. <?php _e('Invite Members', 'buddypress') ?></span><?php } ?></li>
    329329<?php
    330330}
     
    335335    switch( $create_group_step ) {
    336336        case '1':
    337             echo '<span>&mdash; ' . __('Group Details') . '</span>';
     337            echo '<span>&mdash; ' . __('Group Details', 'buddypress') . '</span>';
    338338        break;
    339339       
    340340        case '2':
    341             echo '<span>&mdash; ' . __('Group Settings') . '</span>';       
     341            echo '<span>&mdash; ' . __('Group Settings', 'buddypress') . '</span>';     
    342342        break;
    343343       
    344344        case '3':
    345             echo '<span>&mdash; ' . __('Group Avatar') . '</span>';
     345            echo '<span>&mdash; ' . __('Group Avatar', 'buddypress') . '</span>';
    346346        break;
    347347       
    348348        case '4':
    349             echo '<span>&mdash; ' . __('Invite Members') . '</span>';
     349            echo '<span>&mdash; ' . __('Invite Members', 'buddypress') . '</span>';
    350350        break;
    351351    }
     
    360360    <?php switch( $create_group_step ) {
    361361        case '1': ?>
    362             <label for="group-name">* <?php _e('Group Name') ?></label>
     362            <label for="group-name">* <?php _e('Group Name', 'buddypress') ?></label>
    363363            <input type="text" name="group-name" id="group-name" value="<?php echo ( $group_obj ) ? $group_obj->name : $_POST['group-name']; ?>" />
    364364       
    365             <label for="group-desc">* <?php _e('Group Description') ?></label>
     365            <label for="group-desc">* <?php _e('Group Description', 'buddypress') ?></label>
    366366            <textarea name="group-desc" id="group-desc"><?php echo ( $group_obj ) ? $group_obj->description : $_POST['group-desc']; ?></textarea>
    367367       
    368             <label for="group-news">* <?php _e('Recent News') ?></label>
     368            <label for="group-news">* <?php _e('Recent News', 'buddypress') ?></label>
    369369            <textarea name="group-news" id="group-news"><?php echo ( $group_obj ) ? $group_obj->news : $_POST['group-news']; ?></textarea>
    370370           
    371             <input type="submit" value="<?php _e('Save and Continue') ?> &raquo;" id="save" name="save" />
     371            <input type="submit" value="<?php _e('Save and Continue', 'buddypress') ?> &raquo;" id="save" name="save" />
    372372        <?php break; ?>
    373373       
     
    375375            <?php if ( $completed_to_step > 0 ) { ?>
    376376                <div class="checkbox">
    377                     <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php if ( $group_obj->enable_wire ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable comment wire') ?></label>
     377                    <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php if ( $group_obj->enable_wire ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable comment wire', 'buddypress') ?></label>
    378378                </div>
    379379                <div class="checkbox">
    380                     <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php if ( $group_obj->enable_forum ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable discussion forum') ?></label>
     380                    <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php if ( $group_obj->enable_forum ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable discussion forum', 'buddypress') ?></label>
    381381                </div>
    382382                <div class="checkbox with-suboptions">
    383                     <label><input type="checkbox" name="group-show-photos" id="group-show-photos" value="1"<?php if ( $group_obj->enable_photos ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable photo gallery') ?></label>
     383                    <label><input type="checkbox" name="group-show-photos" id="group-show-photos" value="1"<?php if ( $group_obj->enable_photos ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable photo gallery', 'buddypress') ?></label>
    384384                    <div class="sub-options"<?php if ( !$group_obj->enable_photos ) { ?> style="display: none;"<?php } ?>>
    385                         <label><input type="radio" name="group-photos-status" value="all"<?php if ( !$group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('All members can upload photos') ?></label>
    386                         <label><input type="radio" name="group-photos-status" value="admins"<?php if ( $group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('Only group admins can upload photos') ?></label>
     385                        <label><input type="radio" name="group-photos-status" value="all"<?php if ( !$group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('All members can upload photos', 'buddypress') ?></label>
     386                        <label><input type="radio" name="group-photos-status" value="admins"<?php if ( $group_obj->photos_admin_only ) { ?> checked="checked"<?php } ?> /> <?php _e('Only group admins can upload photos', 'buddypress') ?></label>
    387387                    </div>
    388388                </div>
    389389           
    390                 <h3><?php _e('Privacy Options'); ?></h3>
     390                <h3><?php _e('Privacy Options', 'buddypress'); ?></h3>
    391391           
    392392                <div class="radio">
    393                     <label><input type="radio" name="group-status" value="public"<?php if ( $group_obj->status == 'public' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is an open group') ?></strong><br /><?php _e('This group will be free to join and will appear in group search results.'); ?></label>
    394                     <label><input type="radio" name="group-status" value="private"<?php if ( $group_obj->status == 'private' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a closed group') ?></strong><br /><?php _e('This group will require an invite to join but will still appear in group search results.'); ?></label>
    395                     <label><input type="radio" name="group-status" value="hidden"<?php if ( $group_obj->status == 'hidden' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a hidden group') ?></strong><br /><?php _e('This group will require an invite to join and will only be visible to invited members. It will not appear in search results or on member profiles.'); ?></label>
    396                 </div>
    397 
    398                 <input type="submit" value="<?php _e('Save and Continue') ?> &raquo;" id="save" name="save" />
     393                    <label><input type="radio" name="group-status" value="public"<?php if ( $group_obj->status == 'public' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is an open group', 'buddypress') ?></strong><br /><?php _e('This group will be free to join and will appear in group search results.', 'buddypress'); ?></label>
     394                    <label><input type="radio" name="group-status" value="private"<?php if ( $group_obj->status == 'private' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a closed group', 'buddypress') ?></strong><br /><?php _e('This group will require an invite to join but will still appear in group search results.', 'buddypress'); ?></label>
     395                    <label><input type="radio" name="group-status" value="hidden"<?php if ( $group_obj->status == 'hidden' ) { ?> checked="checked"<?php } ?> /> <strong><?php _e('This is a hidden group', 'buddypress') ?></strong><br /><?php _e('This group will require an invite to join and will only be visible to invited members. It will not appear in search results or on member profiles.', 'buddypress'); ?></label>
     396                </div>
     397
     398                <input type="submit" value="<?php _e('Save and Continue', 'buddypress') ?> &raquo;" id="save" name="save" />
    399399            <?php } else { ?>
    400400                <div id="message" class="info">
     
    415415               
    416416                <div class="main-column">
    417                     <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.") ?></p>
     417                    <p><?php _e("Upload an image to use as an avatar for this group. The image will be shown on the main group page, and in search results.", 'buddypress') ?></p>
    418418                   
    419419                    <?php
     
    426426                   
    427427                    <div id="skip-continue">
    428                         <input type="submit" value="<?php _e('Skip') ?> &raquo;" id="skip" name="skip" />
     428                        <input type="submit" value="<?php _e('Skip', 'buddypress') ?> &raquo;" id="skip" name="skip" />
    429429                    </div>
    430430                </div>
     
    543543       
    544544        <div id="message" class="info">
    545             <p><?php _e('Select people to invite from your friends list.'); ?></p>
     545            <p><?php _e('Select people to invite from your friends list.', 'buddypress'); ?></p>
    546546        </div>
    547547               
     
    561561        </ul>
    562562
    563         <input type="submit" value="<?php _e('Finish &amp; Send Invites') ?> &raquo;" id="save" name="save" />
     563        <input type="submit" value="<?php _e('Finish &amp; Send Invites', 'buddypress') ?> &raquo;" id="save" name="save" />
    564564
    565565    </div>
     
    577577   
    578578    if ( is_user_logged_in() && !BP_Groups_Member::check_is_member( $bp['loggedin_userid'], $groups_template->group->id ) ) {
    579         echo '<a class="join-group" href="' . bp_group_permalink( false, false ) . '/join">' . __('Join Group') . '</a>';
     579        echo '<a class="join-group" href="' . bp_group_permalink( false, false ) . '/join">' . __('Join Group', 'buddypress') . '</a>';
    580580    }
    581581}
     
    587587?> 
    588588    <div class="info-group">
    589         <h4><?php bp_my_or_name() ?> <?php _e('Groups') ?> (<?php echo BP_Groups_Member::total_group_count() ?>) <a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>"><?php _e('See All') ?> &raquo;</a></h4>
     589        <h4><?php bp_my_or_name() ?> <?php _e('Groups', 'buddypress') ?> (<?php echo BP_Groups_Member::total_group_count() ?>) <a href="<?php echo $bp['current_domain'] . $bp['groups']['slug'] ?>"><?php _e('See All', 'buddypress') ?> &raquo;</a></h4>
    590590        <?php if ( $group_ids ) { ?>
    591591            <ul class="horiz-gallery">
     
    600600        <?php } else { ?>
    601601            <div id="message" class="info">
    602                 <p><?php bp_you_or_name() ?> <?php _e('joined any groups yet.') ?></p>
     602                <p><?php bp_you_or_name() ?> <?php _e('joined any groups yet.', 'buddypress') ?></p>
    603603            </div>
    604604        <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.