Skip to:
Content

bbPress.org

Changeset 2531


Ignore:
Timestamp:
08/26/2010 05:22:51 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Add contexts to localized strings, fix verbiage, and fix missing fieldset close tag. Fixes #1324.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/includes/functions.bb-admin.php

    r2428 r2531  
    604604            $r .= "\t\t<label for='userrole'>" . __('Role') . "</label>";
    605605            $r .= "\t\t<div><select name='userrole[]' id='userrole'>\n";
    606             $r .= "\t\t\t<option value=''>All</option>\n";
     606            $r .= "\t\t\t<option value=''>" . _x( 'All', 'user roles' ) . "</option>\n";
    607607           
    608608            foreach ( $roles as $role => $display ) {
     
    980980}
    981981?>
    982     <fieldset class="submit">
     982        <fieldset class="submit">
    983983<?php if ( $forum_id ) : ?>
    984         <input type="hidden" name="forum_id" value="<?php echo $forum_id; ?>" />
     984            <input type="hidden" name="forum_id" value="<?php echo $forum_id; ?>" />
    985985<?php endif; ?>
    986         <?php bb_nonce_field( 'order-forums', 'order-nonce' ); ?>
    987         <?php bb_nonce_field( $action . '-forum' ); ?>
    988         <input type="hidden" name="action" value="<?php echo $action; ?>" />
    989         <input class="submit" type="submit" name="submit" value="<?php echo $submit; ?>" />
     986            <?php bb_nonce_field( 'order-forums', 'order-nonce' ); ?>
     987            <?php bb_nonce_field( $action . '-forum' ); ?>
     988            <input type="hidden" name="action" value="<?php echo $action; ?>" />
     989            <input class="submit" type="submit" name="submit" value="<?php echo $submit; ?>" />
     990        </fieldset>
    990991    </fieldset>
    991992</form>
  • trunk/bb-includes/class.bb-query.php

    r2525 r2531  
    958958        }
    959959
    960         $stati = apply_filters( 'bb_query_form_post_status', array( 'all' => __('All'), '0' => __('Normal'), '1' => __('Deleted') ), $this->type );
     960        $stati = apply_filters( 'bb_query_form_post_status', array( 'all' => _x( 'All', 'post status' ), '0' => __('Normal'), '1' => __('Deleted') ), $this->type );
    961961
    962962        if ( $topic_status ) {
     
    991991            $r .= "\t<div><label for=\"topic-open\">" . __('Open?') . "</label>\n";
    992992            $r .= "\t\t<div><select name='open' id='topic-open'>\n";
    993             foreach ( array( 'all' => __('All'), '1' => _x( 'Open', 'posting status' ), '0' => __('Closed') ) as $status => $label ) {
     993            foreach ( array( 'all' => _x( 'All', 'posting status' ), '1' => _x( 'Open', 'posting status' ), '0' => __('Closed') ) as $status => $label ) {
    994994                $label = esc_html( $label );
    995995                $selected = (string) $status == (string) $q_open ? " selected='selected'" : '';
  • trunk/bb-post.php

    r2511 r2531  
    1919            bb_die( __( 'You need to submit your name!' ) );
    2020        elseif ( !$post_email = sanitize_email( trim( $_POST['email'] ) ) )
    21             bb_die( __( 'You need to submit a valid email id!' ) );
     21            bb_die( __( 'You need to submit a valid email address!' ) );
    2222
    2323        if ( !empty( $_POST['url'] ) )
Note: See TracChangeset for help on using the changeset viewer.