Skip to:
Content

BuddyPress.org

Ticket #172: buddypress_l18n_messages_theme.patch

File buddypress_l18n_messages_theme.patch, 6.2 KB (added by GIGALinux, 16 years ago)

Patch for messages themes

  • buddypress-theme/buddypress-member/messages/compose.php

     
    33</div>
    44
    55<div id="content">
    6         <h2>Compose Message</h2>
     6        <h2><?php _e("Compose Message", "buddypress"); ?></h2>
    77       
    88        <?php do_action( 'template_notices' ) ?>
    99
     
    1111        <div id="poststuff">
    1212                <p>                     
    1313                <div id="titlediv">
    14                         <h3><?php _e("Send To", 'buddypress') ?> <small>(Use username - autocomplete coming soon)</small></h3>
     14                        <h3><?php _e("Send To", 'buddypress') ?> <small><?php _e("(Use username - autocomplete coming soon)", "buddypress"); ?></small></h3>
    1515                        <div id="titlewrap">
    1616                                <input type="text" name="send_to" id="send_to" value="<?php bp_messages_username_value() ?>" />
    17                                 <?php if ( is_site_admin() ) : ?><br /><input type="checkbox" id="send-notice" name="send-notice" value="1" /> This is a notice to all users.<?php endif; ?>
     17                                <?php if ( is_site_admin() ) : ?><br /><input type="checkbox" id="send-notice" name="send-notice" value="1" /> <?php _e("This is a notice to all users.", "buddypress"); ?><?php endif; ?>
    1818                        </div>
    1919                </div>
    2020                </p>
  • buddypress-theme/buddypress-member/messages/index.php

     
    1111                <?php bp_messages_pagination() ?>
    1212        </div>
    1313       
    14         <h2>Inbox</h2>
     14        <h2><?php _e("Inbox", "buddypress"); ?></h2>
    1515        <?php do_action( 'template_notices' ) // (error/success feedback) ?>
    1616       
    1717        <?php bp_message_get_notices(); // (admin created site wide notices) ?>
     
    2626                                </td>
    2727                                <td width="1%"><?php bp_message_thread_avatar() ?></td>
    2828                                <td width="27%">
    29                                         <p>From: <?php bp_message_thread_from() ?></p>
     29                                        <p><?php _e("From:", "buddypress"); ?> <?php bp_message_thread_from() ?></p>
    3030                                        <p class="date"><?php bp_message_thread_last_post_date() ?></p>
    3131                                </td>
    3232                                <td width="40%">
    33                                         <p><a href="<?php bp_message_thread_view_link() ?>" title="View Message"><?php bp_message_thread_subject() ?></a></p>
     33                                        <p><a href="<?php bp_message_thread_view_link() ?>" title="<?php _e("View Message", "buddypress"); ?>"><?php bp_message_thread_subject() ?></a></p>
    3434                                        <p><?php bp_message_thread_excerpt() ?></p>
    3535                                </td>
    3636                                <td width="10%">
    37                                         <a href="<?php bp_message_thread_delete_link() ?>" title="Delete Message" class="delete">Delete</a> &nbsp;
     37                                        <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>" class="delete"><?php _e("Delete", "buddypress"); ?></a> &nbsp;
    3838                                        <input type="checkbox" name="message_ids[]" value="<?php bp_message_thread_id() ?>" />
    3939                                </td>
    4040                        </tr>
     
    4444        <?php else: ?>
    4545               
    4646                <div id="message" class="info">
    47                         <p>You have no messages in your inbox.</p>
     47                        <p><?php _e("You have no messages in your inbox.", "buddypress"); ?></p>
    4848                </div> 
    4949               
    5050        <?php endif;?>
  • buddypress-theme/buddypress-member/messages/notices.php

     
    77                <?php bp_messages_pagination() ?>
    88        </div>
    99       
    10         <h2>Sent Notices</h2>
     10        <h2><?php _e("Sent Notices", "buddypress"); ?></h2>
    1111       
    1212        <?php do_action( 'template_notices' ) ?>
    1313
     
    2424                                </td>
    2525                                <td width="27%">
    2626                                        <p><?php bp_message_is_active_notice() ?></p>
    27                                         <p class="date">Sent: <?php bp_message_notice_post_date() ?></p>
     27                                        <p class="date"><?php _e("Sent:", "buddypress"); ?> <?php bp_message_notice_post_date() ?></p>
    2828                                </td>
    2929                                <td width="4%">
    3030                                        <a href="<?php bp_message_activate_deactivate_link() ?>"><?php bp_message_activate_deactivate_text() ?></a>
    31                                         <a href="<?php bp_message_notice_delete_link() ?>" title="Delete Message">Delete</a>
     31                                        <a href="<?php bp_message_notice_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>"><?php _e("Delete", "buddypress"); ?></a>
    3232                                </td>
    3333                        </tr>
    3434                <?php endwhile; ?>
     
    3737        <?php else: ?>
    3838               
    3939                <div id="message" class="info">
    40                         <p>You have not sent any notices.</p>
     40                        <p><?php _e("You have not sent any notices.", "buddypress"); ?></p>
    4141                </div> 
    4242
    4343        <?php endif;?>
  • buddypress-theme/buddypress-member/messages/sentbox.php

     
    66                <?php bp_messages_pagination() ?>
    77        </div>
    88       
    9         <h2>Sent Messages</h2>
     9        <h2><?php _e("Sent Messages", "buddypress"); ?></h2>
    1010        <?php do_action( 'template_notices' ) ?>
    1111
    1212        <?php if ( bp_has_message_threads() ) : ?>
     
    1818                                </td>
    1919                                <td width="1%"><?php bp_message_thread_avatar() ?></td>
    2020                                <td width="27%">
    21                                         <p>To: <?php bp_message_thread_to() ?></p>
     21                                        <p><?php _e("To:", "buddypress"); ?> <?php bp_message_thread_to() ?></p>
    2222                                        <p class="date"><?php bp_message_thread_last_post_date() ?></p>
    2323                                </td>
    2424                                <td width="40%">
    25                                         <p><a href="<?php bp_message_thread_view_link() ?>" title="View Message"><?php bp_message_thread_subject() ?></a></p>
     25                                        <p><a href="<?php bp_message_thread_view_link() ?>" title="<?php _e("View Message", "buddypress"); ?>"><?php bp_message_thread_subject() ?></a></p>
    2626                                        <p><?php bp_message_thread_excerpt() ?></p>
    2727                                </td>
    2828                                <td width="4%">
    29                                                 <a href="<?php bp_message_thread_delete_link() ?>" title="Delete Message">Delete</a>
     29                                                <a href="<?php bp_message_thread_delete_link() ?>" title="<?php _e("Delete Message", "buddypress"); ?>"><?php _e("Delete", "buddypress"); ?></a>
    3030                                                <input type="checkbox" name="" value="" />
    3131                                </td>
    3232                        </tr>
     
    3636        <?php else: ?>
    3737               
    3838                <div id="message" class="info">
    39                         <p>You have no sent messages.</p>
     39                        <p><?php _e("You have no sent messages.", "buddypress"); ?></p>
    4040                </div> 
    4141
    4242        <?php endif;?>