Skip to:
Content

bbPress.org

Ticket #1160: open_i18n_context.diff

File open_i18n_context.diff, 1.7 KB (added by Nao, 17 years ago)

Replace ('Open') using _x() to add context

  • bb-includes/class.bb-query.php

     
    998998                if ( $open ) {
    999999                        $r .= "\t<div><label for=\"topic-open\">" . __('Open?') . "</label>\n";
    10001000                        $r .= "\t\t<div><select name='open' id='topic-open'>\n";
    1001                         foreach ( array( 'all' => __('All'), '1' => _x('Open', 'posting status'), '0' => __('Closed') ) as $status => $label ) {
     1001                        foreach ( array( 'all' => __('All'), '1' => __('Open'), '0' => __('Closed') ) as $status => $label ) {
    10021002                                $label = esc_html( $label );
    10031003                                $selected = (string) $status == (string) $q_open ? " selected='selected'" : '';
    10041004                                $r .= "\t\t\t<option value='$status'$selected>$label</option>\n";
  • bb-admin/topics.php

     
    124124                <span class="row-actions">
    125125                        <a href="<?php topic_link(); ?>"><?php _e( 'View' ); ?></a> |
    126126                        <?php if ( $first_post ) : post_edit_link( $first_post->post_id ); ?> |
    127                         <?php endif; topic_close_link( array( 'id' => $topic->topic_id, 'before' => '', 'after' => '', 'close_text' => __( 'Close' ), 'open_text' => _x('Open', 'action') ) ); ?> |
     127                        <?php endif; topic_close_link( array( 'id' => $topic->topic_id, 'before' => '', 'after' => '', 'close_text' => __( 'Close' ), 'open_text' => __( 'Open' ) ) ); ?> |
    128128                        <?php topic_delete_link( array( 'id' => $topic->topic_id, 'before' => '', 'after' => '', 'delete_text' => __( 'Delete' ), 'undelete_text' => __( 'Undelete' ) ) ); ?>
    129129                </span>&nbsp;
    130130                </div>