Ticket #172: buddypress_l18n_4.patch
File buddypress_l18n_4.patch, 8.1 KB (added by , 16 years ago) |
---|
-
bp-wire/bp-wire-templatetags.php
224 224 echo $bp['wire']['image_base'] . '/ajax-loader.gif'; 225 225 } 226 226 227 function bp_wire_post_date( $date_format = null ) {227 function bp_wire_post_date( $date_format = null, $echo = true ) { 228 228 global $wire_posts_template; 229 229 230 230 if ( !$date_format ) 231 231 $date_format = get_option('date_format'); 232 232 233 echo mysql2date( $date_format, $wire_posts_template->wire_post->date_posted ); 233 if ( $echo == true ) 234 echo mysql2date( $date_format, $wire_posts_template->wire_post->date_posted ); 235 else 236 return mysql2date( $date_format, $wire_posts_template->wire_post->date_posted ); 234 237 } 235 238 236 function bp_wire_post_author_name( ) {239 function bp_wire_post_author_name( $echo = true ) { 237 240 global $wire_posts_template; 238 241 239 echo bp_core_get_userlink( $wire_posts_template->wire_post->user_id ); 242 if ( $echo == true ) 243 echo bp_core_get_userlink( $wire_posts_template->wire_post->user_id ); 244 else 245 return bp_core_get_userlink( $wire_posts_template->wire_post->user_id ); 240 246 } 241 247 242 248 function bp_wire_post_author_avatar() { … … 273 279 echo bp_core_get_avatar( $bp['loggedin_userid'], 1 ); 274 280 } 275 281 276 function bp_wire_poster_name( ) {282 function bp_wire_poster_name( $echo = true ) { 277 283 global $bp; 278 284 279 echo '<a href="' . $bp['loggedin_domain'] . $bp['profile']['slug'] . '">' . __('You', 'buddypress') . '</a>'; 285 if ( $echo == true ) 286 echo '<a href="' . $bp['loggedin_domain'] . $bp['profile']['slug'] . '">' . __('You', 'buddypress') . '</a>'; 287 else 288 return '<a href="' . $bp['loggedin_domain'] . $bp['profile']['slug'] . '">' . __('You', 'buddypress') . '</a>'; 280 289 } 281 290 282 function bp_wire_poster_date( $date_format = null ) {291 function bp_wire_poster_date( $date_format = null, $echo = true ) { 283 292 if ( !$date_format ) 284 293 $date_format = get_option('date_format'); 285 294 286 echo mysql2date( $date_format, date("Y-m-d H:i:s") ); 295 if ( $echo == true ) 296 echo mysql2date( $date_format, date("Y-m-d H:i:s") ); 297 else 298 return mysql2date( $date_format, date("Y-m-d H:i:s") ); 287 299 } 288 300 289 301 function bp_wire_delete_link() { -
buddypress-theme/buddypress-member/404.php
1 1 <?php get_header() ?> 2 2 3 3 <div class="content-header"> 4 Permission Denied4 <?php _e("Permission Denied", "buddypress"); ?> 5 5 </div> 6 6 7 7 <div id="content"> 8 <h2> Not Found / No Access</h2>9 <p> The page you are looking for either does not exist, or you do not have the permissions to access it.</p>8 <h2><?php _e("Not Found / No Access", "buddypress"); ?></h2> 9 <p><?php _e("The page you are looking for either does not exist, or you do not have the permissions to access it.", "buddypress"); ?></p> 10 10 </div> 11 11 12 12 -
buddypress-theme/buddypress-member/profile/change-avatar.php
4 4 5 5 <div id="content"> 6 6 7 <h2> Change Avatar</h2>7 <h2><?php _e("Change Avatar", "buddypress"); ?></h2> 8 8 9 9 <?php bp_avatar_upload_form() ?> 10 10 -
buddypress-theme/buddypress-member/profile/edit.php
8 8 9 9 <div id="content"> 10 10 11 <h2> Editing '<?php bp_profile_group_name() ?>'</h2>11 <h2><?php printf(__("Editing '%s'", "buddypress"), bp_profile_group_name(false)); ?></h2> 12 12 13 13 <?php bp_edit_profile_form() ?> 14 14 -
buddypress-theme/buddypress-member/profile/profile-loop.php
28 28 <?php else: ?> 29 29 30 30 <div id="message" class="info"> 31 <p> Sorry, this person does not have a public profile.</p>31 <p><?php _e("Sorry, this person does not have a public profile.", "buddypress"); ?></p> 32 32 </div> 33 33 34 34 <?php endif;?> -
buddypress-theme/buddypress-member/userbar.php
1 1 <div id="userbar"> 2 <h3> Me</h3>2 <h3><?php _e("Me", "buddypress"); ?></h3> 3 3 <?php if ( is_user_logged_in() ) : ?> 4 4 5 5 <?php if ( function_exists('bp_loggedinuser_avatar_thumbnail') ) : ?> … … 18 18 <img src="<?php get_option('home') ?>/wp-content/mu-plugins/bp-xprofile/images/none-thumbnail.gif" alt="No User" /> 19 19 </p> 20 20 21 <p id="login-text"> You must log in to access your account.</p>21 <p id="login-text"><?php _e("You must log in to access your account.", "buddypress"); ?></p> 22 22 23 23 <form name="loginform" id="loginform" action="<?php get_option('home') ?>/wp-login.php" method="post"> 24 24 <p> -
buddypress-theme/buddypress-member/wire/post-form.php
2 2 <form action="<?php bp_wire_get_action() ?>" id="wire-post-new-form" method="post"> 3 3 <div id="wire-post-new-metadata"> 4 4 <?php bp_wire_poster_avatar() ?> 5 On <?php bp_wire_poster_date() ?> 6 <?php bp_wire_poster_name() ?> said: 5 <?php printf(__('On %1$s %2$s said:', "buddypress"), bp_wire_poster_date(null, false), bp_wire_poster_name(false)); ?> 7 6 </div> 8 7 9 8 <div id="wire-post-new-input"> 10 9 <textarea name="wire-post-textarea" id="wire-post-textarea"></textarea> 11 10 12 11 <?php if ( bp_wire_show_email_notify() ) : ?> 13 <p><input type="checkbox" name="wire-post-email-notify" id="wire-post-email-notify" value="1" /> Notify members via email (will slow down posting)</p>12 <p><input type="checkbox" name="wire-post-email-notify" id="wire-post-email-notify" value="1" /> <?php _e("Notify members via email (will slow down posting)", "buddypress"); ?></p> 14 13 <?php endif; ?> 15 14 16 15 <input type="submit" name="wire-post-submit" id="wire-post-submit" value="Post »" /> -
buddypress-theme/buddypress-member/wire/post-list.php
1 1 <div class="info-group"> 2 <h4><?php bp_wire_title() ?> <a href="<?php bp_wire_see_all_link() ?>"> See All »</a></h4>2 <h4><?php bp_wire_title() ?> <a href="<?php bp_wire_see_all_link() ?>"><?php _e("See All »", "buddypress"); ?></a></h4> 3 3 4 4 <form name="wire-post-list-form" id="wire-post-list-form" action="" method="post"> 5 5 <?php if ( bp_has_wire_posts( bp_wire_item_id(), bp_wire_can_post() ) ) : ?> … … 7 7 <?php if ( bp_wire_needs_pagination() ) : ?> 8 8 <div id="wire-count" class="pag-count"> 9 9 <?php bp_wire_pagination_count() ?> 10 <img id="ajax-loader" src="<?php bp_wire_ajax_loader_src() ?>" height="7" alt=" Loading" style="display: none;" />10 <img id="ajax-loader" src="<?php bp_wire_ajax_loader_src() ?>" height="7" alt="<?php _e("Loading", "buddypress"); ?>" style="display: none;" /> 11 11 </div> 12 12 13 13 <div id="wire-pagination" class="pagination-links"> … … 20 20 <li> 21 21 <div class="wire-post-metadata"> 22 22 <?php bp_wire_post_author_avatar() ?> 23 On <?php bp_wire_post_date() ?> 24 <?php bp_wire_post_author_name() ?> said: 23 <?php printf(__('On %1$s %2$s said:', "buddypress"), bp_wire_post_date(null, false), bp_wire_post_author_name(false)); ?> 25 24 <?php bp_wire_delete_link() ?> 26 25 </div> 27 26