Ticket #5992: english-phrase-fix.diff

File english-phrase-fix.diff, 1.3 kB (added by takayukister, 9 months ago)
  • wp-admin/import/stp.php

    old new  
    9191                // run that funky magic! 
    9292                $tags_added = $this->tag2post(); 
    9393 
    94                 echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tags where added!', 'Done! <strong>%s</strong> tags where added!', $tags_added), $tags_added ) . '<br /></p>'; 
     94                echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> tags were added!', 'Done! <strong>%s</strong> tags were added!', $tags_added), $tags_added ) . '<br /></p>'; 
    9595                echo '<form action="admin.php?import=stp&amp;step=3" method="post">'; 
    9696                wp_nonce_field('import-stp'); 
    9797                echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 3').'" /></p>'; 
  • xmlrpc.php

    old new  
    636636 
    637637                set_current_user(0, $username); 
    638638                if( !current_user_can("manage_categories") ) { 
    639                         return new IXR_Error( 401, __( "Sorry, you do not the right to delete a category." ) ); 
     639                        return new IXR_Error( 401, __( "Sorry, you do not have the right to delete a category." ) ); 
    640640                } 
    641641 
    642642                return wp_delete_category( $category_id );