Changeset 391 for trunk/bp-groups/bp-groups-templatetags.php
- Timestamp:
- 10/12/2008 08:19:04 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups/bp-groups-templatetags.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r375 r391 141 141 function bp_group_type() { 142 142 global $groups_template; 143 echo ucwords($groups_template->group->status) . ' ' . __('Group' );143 echo ucwords($groups_template->group->status) . ' ' . __('Group', 'buddypress'); 144 144 } 145 145 … … 205 205 206 206 if ( $groups_template->group->is_public ) { 207 _e('Public' );207 _e('Public', 'buddypress'); 208 208 } else { 209 _e('Private' );209 _e('Private', 'buddypress'); 210 210 } 211 211 } … … 219 219 220 220 if ( $groups_template->group->is_invitation_only ) { 221 _e('Invitation Only' );221 _e('Invitation Only', 'buddypress'); 222 222 } else { 223 _e('Open' );223 _e('Open', 'buddypress'); 224 224 } 225 225 } … … 280 280 if ( $bp['current_action'] == 'my-groups' || !$bp['current_action'] ) { 281 281 $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/my-groups/search/'; 282 $label = __('Filter Groups' );282 $label = __('Filter Groups', 'buddypress'); 283 283 $type = 'group'; 284 284 } else { 285 285 $action = $bp['loggedin_domain'] . $bp['groups']['slug'] . '/group-finder/search/'; 286 $label = __('Find a Group' );286 $label = __('Find a Group', 'buddypress'); 287 287 $type = 'groupfinder'; 288 288 $value = $bp['action_variables'][1]; … … 323 323 global $bp, $create_group_step, $completed_to_step; 324 324 ?> 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> 329 329 <?php 330 330 } … … 335 335 switch( $create_group_step ) { 336 336 case '1': 337 echo '<span>— ' . __('Group Details' ) . '</span>';337 echo '<span>— ' . __('Group Details', 'buddypress') . '</span>'; 338 338 break; 339 339 340 340 case '2': 341 echo '<span>— ' . __('Group Settings' ) . '</span>';341 echo '<span>— ' . __('Group Settings', 'buddypress') . '</span>'; 342 342 break; 343 343 344 344 case '3': 345 echo '<span>— ' . __('Group Avatar' ) . '</span>';345 echo '<span>— ' . __('Group Avatar', 'buddypress') . '</span>'; 346 346 break; 347 347 348 348 case '4': 349 echo '<span>— ' . __('Invite Members' ) . '</span>';349 echo '<span>— ' . __('Invite Members', 'buddypress') . '</span>'; 350 350 break; 351 351 } … … 360 360 <?php switch( $create_group_step ) { 361 361 case '1': ?> 362 <label for="group-name">* <?php _e('Group Name' ) ?></label>362 <label for="group-name">* <?php _e('Group Name', 'buddypress') ?></label> 363 363 <input type="text" name="group-name" id="group-name" value="<?php echo ( $group_obj ) ? $group_obj->name : $_POST['group-name']; ?>" /> 364 364 365 <label for="group-desc">* <?php _e('Group Description' ) ?></label>365 <label for="group-desc">* <?php _e('Group Description', 'buddypress') ?></label> 366 366 <textarea name="group-desc" id="group-desc"><?php echo ( $group_obj ) ? $group_obj->description : $_POST['group-desc']; ?></textarea> 367 367 368 <label for="group-news">* <?php _e('Recent News' ) ?></label>368 <label for="group-news">* <?php _e('Recent News', 'buddypress') ?></label> 369 369 <textarea name="group-news" id="group-news"><?php echo ( $group_obj ) ? $group_obj->news : $_POST['group-news']; ?></textarea> 370 370 371 <input type="submit" value="<?php _e('Save and Continue' ) ?> »" id="save" name="save" />371 <input type="submit" value="<?php _e('Save and Continue', 'buddypress') ?> »" id="save" name="save" /> 372 372 <?php break; ?> 373 373 … … 375 375 <?php if ( $completed_to_step > 0 ) { ?> 376 376 <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> 378 378 </div> 379 379 <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> 381 381 </div> 382 382 <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> 384 384 <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> 387 387 </div> 388 388 </div> 389 389 390 <h3><?php _e('Privacy Options' ); ?></h3>390 <h3><?php _e('Privacy Options', 'buddypress'); ?></h3> 391 391 392 392 <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' ) ?> »" 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') ?> »" id="save" name="save" /> 399 399 <?php } else { ?> 400 400 <div id="message" class="info"> … … 415 415 416 416 <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> 418 418 419 419 <?php … … 426 426 427 427 <div id="skip-continue"> 428 <input type="submit" value="<?php _e('Skip' ) ?> »" id="skip" name="skip" />428 <input type="submit" value="<?php _e('Skip', 'buddypress') ?> »" id="skip" name="skip" /> 429 429 </div> 430 430 </div> … … 543 543 544 544 <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> 546 546 </div> 547 547 … … 561 561 </ul> 562 562 563 <input type="submit" value="<?php _e('Finish & Send Invites' ) ?> »" id="save" name="save" />563 <input type="submit" value="<?php _e('Finish & Send Invites', 'buddypress') ?> »" id="save" name="save" /> 564 564 565 565 </div> … … 577 577 578 578 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>'; 580 580 } 581 581 } … … 587 587 ?> 588 588 <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') ?> »</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') ?> »</a></h4> 590 590 <?php if ( $group_ids ) { ?> 591 591 <ul class="horiz-gallery"> … … 600 600 <?php } else { ?> 601 601 <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> 603 603 </div> 604 604 <?php } ?>
Note: See TracChangeset
for help on using the changeset viewer.