Ticket #172: buddypress_l18n_groups_theme.patch
File buddypress_l18n_groups_theme.patch, 24.1 KB (added by , 16 years ago) |
---|
-
trunk/bp-groups/bp-groups-templatetags.php
364 364 <?php 365 365 } 366 366 367 function bp_group_all_members_permalink( ) {367 function bp_group_all_members_permalink($echo = true) { 368 368 global $groups_template, $bp; 369 echo bp_group_permalink( false, true ) . '/' . MEMBERS_SLUG ; 369 370 if( $echo == true) { 371 echo bp_group_permalink( false, true ) . '/' . MEMBERS_SLUG ; 372 } else { 373 return bp_group_permalink( false, true ) . '/' . MEMBERS_SLUG ; 374 } 370 375 } 371 376 372 377 function bp_group_random_members() { … … 439 444 echo $groups_template->total_group_count; 440 445 } 441 446 442 function bp_group_total_members( ) {447 function bp_group_total_members($echo = true) { 443 448 global $groups_template; 444 449 445 echo $groups_template->group->total_member_count; 450 if($echo == true) { 451 echo $groups_template->group->total_member_count; 452 } else { 453 return $groups_template->group->total_member_count; 454 } 446 455 } 447 456 448 457 function bp_group_photos_enabled() { -
trunk/buddypress-theme/buddypress-member/groups/admin/delete-group.php
8 8 9 9 <div id="content"> 10 10 11 <h2> Delete Group</h2>11 <h2><?php _e(Delete Group"", "buddypress"); ?></h2> 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 14 14 15 15 <form action="<?php bp_group_admin_form_action('delete-group') ?>" name="group-delete-form" id="group-delete-form" class="standard-form" method="post"> 16 16 17 17 <div id="message" class="info"> 18 <p> WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.</p>18 <p><?php _e("WARNING: Deleting this group will completely remove ALL content associated with it. There is no way back, please be careful with this option.", "buddypress"); ?></p> 19 19 </div> 20 20 21 <input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> I understand the consequences of deleting this group.21 <input type="checkbox" name="delete-group-understand" id="delete-group-understand" value="1" onclick="if(this.checked) { document.getElementById('delete-group-button').disabled = ''; } else { document.getElementById('delete-group-button').disabled = 'disabled'; }" /> <?php _e("I understand the consequences of deleting this group.", "buddypress"); ?> 22 22 <p><input type="submit" disabled="disabled" value="<?php _e('Delete Group', 'buddypress') ?> »" id="delete-group-button" name="delete-group-button" /></p> 23 23 24 24 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" /> -
trunk/buddypress-theme/buddypress-member/groups/admin/edit-details.php
8 8 9 9 <div id="content"> 10 10 11 <h2> Edit Details</h2>11 <h2><?php _e("Edit Details", "buddypress"); ?></h2> 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 14 14 … … 23 23 <textarea name="group-news" id="group-news"><?php bp_group_news_editable() ?></textarea> 24 24 25 25 <p> 26 <label for="group-notifiy-members"> Notify group members of changes via email</label>27 <input type="radio" name="group-notify-members" value="1" /> Yes 28 <input type="radio" name="group-notify-members" value="0" checked="checked" /> No 26 <label for="group-notifiy-members"><?php _e("Notify group members of changes via email", "buddypress"); ?></label> 27 <input type="radio" name="group-notify-members" value="1" /> <?php _e("Yes ", "buddypress"); ?> 28 <input type="radio" name="group-notify-members" value="0" checked="checked" /> <?php _e("No ", "buddypress"); ?> 29 29 </p> 30 30 31 31 <input type="hidden" name="group-id" id="group-id" value="<?php bp_group_id() ?>" /> -
trunk/buddypress-theme/buddypress-member/groups/admin/group-settings.php
8 8 9 9 <div id="content"> 10 10 11 <h2> Group Settings</h2>11 <h2><?php _e("Group Settings", "buddypress"); ?></h2> 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 14 14 -
trunk/buddypress-theme/buddypress-member/groups/admin/manage-members.php
8 8 9 9 <div id="content"> 10 10 11 <h2> Manage Members</h2>11 <h2><?php _e("Manage Members", "buddypress"); ?></h2> 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 14 14 15 15 <div class="info-group"> 16 <h4> Administrators</h4>16 <h4><?php _e("Administrators", "buddypress"); ?></h4> 17 17 <?php bp_group_admin_memberlist( true ) ?> 18 18 </div> 19 19 20 20 <?php if ( bp_group_has_moderators() ) : ?> 21 21 <div class="info-group"> 22 <h4> Moderators</h4>22 <h4><?php _e("Moderators", "buddypress"); ?></h4> 23 23 <?php bp_group_mod_memberlist( true ) ?> 24 24 </div> 25 25 <?php endif; ?> 26 26 27 27 <div class="info-group"> 28 <h4> Members</h4>28 <h4><?php _e("Members", "buddypress"); ?></h4> 29 29 30 30 <form action="<?php bp_group_admin_form_action('manage-members') ?>" name="group-members-form" id="group-members-form" class="standard-form" method="post"> 31 31 <?php if ( bp_group_has_members( false, 15, true, false ) ) : ?> … … 46 46 <li class="banned-user"> 47 47 <?php bp_group_member_avatar_mini() ?> 48 48 49 <h5><?php bp_group_member_link() ?> (banned) <span class="small"> — <a href="<?php bp_group_member_unban_link() ?>" title="Kick and ban this member">Remove Ban</a> </h5>49 <h5><?php bp_group_member_link() ?> <?php _e("(banned)", "buddypress"); ?> <span class="small"> — <a href="<?php bp_group_member_unban_link() ?>" title="<?php _e("Kick and ban this member", "buddypress"); ?>"><?php _e("Remove Ban", "buddypress"); ?></a> </h5> 50 50 <?php else : ?> 51 51 <li> 52 52 <?php bp_group_member_avatar_mini() ?> 53 <h5><?php bp_group_member_link() ?> <span class="small"> — <a href="<?php bp_group_member_ban_link() ?>" title=" Kick and ban this member">Kick & Ban</a> | <a href="<?php bp_group_member_promote_link() ?>" title="Promote this member">Promote to Moderator</a></span></h5>53 <h5><?php bp_group_member_link() ?> <span class="small"> — <a href="<?php bp_group_member_ban_link() ?>" title="<?php _e("Kick and ban this member", "buddypress"); ?>"><?php _e("Kick & Ban", "buddypress"); ?></a> | <a href="<?php bp_group_member_promote_link() ?>" title="<?php _e("Promote this member", "buddypress"); ?>"><?php _e("Promote to Moderator", "buddypress"); ?></a></span></h5> 54 54 55 55 <?php endif; ?> 56 56 </li> … … 59 59 <?php else: ?> 60 60 61 61 <div id="message" class="info"> 62 <p> This group has no members.</p>62 <p><?php _e("This group has no members.", "buddypress"); ?></p> 63 63 </div> 64 64 65 65 <?php endif;?> -
trunk/buddypress-theme/buddypress-member/groups/admin/membership-requests.php
8 8 9 9 <div id="content"> 10 10 11 <h2> Membership Requests</h2>11 <h2><?php _e("Membership Requests", "buddypress"); ?></h2> 12 12 13 13 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 14 14 … … 20 20 <h4><?php bp_group_request_user_link() ?> <span class="comments"><?php bp_group_request_comment() ?></span></h4> 21 21 <span class="activity"><?php bp_group_request_time_since_requested() ?></span> 22 22 <div class="action"> 23 <a href="<?php bp_group_request_accept_link() ?>" id="accept"> Accept</a>24 <a href="<?php bp_group_request_reject_link() ?>" id="reject"> Reject</a>23 <a href="<?php bp_group_request_accept_link() ?>" id="accept"><?php _e("Accept", "buddypress"); ?></a> 24 <a href="<?php bp_group_request_reject_link() ?>" id="reject"><?php _e("Reject", "buddypress"); ?></a> 25 25 </div> 26 26 </li> 27 27 <?php endwhile; ?> … … 29 29 <?php else: ?> 30 30 31 31 <div id="message" class="info"> 32 <p> There are no pending membership requests.</p>32 <p><?php _e("There are no pending membership requests.", "buddypress"); ?></p> 33 33 </div> 34 34 35 35 <?php endif;?> -
trunk/buddypress-theme/buddypress-member/groups/forum.php
11 11 <?php bp_group_join_button() ?> 12 12 13 13 <div class="info-group"> 14 <h4> Admins</h4>14 <h4><?php _e("Admins", "buddypress"); ?></h4> 15 15 <?php bp_group_list_admins() ?> 16 16 </div> 17 17 18 18 <?php if ( bp_group_has_moderators() ) : ?> 19 19 <div class="info-group"> 20 <h4> Mods</h4>20 <h4><?php _e("Mods", "buddypress"); ?></h4> 21 21 <?php bp_group_list_mods() ?> 22 22 </div> 23 23 <?php endif; ?> … … 32 32 </div> 33 33 34 34 <div class="info-group"> 35 <h4> Forum</h4>36 <h3> A bbPress forum for the group will go here in the next version.</h3>35 <h4><?php _e("Forum", "buddypress"); ?></h4> 36 <h3><?php _e("A bbPress forum for the group will go here in the next version.", "buddypress"); ?></h3> 37 37 </div> 38 38 39 39 </div> -
trunk/buddypress-theme/buddypress-member/groups/group-admin.php
8 8 9 9 <div id="content"> 10 10 11 <h2><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a> » Group Admin</h2>11 <h2><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a> » <?php _e("Group Admin", "buddypress"); ?></h2> 12 12 13 13 <ul> 14 <li><a href="<?php bp_group_admin_permalink() ?>/edit-details"> Edit Details</a></li>15 <li><a href="<?php bp_group_admin_permalink() ?>/group-settings"> Group Settings</a></li>16 <li><a href="<?php bp_group_admin_permalink() ?>/manage-members"> Manage Members</a></li>17 <li><a href="<?php bp_group_admin_permalink() ?>/delete-group"> Delete Group</a></li>14 <li><a href="<?php bp_group_admin_permalink() ?>/edit-details"><?php _e("Edit Details", "buddypress"); ?></a></li> 15 <li><a href="<?php bp_group_admin_permalink() ?>/group-settings"><?php _e("Group Settings", "buddypress"); ?></a></li> 16 <li><a href="<?php bp_group_admin_permalink() ?>/manage-members"><?php _e("Manage Members", "buddypress"); ?></a></li> 17 <li><a href="<?php bp_group_admin_permalink() ?>/delete-group"><?php _e("Delete Group", "buddypress"); ?></a></li> 18 18 </ul> 19 19 </div> 20 20 -
trunk/buddypress-theme/buddypress-member/groups/group-finder.php
14 14 <div id="finder-message"> 15 15 <div id="message" class="info"> 16 16 <p> 17 <strong>Find Groups Using the Group Finder!</strong><br /> 18 Use the search box to find groups on the site. 19 Enter anything you want, currently only group titles will 20 be searched. 17 <strong><?php _e("Find Groups Using the Group Finder!", "buddypress"); ?></strong><br /> 18 <?php _e("Use the search box to find groups on the site. Enter anything you want, currently only group titles will be searched.", "buddypress"); ?> 21 19 </p> 22 20 </div> 23 21 </div> -
trunk/buddypress-theme/buddypress-member/groups/group-home.php
13 13 <?php bp_group_join_button() ?> 14 14 15 15 <div class="info-group"> 16 <h4> Admins</h4>16 <h4><?php _e("Admins", "buddypress"); ?></h4> 17 17 <?php bp_group_list_admins() ?> 18 18 </div> 19 19 20 20 <?php if ( bp_group_has_moderators() ) : ?> 21 21 <div class="info-group"> 22 <h4> Mods</h4>22 <h4><?php _e("Mods", "buddypress"); ?></h4> 23 23 <?php bp_group_list_mods() ?> 24 24 </div> 25 25 <?php endif; ?> … … 40 40 <?php endif;?> 41 41 42 42 <div class="info-group"> 43 <h4> Description</h4>43 <h4><?php _e("Description", "buddypress"); ?></h4> 44 44 <p><?php bp_group_description() ?></p> 45 45 </div> 46 46 47 47 <?php if ( bp_group_is_visible() ) : ?> 48 48 <div class="info-group"> 49 <h4> News</h4>49 <h4><?php _e("News", "buddypress"); ?></h4> 50 50 <p><?php bp_group_news() ?></p> 51 51 </div> 52 52 <?php endif; ?> 53 53 54 54 <?php if ( bp_group_is_visible() ) : ?> 55 55 <div class="info-group"> 56 <h4> Members <a href="<?php bp_group_all_members_permalink() ?>">See All »</a></h4>56 <h4><?php printf(__('Members <a href="%s">See All »</a>', 'buddypress'), bp_group_all_members_permalink(false)); ?></h4> 57 57 <?php bp_group_random_members() ?> 58 58 </div> 59 59 <?php endif; ?> 60 60 61 61 <?php if ( bp_group_is_visible() ) : ?> 62 62 <?php if ( function_exists('bp_wire_get_post_list') ) : ?> 63 <?php bp_wire_get_post_list( bp_group_id(false), 'Group Wire', 'The are no wire posts for ' . bp_group_name(false), bp_group_is_member(), true ) ?>63 <?php bp_wire_get_post_list( bp_group_id(false), __('Group Wire', 'buddypress'), sprintf(__('The are no wire posts for %s', buddypress),bp_group_name(false)), bp_group_is_member(), true ) ?> 64 64 <?php endif; ?> 65 65 <?php endif; ?> 66 66 … … 68 68 69 69 <?php endwhile; else: ?> 70 70 <div id="message" class="error"> 71 <p> Sorry, the group does not exist.</p>71 <p><?php _e("Sorry, the group does not exist.", "buddypress"); ?></p> 72 72 </div> 73 73 <?php endif;?> 74 74 -
trunk/buddypress-theme/buddypress-member/groups/group-loop.php
8 8 <?php while ( bp_groups() ) : bp_the_group(); ?> 9 9 <li> 10 10 <?php bp_group_avatar_thumb() ?> 11 <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php bp_group_total_members() ?> members</span></h4>11 <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php printf(__('%s members', 'buddypress'), bp_group_total_members(false));?></span></h4> 12 12 13 13 <?php if ( bp_group_has_requested_membership() ) : ?> 14 <p class="request-pending"> Membership Pending Approval</p>14 <p class="request-pending"><?php _e('Membership Pending Approval', 'buddypress'); ?></p> 15 15 <?php endif; ?> 16 16 17 17 <p class="desc"> -
trunk/buddypress-theme/buddypress-member/groups/leave-group-confirm.php
11 11 <?php bp_group_join_button() ?> 12 12 13 13 <div class="info-group"> 14 <h4> Admins</h4>14 <h4><?php _e("Admins", "buddypress"); ?></h4> 15 15 <?php bp_group_list_admins() ?> 16 16 </div> 17 17 18 18 <?php if ( bp_group_has_moderators() ) : ?> 19 19 <div class="info-group"> 20 <h4> Mods</h4>20 <h4><?php _e("Mods", "buddypress"); ?></h4> 21 21 <?php bp_group_list_mods() ?> 22 22 </div> 23 23 <?php endif; ?> … … 32 32 </div> 33 33 34 34 <div class="info-group"> 35 <h4> Confirm Leave Group</h4>36 <h3> Are you sure you want to leave this group?</h3>35 <h4><?php _e("Confirm Leave Group", "buddypress"); ?></h4> 36 <h3><?php _e("Are you sure you want to leave this group?", "buddypress"); ?></h3> 37 37 38 38 <p> 39 <a href="<?php bp_group_leave_confirm_link() ?>"> Yes, I'd like to leave this group.</a> |40 <a href="<?php bp_group_leave_reject_link() ?>"> No, I'll stay!</a>39 <a href="<?php bp_group_leave_confirm_link() ?>"><?php _e("Yes, I'd like to leave this group.", "buddypress"); ?></a> | 40 <a href="<?php bp_group_leave_reject_link() ?>"><?php _e("No, I'll stay!", "buddypress"); ?></a> 41 41 </p> 42 42 </div> 43 43 -
trunk/buddypress-theme/buddypress-member/groups/list-invites.php
6 6 7 7 </div> 8 8 9 <h2> Group Invites</h2>9 <h2><?php _e("Group Invites", "buddypress"); ?></h2> 10 10 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 11 11 12 12 <?php if ( bp_has_groups() ) : ?> … … 14 14 <?php while ( bp_groups() ) : bp_the_group(); ?> 15 15 <li> 16 16 <?php bp_group_avatar_thumb() ?> 17 <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php bp_group_total_members() ?> members</span></h4>17 <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php printf(__('%s members', 'buddypress'), bp_group_total_members(false));?></span></h4> 18 18 <p class="desc"> 19 19 <?php bp_group_description_excerpt() ?> 20 20 </p> 21 21 <div class="action"> 22 <a href="<?php bp_group_accept_invite_link() ?>" id="accept"> Accept</a>23 <a href="<?php bp_group_reject_invite_link() ?>" id="reject"> Reject</a>22 <a href="<?php bp_group_accept_invite_link() ?>" id="accept"><?php _e("Accept", "buddypress"); ?></a> 23 <a href="<?php bp_group_reject_invite_link() ?>" id="reject"><?php _e("Reject", "buddypress"); ?></a> 24 24 </div> 25 25 <hr /> 26 26 </li> -
trunk/buddypress-theme/buddypress-member/groups/list-members.php
11 11 <?php bp_group_join_button() ?> 12 12 13 13 <div class="info-group"> 14 <h4> Admins</h4>14 <h4><?php _e("Admins", "buddypress"); ?></h4> 15 15 <?php bp_group_list_admins() ?> 16 16 </div> 17 17 18 18 <?php if ( bp_group_has_moderators() ) : ?> 19 19 <div class="info-group"> 20 <h4> Mods</h4>20 <h4><?php _e("Mods", "buddypress"); ?></h4> 21 21 <?php bp_group_list_mods() ?> 22 22 </div> 23 23 <?php endif; ?> … … 32 32 </div> 33 33 34 34 <div class="info-group"> 35 <h4> Administrators</h4>35 <h4><?php _e("Administrators", "buddypress"); ?></h4> 36 36 <?php bp_group_admin_memberlist() ?> 37 37 </div> 38 38 39 39 <?php if ( bp_group_has_moderators() ) : ?> 40 40 <div class="info-group"> 41 <h4> Moderators</h4>41 <h4><?php _e("Moderators", "buddypress"); ?></h4> 42 42 <?php bp_group_mod_memberlist() ?> 43 43 </div> 44 44 <?php endif; ?> 45 45 46 46 <div class="info-group"> 47 <h4> Group Members</h4>47 <h4><?php _e("Group Members", "buddypress"); ?></h4> 48 48 49 49 <form action="<?php bp_group_form_action('members') ?>" method="post" id="group-members-form"> 50 50 <?php if ( bp_group_has_members() ) : ?> … … 77 77 <?php else: ?> 78 78 79 79 <div id="message" class="info"> 80 <p> This group has no members.</p>80 <p><?php _e("This group has no members.", "buddypress"); ?></p> 81 81 </div> 82 82 83 83 <?php endif;?> -
trunk/buddypress-theme/buddypress-member/groups/request-membership.php
11 11 <?php bp_group_join_button() ?> 12 12 13 13 <div class="info-group"> 14 <h4> Admins</h4>14 <h4><?php _e("Admins", "buddypress"); ?></h4> 15 15 <?php bp_group_list_admins() ?> 16 16 </div> 17 18 <?php if ( bp_group_has_moderators() ) : ?> 19 <div class="info-group"> 20 <h4><?php _e("Mods", "buddypress"); ?></h4> 21 <?php bp_group_list_mods() ?> 22 </div> 23 <?php endif; ?> 17 24 </div> 18 25 19 26 <div class="main-column"> … … 24 31 </div> 25 32 26 33 <div class="info-group"> 27 <h4> Request Membership</h4>34 <h4><?php _e("Request Membership", "buddypress"); ?></h4> 28 35 29 36 <?php do_action( 'template_notices' ) // (error/success feedback) ?> 30 37 31 38 <?php if ( !bp_group_has_requested_membership() ) : ?> 32 <p> You are requesting to become a member of the group '<?php bp_group_name() ?>'.</p>39 <p><?php printf(__("You are requesting to become a member of the group '%s'.", "buddypress"), bp_group_name(false)); ?></p> 33 40 34 41 <form action="<?php bp_group_form_action('request-membership') ?>" method="post" name="request-membership-form" id="request-membership-form" class="standard-form"> 35 <label for="group-request-membership-comments"> Comments (optional)</label>42 <label for="group-request-membership-comments"><?php _e("Comments (optional)", "buddypress"); ?></label> 36 43 <textarea name="group-request-membership-comments" id="group-request-membership-comments"></textarea> 37 44 38 45 <p><input type="submit" name="group-request-send" id="group-request-send" value="<?php _e( 'Send Request', 'buddypress' ) ?> »" /> -
trunk/buddypress-theme/buddypress-member/groups/send-invite.php
9 9 10 10 <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?> 11 11 12 <h2><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a> » Send Invites</h2>12 <h2><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a> » <?php _e("Send Invites", "buddypress"); ?></h2> 13 13 14 14 <?php if ( bp_has_friends_to_invite() ) : ?> 15 15 <form action="<?php bp_group_send_invite_form_action() ?>" method="post" id="send-invite-form"> … … 17 17 </form> 18 18 <?php else : ?> 19 19 <div id="message" class="info"> 20 <p> You either need to build up your friends list, or your friends have already been invited or are current members.</p>20 <p><?php _e("You either need to build up your friends list, or your friends have already been invited or are current members.", "buddypress"); ?></p> 21 21 </div> 22 22 <?php endif; ?> 23 23 <?php endwhile; endif; ?> -
trunk/buddypress-theme/buddypress-member/groups/wire.php
13 13 <?php bp_group_join_button() ?> 14 14 15 15 <div class="info-group"> 16 <h4> Admins</h4>16 <h4><?php _e("Admins", "buddypress"); ?></h4> 17 17 <?php bp_group_list_admins() ?> 18 18 </div> 19 19 20 20 <?php if ( bp_group_has_moderators() ) : ?> 21 21 <div class="info-group"> 22 <h4> Mods</h4>22 <h4><?php _e("Mods", "buddypress"); ?></h4> 23 23 <?php bp_group_list_mods() ?> 24 24 </div> 25 25 <?php endif; ?>