Make WordPress Core


Ignore:
Timestamp:
12/21/2006 11:06:18 PM (17 years ago)
Author:
markjaquith
Message:

i18n fixes, logic cleanup, wording clarifications, and more from nbachiyski. fixes #3474

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4657 r4658  
    4141        if ( 'page' == $_POST['post_type'] ) {
    4242            if ( !current_user_can( 'edit_others_pages' ) )
    43                 return new WP_Error( 'edit_others_pages', __( 'You cannot create pages as this user.' ) );
     43                return new WP_Error( 'edit_others_pages', __( 'You are not allowed to create pages as this user.' ) );
    4444        } else {
    4545            if ( !current_user_can( 'edit_others_posts' ) )
    46                 return new WP_Error( 'edit_others_posts', __( 'You cannot post as this user.' ) );
     46                return new WP_Error( 'edit_others_posts', __( 'You are not allowed to post as this user.' ) );
    4747
    4848        }
     
    185185        if ( 'page' == $_POST['post_type'] ) {
    186186            if ( !current_user_can( 'edit_others_pages' ) )
    187                 wp_die( __('You cannot edit pages as this user.' ));
     187                wp_die( __('You are not allowed to edit pages as this user.' ));
    188188        } else {
    189189            if ( !current_user_can( 'edit_others_posts' ) )
    190                 wp_die( __('You cannot edit posts as this user.' ));
     190                wp_die( __('You are not allowed to edit posts as this user.' ));
    191191
    192192        }
     
    562562function edit_link( $link_id = '' ) {
    563563    if (!current_user_can( 'manage_links' ))
    564         wp_die( __("Cheatin' uh ?" ));
     564        wp_die( __( 'Cheatin&8217; uh?' ));
    565565
    566566    $_POST['link_url'] = wp_specialchars( $_POST['link_url'] );
     
    827827    if ( $numposts > 0 ) {
    828828        $r .= "<a href='edit.php?author=$user_object->ID' title='" . __( 'View posts by this author' ) . "' class='edit'>";
    829         $r .= sprintf( __('View %1$s %2$s' ), $numposts, __ngettext( 'post', 'posts', $numposts ));
     829        $r .= sprintf(__ngettext( 'View %s post', 'View %s posts', $numposts ), $numposts);
    830830        $r .= '</a>';
    831831    }
     
    10701070<?php
    10711071    if ( $edit ) {
    1072         _e( 'Existing timestamp' );
    1073         //echo ': ' . $wp_locale->get_month( $mm ) . "$jj, $aa @ $hh:$mn";
    1074         echo sprintf( __(': %1$s %2$s, %3$s @ %4$s:%5$s' ), $wp_locale->get_month( $mm ), $jj, $aa, $hh, $mn );
     1072        printf( __('Existing timestamp: %1$s %2$s, %3$s @ %4$s:%5$s' ), $wp_locale->get_month( $mm ), $jj, $aa, $hh, $mn );
    10751073    }
    10761074?>
Note: See TracChangeset for help on using the changeset viewer.