Changeset 11190
- Timestamp:
- 05/05/2009 04:28:05 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r11185 r11190 63 63 ?> 64 64 65 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $att_title)); ?>">65 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"> 66 66 <?php echo $thumb; ?> 67 67 </a> … … 75 75 case 'media': 76 76 ?> 77 <td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />77 <td <?php echo $attributes ?>><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 78 78 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 79 79 <p> … … 84 84 if ( current_user_can('delete_post', $post->ID) ) 85 85 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>"; 86 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';86 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 87 87 $action_count = count($actions); 88 88 $i = 0; … … 183 183 ?> 184 184 <td <?php echo $attributes ?>> 185 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php _e('Edit'); ?></a> |185 <a href="media.php?action=edit&attachment_id=<?php the_ID(); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php _e('Edit'); ?></a> | 186 186 <a href="<?php the_permalink(); ?>"><?php _e('Get permalink'); ?></a> 187 187 </td> -
trunk/wp-admin/import/blogger.php
r11173 r11190 204 204 $posts = __('Posts'); 205 205 $comments = __('Comments'); 206 $noscript = __('This feature requires Javascript but it seems to be disabled. Please enable Javascript and then reload this page. Don \'t worry, you can turn it back off when you\'re done.');206 $noscript = __('This feature requires Javascript but it seems to be disabled. Please enable Javascript and then reload this page. Don’t worry, you can turn it back off when you’re done.'); 207 207 208 208 $interval = STATUS_INTERVAL * 1000; … … 654 654 } 655 655 656 $directions = __('All posts were imported with the current user as author. Use this form to move each Blogger user \'s posts to a different WordPress user. You may <a href="users.php">add users</a> and then return to this page and complete the user mapping. This form may be used as many times as you like until you activate the "Restart"function below.');656 $directions = __('All posts were imported with the current user as author. Use this form to move each Blogger user’s posts to a different WordPress user. You may <a href="users.php">add users</a> and then return to this page and complete the user mapping. This form may be used as many times as you like until you activate the “Restart” function below.'); 657 657 $heading = __('Author mapping'); 658 658 $blogtitle = "{$blog['title']} ({$blog['host']})"; … … 797 797 echo '<h1>'.__('Congratulations!').'</h1><p>'.__('Now that you have imported your Blogger blog into WordPress, what are you going to do? Here are some suggestions:').'</p><ul><li>'.__('That was hard work! Take a break.').'</li>'; 798 798 if ( count($this->import['blogs']) > 1 ) 799 echo '<li>'.__('In case you haven \'t done it already, you can import the posts from your other blogs:'). $this->show_blogs() . '</li>';799 echo '<li>'.__('In case you haven’t done it already, you can import the posts from your other blogs:'). $this->show_blogs() . '</li>'; 800 800 if ( $n = count($this->import['blogs'][$blog]['newusers']) ) 801 801 echo '<li>'.sprintf(__('Go to <a href="%s" target="%s">Authors & Users</a>, where you can modify the new user(s) or delete them. If you want to make all of the imported posts yours, you will be given that option when you delete the new authors.'), 'users.php', '_parent').'</li>'; -
trunk/wp-admin/import/blogware.php
r10606 r11190 110 110 } 111 111 if (!$post_id) { 112 _e( "Couldn't get post ID");112 _e('Couldn’t get post ID'); 113 113 echo '</li>'; 114 114 break; -
trunk/wp-admin/import/dotclear.php
r11173 r11190 711 711 echo '<p>'.__('Welcome to WordPress. We hope (and expect!) that you will find this platform incredibly rewarding! As a new WordPress user coming from DotClear, there are some things that we would like to point out. Hopefully, they will help your transition go as smoothly as possible.').'</p>'; 712 712 echo '<h3>'.__('Users').'</h3>'; 713 echo '<p>'.sprintf(__('You have already setup WordPress and have been assigned an administrative login and password. Forget it. You didn \'t have that login in DotClear, why should you have it here? Instead we have taken care to import all of your users into our system. Unfortunately there is one downside. Because both WordPress and DotClear uses a strong encryption hash with passwords, it is impossible to decrypt it and we are forced to assign temporary passwords to all your users. <strong>Every user has the same username, but their passwords are reset to password123.</strong> So <a href="%1$s">Login</a> and change it.'), '/wp-login.php').'</p>';713 echo '<p>'.sprintf(__('You have already setup WordPress and have been assigned an administrative login and password. Forget it. You didn’t have that login in DotClear, why should you have it here? Instead we have taken care to import all of your users into our system. Unfortunately there is one downside. Because both WordPress and DotClear uses a strong encryption hash with passwords, it is impossible to decrypt it and we are forced to assign temporary passwords to all your users. <strong>Every user has the same username, but their passwords are reset to password123.</strong> So <a href="%1$s">Login</a> and change it.'), '/wp-login.php').'</p>'; 714 714 echo '<h3>'.__('Preserving Authors').'</h3>'; 715 715 echo '<p>'.__('Secondly, we have attempted to preserve post authors. If you are the only author or contributor to your blog, then you are safe. In most cases, we are successful in this preservation endeavor. However, if we cannot ascertain the name of the writer due to discrepancies between database tables, we assign it to you, the administrative user.').'</p>'; 716 716 echo '<h3>'.__('Textile').'</h3>'; 717 echo '<p>'.__('Also, since you \'re coming from DotClear, you probably have been using Textile to format your comments and posts. If this is the case, we recommend downloading and installing <a href="http://www.huddledmasses.org/category/development/wordpress/textile/">Textile for WordPress</a>. Trust me... You\'ll want it.').'</p>';717 echo '<p>'.__('Also, since you’re coming from DotClear, you probably have been using Textile to format your comments and posts. If this is the case, we recommend downloading and installing <a href="http://www.huddledmasses.org/category/development/wordpress/textile/">Textile for WordPress</a>. Trust me… You’ll want it.').'</p>'; 718 718 echo '<h3>'.__('WordPress Resources').'</h3>'; 719 719 echo '<p>'.__('Finally, there are numerous WordPress resources around the internet. Some of them are:').'</p>'; … … 723 723 echo '<li>'.__('<a href="http://codex.wordpress.org">The Codex (In other words, the WordPress Bible)</a>').'</li>'; 724 724 echo '</ul>'; 725 echo '<p>'.sprintf(__('That \'s it! What are you waiting for? Go <a href="%1$s">login</a>!'), '../wp-login.php').'</p>';725 echo '<p>'.sprintf(__('That’s it! What are you waiting for? Go <a href="%1$s">login</a>!'), '../wp-login.php').'</p>'; 726 726 } 727 727 -
trunk/wp-admin/import/greymatter.php
r11173 r11190 62 62 </tr> 63 63 <tr> 64 <td><label for="lastentry"><?php _e( "Last entry's number:") ?></label></td>64 <td><label for="lastentry"><?php _e('Last entry’s number:') ?></label></td> 65 65 <td><input type="text" name="lastentry" id="lastentry" value="00000001" /><br /> 66 <?php _e( "This importer will search for files 00000001.cgi to 000-whatever.cgi,<br />so you need to enter the number of the last GM post here.<br />(if you don't know that number, just log into your FTP and look it out<br />in the entries' folder)") ?></td>66 <?php _e('This importer will search for files 00000001.cgi to 000-whatever.cgi,<br />so you need to enter the number of the last GM post here.<br />(if you don’t know that number, just log into your FTP and look it out<br />in the entries’ folder)') ?></td> 67 67 </tr> 68 68 </table> -
trunk/wp-admin/import/livejournal.php
r11173 r11190 210 210 211 211 <p><?php _e( 'If you have any entries on LiveJournal which are marked as private, they will be password-protected when they are imported so that only people who know the password can see them.' ) ?></p> 212 <p><?php _e( "If you don't enter a password, ALL ENTRIES from your LiveJournal will be imported as public posts in WordPress.") ?></p>212 <p><?php _e( 'If you don’t enter a password, ALL ENTRIES from your LiveJournal will be imported as public posts in WordPress.' ) ?></p> 213 213 <p><?php _e( 'Enter the password you would like to use for all protected entries here:' ) ?></p> 214 214 <table class="form-table"> … … 384 384 } 385 385 if ( !$post_id ) { 386 _e( "Couldn't get post ID (creating post failed!)");386 _e( 'Couldn’t get post ID (creating post failed!)' ); 387 387 echo '</li>'; 388 388 return new WP_Error( 'insert_post_failed', __( 'Failed to create post.' ) ); … … 779 779 echo '<div id="ljapi-status">'; 780 780 echo '<h3>' . __( 'Importing Posts' ) . '</h3>'; 781 echo '<p>' . __( "We're downloading and importing your LiveJournal posts...") . '</p>';781 echo '<p>' . __( 'We’re downloading and importing your LiveJournal posts...' ) . '</p>'; 782 782 if ( get_option( 'ljapi_post_batch' ) && count( get_option( 'ljapi_sync_item_times' ) ) ) { 783 783 $batch = count( get_option( 'ljapi_sync_item_times' ) ); … … 802 802 ?> 803 803 <p><strong><?php _e( 'Uh oh – LiveJournal has disconnected us because we made too many requests to their servers too quickly.' ) ?></strong></p> 804 <p><strong><?php _e( "We've saved where you were up to though, so if you come back to this importer in about 30 minutes, you should be able to continue from where you were.") ?></strong></p>804 <p><strong><?php _e( 'We’ve saved where you were up to though, so if you come back to this importer in about 30 minutes, you should be able to continue from where you were.' ) ?></strong></p> 805 805 <?php 806 806 echo $this->next_step( 1, __( 'Try Again' ) ); … … 822 822 <?php 823 823 } else { 824 echo '<p>' . __( "Your posts have all been imported, but wait - there's more! Now we need to download & import your comments.") . '</p>';824 echo '<p>' . __( 'Your posts have all been imported, but wait – there’s more! Now we need to download & import your comments.' ) . '</p>'; 825 825 echo $this->next_step( 2, __( 'Download my comments »' ) ); 826 826 $this->auto_submit(); -
trunk/wp-admin/import/mt.php
r11173 r11190 37 37 ?> 38 38 <div class="narrow"> 39 <p><?php _e('Howdy! We’re about to begin importing all of your Movable Type or Typepad entries into WordPress. To begin, either choose a file to upload and click "Upload file and import,"or use FTP to upload your MT export file as <code>mt-export.txt</code> in your <code>/wp-content/</code> directory and then click "Import mt-export.txt"'); ?></p>39 <p><?php _e('Howdy! We’re about to begin importing all of your Movable Type or Typepad entries into WordPress. To begin, either choose a file to upload and click “Upload file and import”, or use FTP to upload your MT export file as <code>mt-export.txt</code> in your <code>/wp-content/</code> directory and then click "Import mt-export.txt"'); ?></p> 40 40 41 41 <?php wp_import_upload_form( add_query_arg('step', 1) ); ?> … … 50 50 </p> 51 51 </form> 52 <p><?php _e('The importer is smart enough not to import duplicates, so you can run this multiple times without worry if—for whatever reason—it doesn \'t finish. If you get an <strong>out of memory</strong> error try splitting up the import file into pieces.'); ?> </p>52 <p><?php _e('The importer is smart enough not to import duplicates, so you can run this multiple times without worry if—for whatever reason—it doesn’t finish. If you get an <strong>out of memory</strong> error try splitting up the import file into pieces.'); ?> </p> 53 53 </div> 54 54 <?php … … 195 195 <?php screen_icon(); ?> 196 196 <h2><?php _e('Assign Authors'); ?></h2> 197 <p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as admin \'s entries.'); ?></p>197 <p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as admin’s entries.'); ?></p> 198 198 <p><?php _e('Below, you can see the names of the authors of the MovableType posts in <em>italics</em>. For each of these names, you can either pick an author in your WordPress installation from the menu, or enter a name for the author in the textbox.'); ?></p> 199 <p><?php _e('If a new user is created by WordPress, a password will be randomly generated. Manually change the user \'s details if necessary.'); ?></p>199 <p><?php _e('If a new user is created by WordPress, a password will be randomly generated. Manually change the user’s details if necessary.'); ?></p> 200 200 <?php 201 201 -
trunk/wp-admin/import/rss.php
r10339 r11190 130 130 return $post_id; 131 131 if (!$post_id) { 132 _e( "Couldn't get post ID");132 _e('Couldn’t get post ID'); 133 133 return; 134 134 } -
trunk/wp-admin/import/wordpress.php
r11173 r11190 204 204 <?php 205 205 if ( $this->allow_create_users() ) { 206 echo '<p>'.__('If a new user is created by WordPress, a password will be randomly generated. Manually change the user \'s details if necessary.')."</p>\n";206 echo '<p>'.__('If a new user is created by WordPress, a password will be randomly generated. Manually change the user’s details if necessary.')."</p>\n"; 207 207 } 208 208 -
trunk/wp-admin/import/wp-cat2tag.php
r11173 r11190 144 144 echo '<h2>' . sprintf( _n( 'Convert Tag to Category.', 'Convert Tags (%d) to Categories.', $tags_num ), $tags_num ) . '</h2>'; 145 145 echo '<div class="narrow">'; 146 echo '<p>' . __('Here you can selectively convert sexisting tags to categories. To get started, check the tags you wish to be converted, then click the Convert button.') . '</p>';146 echo '<p>' . __('Here you can selectively convert existing tags to categories. To get started, check the tags you wish to be converted, then click the Convert button.') . '</p>'; 147 147 echo '<p>' . __('The newly created categories will still be associated with the same posts.') . '</p></div>'; 148 148 … … 250 250 251 251 if ( ! $this->_category_exists($cat_id) ) { 252 echo '<li>' . sprintf( __('Category %s doesn \'t exist!'), $cat_id ) . "</li>\n";252 echo '<li>' . sprintf( __('Category %s doesn’t exist!'), $cat_id ) . "</li>\n"; 253 253 } else { 254 254 $category =& get_category($cat_id); … … 407 407 408 408 } else { 409 printf( '<li>' . __('Tag #%s doesn \'t exist!') . "</li>\n", $tag_id );409 printf( '<li>' . __('Tag #%s doesn’t exist!') . "</li>\n", $tag_id ); 410 410 } 411 411 } -
trunk/wp-admin/includes/class-wp-upgrader.php
r11109 r11190 937 937 938 938 $install_actions = array( 939 'preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>',940 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . attr( sprintf( __('Activate "%s"'), $name ) ) . '">' . __('Activate') . '</a>'939 'preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>', 940 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>' 941 941 ); 942 942 … … 996 996 997 997 $update_actions = array( 998 'preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>',999 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . attr( sprintf( __('Activate "%s"'), $name ) ) . '">' . __('Activate') . '</a>',998 'preview' => '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>', 999 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>', 1000 1000 'themes_page' => '<a href="' . admin_url('themes.php') . '" title="' . attr(__('Return to Themes page')) . '" target="_parent">' . __('Return to Themes page') . '</a>', 1001 1001 ); -
trunk/wp-admin/includes/dashboard.php
r11173 r11190 450 450 $url = get_edit_post_link( $draft->ID ); 451 451 $title = _draft_or_post_title( $draft->ID ); 452 $item = "<h4><a href='$url' title='" . sprintf( __( 'Edit "%s"' ), attr( $title ) ) . "'>$title</a> <abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $draft) . "'>" . get_the_time( get_option( 'date_format' ), $draft ) . '</abbr></h4>';452 $item = "<h4><a href='$url' title='" . sprintf( __( 'Edit “%s”' ), attr( $title ) ) . "'>$title</a> <abbr title='" . get_the_time(__('Y/m/d g:i:s A'), $draft) . "'>" . get_the_time( get_option( 'date_format' ), $draft ) . '</abbr></h4>'; 453 453 if ( $the_content = preg_split( '#\s#', strip_tags( $draft->post_content ), 11, PREG_SPLIT_NO_EMPTY ) ) 454 454 $item .= '<p>' . join( ' ', array_slice( $the_content, 0, 10 ) ) . ( 10 < count( $the_content ) ? '…' : '' ) . '</p>'; -
trunk/wp-admin/includes/file.php
r11187 r11190 196 196 switch ( $code ) { 197 197 case 1 : 198 wp_die( __('Sorry, can’t edit files with ".."in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.' ));198 wp_die( __('Sorry, can’t edit files with “..” in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.' )); 199 199 200 200 case 2 : -
trunk/wp-admin/includes/image.php
r10682 r11190 138 138 139 139 if ( ! file_exists( $file ) ) 140 return sprintf(__( "File '%s' doesn't exist?"), $file);140 return sprintf(__('File “%s” doesn’t exist?'), $file); 141 141 142 142 if ( ! function_exists('imagecreatefromstring') ) … … 148 148 149 149 if ( !is_resource( $image ) ) 150 return sprintf(__( "File '%s' is not an image."), $file);150 return sprintf(__('File “%s” is not an image.'), $file); 151 151 152 152 return $image; -
trunk/wp-admin/includes/media.php
r11180 r11190 1844 1844 if ( apply_filters( 'disable_captions', '' ) ) { 1845 1845 $alt = __('Alternate Text'); 1846 $alt_help = __('Alt text for the image, e.g. "The Mona Lisa"');1846 $alt_help = __('Alt text for the image, e.g. “The Mona Lisa”'); 1847 1847 } else { 1848 1848 $alt = __('Image Caption'); … … 1940 1940 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" aria-required="true"></td> 1941 1941 </tr> 1942 <tr><td></td><td class="help">' . __('Link text, e.g. "Still Alive by Jonathan Coulton"') . '</td></tr>1942 <tr><td></td><td class="help">' . __('Link text, e.g. “Still Alive by Jonathan Coulton”') . '</td></tr> 1943 1943 <tr> 1944 1944 <td></td> … … 1975 1975 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" aria-required="true"></td> 1976 1976 </tr> 1977 <tr><td></td><td class="help">' . __('Link text, e.g. "Lucy on YouTube"') . '</td></tr>1977 <tr><td></td><td class="help">' . __('Link text, e.g. “Lucy on YouTube“') . '</td></tr> 1978 1978 <tr> 1979 1979 <td></td> … … 2010 2010 <td class="field"><input id="insertonly[title]" name="insertonly[title]" value="" type="text" aria-required="true"></td> 2011 2011 </tr> 2012 <tr><td></td><td class="help">' . __('Link text, e.g. "Ransom Demands (PDF)"') . '</td></tr>2012 <tr><td></td><td class="help">' . __('Link text, e.g. “Ransom Demands (PDF)”') . '</td></tr> 2013 2013 <tr> 2014 2014 <td></td> -
trunk/wp-admin/includes/template.php
r11181 r11190 126 126 $edit_link = "categories.php?action=edit&cat_ID=$category->term_id"; 127 127 if ( current_user_can( 'manage_categories' ) ) { 128 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit "%s"'), $category->name)) . "'>" . attr( $name ) . '</a><br />';128 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit “%s”'), $category->name)) . "'>" . attr( $name ) . '</a><br />'; 129 129 $actions = array(); 130 130 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; … … 297 297 $edit_link = "link-category.php?action=edit&cat_ID=$category->term_id"; 298 298 if ( current_user_can( 'manage_categories' ) ) { 299 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit "%s"'), $category->name)) . "'>$name</a><br />";299 $edit = "<a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit “%s”'), $category->name)) . "'>$name</a><br />"; 300 300 $actions = array(); 301 301 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; … … 659 659 break; 660 660 case 'name': 661 $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attr(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />';661 $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attr(sprintf(__('Edit “%s”'), $name)) . '">' . $name . '</a></strong><br />'; 662 662 $actions = array(); 663 663 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; … … 1437 1437 $attributes = 'class="post-title column-title"' . $style; 1438 1438 ?> 1439 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states($post); ?></strong>1439 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $title)); ?>"><?php echo $title ?></a><?php } else { echo $title; }; _post_states($post); ?></strong> 1440 1440 <?php 1441 1441 if ( 'excerpt' == $mode ) … … 1450 1450 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1451 1451 if ( current_user_can('edit_post', $post->ID) ) 1452 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';1452 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; 1453 1453 } else { 1454 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';1454 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 1455 1455 } 1456 1456 $actions = apply_filters('post_row_actions', $actions, $post); … … 1653 1653 $edit_link = get_edit_post_link( $page->ID ); 1654 1654 ?> 1655 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $page->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . __('Parent Page: ') . wp_specialchars($parent_name) : ''; ?></strong>1655 <td <?php echo $attributes ?>><strong><?php if ( current_user_can( 'edit_post', $page->ID ) ) { ?><a class="row-title" href="<?php echo $edit_link; ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $title)); ?>"><?php echo $pad; echo $title ?></a><?php } else { echo $pad; echo $title; }; _post_states($page); echo isset($parent_name) ? ' | ' . __('Parent Page: ') . wp_specialchars($parent_name) : ''; ?></strong> 1656 1656 <?php 1657 1657 $actions = array(); … … 1663 1663 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1664 1664 if ( current_user_can('edit_page', $page->ID) ) 1665 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('Preview "%s"'), $title)) . '" rel="permalink">' . __('Preview') . '</a>';1665 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('Preview “%s”'), $title)) . '" rel="permalink">' . __('Preview') . '</a>'; 1666 1666 } else { 1667 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';1667 $actions['view'] = '<a href="' . get_permalink($page->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 1668 1668 } 1669 1669 $actions = apply_filters('page_row_actions', $actions, $page); … … 3509 3509 if ( isset($_wp_contextual_help[$screen]) ) { 3510 3510 if ( !empty($title) ) 3511 $contextual_help .= '<h5>' . sprintf(__('Get help with "%s"'), $title) . '</h5>';3511 $contextual_help .= '<h5>' . sprintf(__('Get help with “%s”'), $title) . '</h5>'; 3512 3512 else 3513 3513 $contextual_help .= '<h5>' . __('Get help with this page') . '</h5>'; -
trunk/wp-admin/includes/theme-install.php
r11173 r11190 302 302 $actions = array(); 303 303 $actions[] = '<a href="' . admin_url('theme-install.php?tab=theme-information&theme=' . $theme->slug . 304 '&TB_iframe=true&tbWidth=500&tbHeight=350') . '" class="thickbox thickbox-preview onclick" title="' . attr(sprintf(__('Install "%s"'), $name)) . '">' . __('Install') . '</a>';305 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . attr(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>';304 '&TB_iframe=true&tbWidth=500&tbHeight=350') . '" class="thickbox thickbox-preview onclick" title="' . attr(sprintf(__('Install “%s”'), $name)) . '">' . __('Install') . '</a>'; 305 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . attr(sprintf(__('Preview “%s”'), $name)) . '">' . __('Preview') . '</a>'; 306 306 $actions = apply_filters('theme_install_action_links', $actions, $theme); 307 307 } … … 311 311 <a class='thickbox thickbox-preview screenshot' 312 312 href='<? echo clean_url($preview_link); ?>' 313 title='<?php echo attr(sprintf(__('Preview "%s"'), $name)); ?>'>313 title='<?php echo attr(sprintf(__('Preview “%s”'), $name)); ?>'> 314 314 <img src='<?php echo clean_url($theme->screenshot_url); ?>' width='150' /> 315 315 </a> -
trunk/wp-admin/includes/user.php
r11162 r11190 170 170 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) ); 171 171 } elseif (!is_email( $user->user_email ) ) { 172 $errors->add( 'invalid_email', __( "<strong>ERROR</strong>: The e-mail address isn't correct."), array( 'form-field' => 'email' ) );172 $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The e-mail address isn’t correct.' ), array( 'form-field' => 'email' ) ); 173 173 } elseif ( ( $owner_id = email_exists($user->user_email) ) && $owner_id != $user->ID ) { 174 174 $errors->add( 'email_exists', __('<strong>ERROR</strong>: This email is already registered, please choose another one.'), array( 'form-field' => 'email' ) ); -
trunk/wp-admin/install.php
r11110 r11190 83 83 ?> 84 84 <h1><?php _e('Welcome'); ?></h1> 85 <p><?php printf(__('Welcome to the famous five minute WordPress installation process! You may want to browse the <a href="%s">ReadMe documentation</a> at your leisure. Otherwise, just fill in the information below and you \'ll be on your way to using the most extendable and powerful personal publishing platform in the world.'), '../readme.html'); ?></p>85 <p><?php printf(__('Welcome to the famous five minute WordPress installation process! You may want to browse the <a href="%s">ReadMe documentation</a> at your leisure. Otherwise, just fill in the information below and you’ll be on your way to using the most extendable and powerful personal publishing platform in the world.'), '../readme.html'); ?></p> 86 86 <!--<h2 class="step"><a href="install.php?step=1"><?php _e('First Step'); ?></a></h2>--> 87 87 88 88 <h1><?php _e('Information needed'); ?></h1> 89 <p><?php _e( "Please provide the following information. Don't worry, you can always change these settings later."); ?></p>89 <p><?php _e('Please provide the following information. Don’t worry, you can always change these settings later.'); ?></p> 90 90 91 91 -
trunk/wp-admin/link-manager.php
r11180 r11190 195 195 case 'name': 196 196 197 echo "<td $attributes><strong><a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit "%s"'), $link->link_name)) . "'>$link->link_name</a></strong><br />";197 echo "<td $attributes><strong><a class='row-title' href='$edit_link' title='" . attr(sprintf(__('Edit “%s”'), $link->link_name)) . "'>$link->link_name</a></strong><br />"; 198 198 $actions = array(); 199 199 $actions['edit'] = '<a href="' . $edit_link . '">' . __('Edit') . '</a>'; -
trunk/wp-admin/options-discussion.php
r11180 r11190 128 128 <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" value="' . attr(get_option('comment_max_links')) . '" class="small-text" />' ) ?></label></p> 129 129 130 <p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></label></p>130 <p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so “press” will match “WordPress”.') ?></label></p> 131 131 <p> 132 132 <textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php form_option('moderation_keys'); ?></textarea> … … 137 137 <th scope="row"><?php _e('Comment Blacklist') ?></th> 138 138 <td><fieldset><legend class="invisible"><?php _e('Comment Blacklist') ?></legend> 139 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></label></p>139 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.') ?></label></p> 140 140 <p> 141 141 <textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php form_option('blacklist_keys'); ?></textarea> -
trunk/wp-admin/options-general.php
r11180 r11190 223 223 echo '/> ' . __('Custom:') . ' </label><input type="text" name="date_format_custom" value="' . attr( get_option('date_format') ) . '" class="small-text" /> ' . date_i18n( get_option('date_format') ) . "\n"; 224 224 225 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click & quot;Save Changes" to update sample output.') . "</p>\n";225 echo "\t<p>" . __('<a href="http://codex.wordpress.org/Formatting_Date_and_Time">Documentation on date formatting</a>. Click “Save Changes” to update sample output.') . "</p>\n"; 226 226 ?> 227 227 </fieldset> -
trunk/wp-admin/options-writing.php
r11180 r11190 121 121 <?php else : ?> 122 122 123 <p><?php printf(__('WordPress is not notifying any <a href="http://codex.wordpress.org/Update_Services">Update Services</a> because of your blog \'s <a href="%s">privacy settings</a>.'), 'options-privacy.php'); ?></p>123 <p><?php printf(__('WordPress is not notifying any <a href="http://codex.wordpress.org/Update_Services">Update Services</a> because of your blog’s <a href="%s">privacy settings</a>.'), 'options-privacy.php'); ?></p> 124 124 125 125 <?php endif; ?> -
trunk/wp-admin/page.php
r11159 r11190 83 83 $post = get_post_to_edit($page_ID); 84 84 85 if ( empty($post->ID) ) wp_die( __( "You attempted to edit a page that doesn't exist. Perhaps it was deleted?") );85 if ( empty($post->ID) ) wp_die( __('You attempted to edit a page that doesn’t exist. Perhaps it was deleted?') ); 86 86 87 87 if ( 'page' != $post->post_type ) { -
trunk/wp-admin/post.php
r11159 r11190 116 116 $post = get_post($post_ID); 117 117 118 if ( empty($post->ID) ) wp_die( __( "You attempted to edit a post that doesn't exist. Perhaps it was deleted?") );118 if ( empty($post->ID) ) wp_die( __('You attempted to edit a post that doesn’t exist. Perhaps it was deleted?') ); 119 119 120 120 if ( 'post' != $post->post_type ) { -
trunk/wp-admin/themes.php
r11133 r11190 189 189 $preview_link = clean_url( get_option('home') . '/'); 190 190 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); 191 $preview_text = attr( sprintf( __('Preview of "%s"'), $title ) );191 $preview_text = attr( sprintf( __('Preview of “%s”'), $title ) ); 192 192 $tags = $themes[$theme_name]['Tags']; 193 193 $thickbox_class = 'thickbox thickbox-preview'; 194 194 $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); 195 $activate_text = attr( sprintf( __('Activate "%s"'), $title ) );195 $activate_text = attr( sprintf( __('Activate “%s”'), $title ) ); 196 196 $actions = array(); 197 197 $actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __('Activate') . '</a>'; 198 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>';198 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview “%s”'), $theme_name)) . '">' . __('Preview') . '</a>'; 199 199 if ( current_user_can('update_themes') ) 200 200 $actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url("themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet) . '" onclick="' . "if ( confirm('" . js_escape(sprintf( __("You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;" . '">' . __('Delete') . '</a>'; -
trunk/wp-admin/upload.php
r11185 r11190 330 330 <td class="media-icon"><?php 331 331 if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { ?> 332 <a href="media.php?action=edit&attachment_id=<?php echo $post->ID; ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $thumb; ?></a>332 <a href="media.php?action=edit&attachment_id=<?php echo $post->ID; ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $thumb; ?></a> 333 333 <?php } ?></td> 334 334 335 <td class="media column-media"><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attr(sprintf(__('Edit "%s"'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br />335 <td class="media column-media"><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 336 336 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 337 337 … … 343 343 if ( current_user_can('delete_post', $post->ID) ) 344 344 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this attachment '%s'\n 'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>"; 345 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View "%s"'), $title)) . '" rel="permalink">' . __('View') . '</a>';345 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>'; 346 346 if ( current_user_can('edit_post', $post->ID) ) 347 347 $actions['attach'] = '<a href="#the-list" onclick="findPosts.open(\'media[]\',\''.$post->ID.'\');return false;">'.__('Attach').'</a>'; -
trunk/wp-admin/users.php
r11180 r11190 212 212 break; 213 213 case 'err_admin_role': 214 $messages[] = '<div id="message" class="error"><p>' . __( "The current user's role must have user editing capabilities.") . '</p></div>';214 $messages[] = '<div id="message" class="error"><p>' . __('The current user’s role must have user editing capabilities.') . '</p></div>'; 215 215 $messages[] = '<div id="message" class="updated fade"><p>' . __('Other user roles have been changed.') . '</p></div>'; 216 216 break; 217 217 case 'err_admin_del': 218 $messages[] = '<div id="message" class="error"><p>' . __( "You can't delete the current user.") . '</p></div>';218 $messages[] = '<div id="message" class="error"><p>' . __('You can’t delete the current user.') . '</p></div>'; 219 219 $messages[] = '<div id="message" class="updated fade"><p>' . __('Other users have been deleted.') . '</p></div>'; 220 220 break; -
trunk/wp-includes/author-template.php
r11142 r11190 133 133 function the_author_link() { 134 134 if (get_the_author_url()) { 135 echo '<a href="' . get_the_author_url() . '" title="' . sprintf(__("Visit %s 's website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>';135 echo '<a href="' . get_the_author_url() . '" title="' . sprintf(__("Visit %s’s website"), get_the_author()) . '" rel="external">' . get_the_author() . '</a>'; 136 136 } else { 137 137 the_author(); -
trunk/wp-includes/comment.php
r11169 r11190 413 413 if ( $wpdb->get_var($dupe) ) { 414 414 if ( defined('DOING_AJAX') ) 415 die( __('Duplicate comment detected; it looks as though you \'ve already said that!') );416 417 wp_die( __('Duplicate comment detected; it looks as though you \'ve already said that!') );415 die( __('Duplicate comment detected; it looks as though you’ve already said that!') ); 416 417 wp_die( __('Duplicate comment detected; it looks as though you’ve already said that!') ); 418 418 } 419 419 -
trunk/wp-includes/default-widgets.php
r11188 r11190 16 16 17 17 function WP_Widget_Pages() { 18 $widget_ops = array('classname' => 'widget_pages', 'description' => __( "Your blog's WordPress Pages") );18 $widget_ops = array('classname' => 'widget_pages', 'description' => __( 'Your blog’s WordPress Pages') ); 19 19 $this->WP_Widget('pages', __('Pages'), $widget_ops); 20 20 } … … 197 197 198 198 function WP_Widget_Archives() { 199 $widget_ops = array('classname' => 'widget_archive', 'description' => __( "A monthly archive of your blog's posts") );199 $widget_ops = array('classname' => 'widget_archive', 'description' => __( 'A monthly archive of your blog’s posts') ); 200 200 $this->WP_Widget('archives', __('Archives'), $widget_ops); 201 201 } … … 310 310 311 311 function WP_Widget_Calendar() { 312 $widget_ops = array('classname' => 'widget_calendar', 'description' => __( "A calendar of your blog's posts") );312 $widget_ops = array('classname' => 'widget_calendar', 'description' => __( 'A calendar of your blog’s posts') ); 313 313 $this->WP_Widget('calendar', __('Calendar'), $widget_ops); 314 314 } -
trunk/wp-includes/functions.php
r11178 r11190 2240 2240 2241 2241 $trans = array(); 2242 $trans['update']['attachment'] = array( __( 'Your attempt to edit this attachment: & quot;%s" has failed.' ), 'get_the_title' );2242 $trans['update']['attachment'] = array( __( 'Your attempt to edit this attachment: “%s” has failed.' ), 'get_the_title' ); 2243 2243 2244 2244 $trans['add']['category'] = array( __( 'Your attempt to add this category has failed.' ), false ); 2245 $trans['delete']['category'] = array( __( 'Your attempt to delete this category: & quot;%s" has failed.' ), 'get_cat_name' );2246 $trans['update']['category'] = array( __( 'Your attempt to edit this category: & quot;%s" has failed.' ), 'get_cat_name' );2247 2248 $trans['delete']['comment'] = array( __( 'Your attempt to delete this comment: & quot;%s" has failed.' ), 'use_id' );2249 $trans['unapprove']['comment'] = array( __( 'Your attempt to unapprove this comment: & quot;%s" has failed.' ), 'use_id' );2250 $trans['approve']['comment'] = array( __( 'Your attempt to approve this comment: & quot;%s" has failed.' ), 'use_id' );2251 $trans['update']['comment'] = array( __( 'Your attempt to edit this comment: & quot;%s" has failed.' ), 'use_id' );2245 $trans['delete']['category'] = array( __( 'Your attempt to delete this category: “%s” has failed.' ), 'get_cat_name' ); 2246 $trans['update']['category'] = array( __( 'Your attempt to edit this category: “%s” has failed.' ), 'get_cat_name' ); 2247 2248 $trans['delete']['comment'] = array( __( 'Your attempt to delete this comment: “%s” has failed.' ), 'use_id' ); 2249 $trans['unapprove']['comment'] = array( __( 'Your attempt to unapprove this comment: “%s” has failed.' ), 'use_id' ); 2250 $trans['approve']['comment'] = array( __( 'Your attempt to approve this comment: “%s” has failed.' ), 'use_id' ); 2251 $trans['update']['comment'] = array( __( 'Your attempt to edit this comment: “%s” has failed.' ), 'use_id' ); 2252 2252 $trans['bulk']['comments'] = array( __( 'Your attempt to bulk modify comments has failed.' ), false ); 2253 2253 $trans['moderate']['comments'] = array( __( 'Your attempt to moderate comments has failed.' ), false ); 2254 2254 2255 2255 $trans['add']['bookmark'] = array( __( 'Your attempt to add this link has failed.' ), false ); 2256 $trans['delete']['bookmark'] = array( __( 'Your attempt to delete this link: & quot;%s" has failed.' ), 'use_id' );2257 $trans['update']['bookmark'] = array( __( 'Your attempt to edit this link: & quot;%s" has failed.' ), 'use_id' );2256 $trans['delete']['bookmark'] = array( __( 'Your attempt to delete this link: “%s” has failed.' ), 'use_id' ); 2257 $trans['update']['bookmark'] = array( __( 'Your attempt to edit this link: “%s” has failed.' ), 'use_id' ); 2258 2258 $trans['bulk']['bookmarks'] = array( __( 'Your attempt to bulk modify links has failed.' ), false ); 2259 2259 2260 2260 $trans['add']['page'] = array( __( 'Your attempt to add this page has failed.' ), false ); 2261 $trans['delete']['page'] = array( __( 'Your attempt to delete this page: & quot;%s" has failed.' ), 'get_the_title' );2262 $trans['update']['page'] = array( __( 'Your attempt to edit this page: & quot;%s" has failed.' ), 'get_the_title' );2263 2264 $trans['edit']['plugin'] = array( __( 'Your attempt to edit this plugin file: & quot;%s" has failed.' ), 'use_id' );2265 $trans['activate']['plugin'] = array( __( 'Your attempt to activate this plugin: & quot;%s" has failed.' ), 'use_id' );2266 $trans['deactivate']['plugin'] = array( __( 'Your attempt to deactivate this plugin: & quot;%s" has failed.' ), 'use_id' );2267 $trans['upgrade']['plugin'] = array( __( 'Your attempt to upgrade this plugin: & quot;%s" has failed.' ), 'use_id' );2261 $trans['delete']['page'] = array( __( 'Your attempt to delete this page: “%s” has failed.' ), 'get_the_title' ); 2262 $trans['update']['page'] = array( __( 'Your attempt to edit this page: “%s” has failed.' ), 'get_the_title' ); 2263 2264 $trans['edit']['plugin'] = array( __( 'Your attempt to edit this plugin file: “%s” has failed.' ), 'use_id' ); 2265 $trans['activate']['plugin'] = array( __( 'Your attempt to activate this plugin: “%s” has failed.' ), 'use_id' ); 2266 $trans['deactivate']['plugin'] = array( __( 'Your attempt to deactivate this plugin: “%s” has failed.' ), 'use_id' ); 2267 $trans['upgrade']['plugin'] = array( __( 'Your attempt to upgrade this plugin: “%s” has failed.' ), 'use_id' ); 2268 2268 2269 2269 $trans['add']['post'] = array( __( 'Your attempt to add this post has failed.' ), false ); 2270 $trans['delete']['post'] = array( __( 'Your attempt to delete this post: & quot;%s" has failed.' ), 'get_the_title' );2271 $trans['update']['post'] = array( __( 'Your attempt to edit this post: & quot;%s" has failed.' ), 'get_the_title' );2270 $trans['delete']['post'] = array( __( 'Your attempt to delete this post: “%s” has failed.' ), 'get_the_title' ); 2271 $trans['update']['post'] = array( __( 'Your attempt to edit this post: “%s” has failed.' ), 'get_the_title' ); 2272 2272 2273 2273 $trans['add']['user'] = array( __( 'Your attempt to add this user has failed.' ), false ); 2274 2274 $trans['delete']['users'] = array( __( 'Your attempt to delete users has failed.' ), false ); 2275 2275 $trans['bulk']['users'] = array( __( 'Your attempt to bulk modify users has failed.' ), false ); 2276 $trans['update']['user'] = array( __( 'Your attempt to edit this user: & quot;%s" has failed.' ), 'get_author_name' );2277 $trans['update']['profile'] = array( __( 'Your attempt to modify the profile for: & quot;%s" has failed.' ), 'get_author_name' );2276 $trans['update']['user'] = array( __( 'Your attempt to edit this user: “%s” has failed.' ), 'get_author_name' ); 2277 $trans['update']['profile'] = array( __( 'Your attempt to modify the profile for: “%s” has failed.' ), 'get_author_name' ); 2278 2278 2279 2279 $trans['update']['options'] = array( __( 'Your attempt to edit your settings has failed.' ), false ); 2280 2280 $trans['update']['permalink'] = array( __( 'Your attempt to change your permalink structure to: %s has failed.' ), 'use_id' ); 2281 $trans['edit']['file'] = array( __( 'Your attempt to edit this file: & quot;%s" has failed.' ), 'use_id' );2282 $trans['edit']['theme'] = array( __( 'Your attempt to edit this theme file: & quot;%s" has failed.' ), 'use_id' );2283 $trans['switch']['theme'] = array( __( 'Your attempt to switch to this theme: & quot;%s" has failed.' ), 'use_id' );2281 $trans['edit']['file'] = array( __( 'Your attempt to edit this file: “%s” has failed.' ), 'use_id' ); 2282 $trans['edit']['theme'] = array( __( 'Your attempt to edit this theme file: “%s” has failed.' ), 'use_id' ); 2283 $trans['switch']['theme'] = array( __( 'Your attempt to switch to this theme: “%s” has failed.' ), 'use_id' ); 2284 2284 2285 2285 $trans['log']['out'] = array( sprintf( __( 'You are attempting to log out of %s' ), get_bloginfo( 'sitename' ) ), false ); -
trunk/wp-includes/general-template.php
r11180 r11190 1459 1459 'authortitle' => __('%1$s %2$s Posts by %3$s Feed'), 1460 1460 /* translators: 1: blog name, 2: separator(raquo), 3: search phrase */ 1461 'searchtitle' => __('%1$s %2$s Search Results for & quot;%3$s" Feed'),1461 'searchtitle' => __('%1$s %2$s Search Results for “%3$s” Feed'), 1462 1462 ); 1463 1463 -
trunk/wp-includes/taxonomy.php
r11153 r11190 1643 1643 $slug = wp_unique_term_slug($slug, (object) $args); 1644 1644 else 1645 return new WP_Error('duplicate_term_slug', sprintf(__('The slug "%s"is already in use by another term'), $slug));1645 return new WP_Error('duplicate_term_slug', sprintf(__('The slug “%s” is already in use by another term'), $slug)); 1646 1646 } 1647 1647 -
trunk/wp-mail.php
r11066 r11190 24 24 ( ! $count = $pop3->pass(get_option('mailserver_pass')) ) ) { 25 25 $pop3->quit(); 26 wp_die( ( 0 === $count ) ? __( "There doesn't seem to be any new mail.") : wp_specialchars($pop3->ERROR) );26 wp_die( ( 0 === $count ) ? __('There doesn’t seem to be any new mail.') : wp_specialchars($pop3->ERROR) ); 27 27 } 28 28 -
trunk/xmlrpc.php
r10982 r11190 499 499 500 500 if( !current_user_can( 'edit_page', $page_id ) ) 501 return new IXR_Error( 401, __( 'Sorry, you can 501 return new IXR_Error( 401, __( 'Sorry, you cannot edit this page.' ) ); 502 502 503 503 do_action('xmlrpc_call', 'wp.getPage'); … … 596 596 597 597 if( !current_user_can( 'edit_pages' ) ) 598 return new IXR_Error( 401, __( 'Sorry, you can 598 return new IXR_Error( 401, __( 'Sorry, you cannot edit pages.' ) ); 599 599 600 600 do_action('xmlrpc_call', 'wp.getPages'); … … 650 650 // Make sure the user is allowed to add new pages. 651 651 if(!current_user_can("publish_pages")) { 652 return(new IXR_Error(401, __("Sorry, you can 652 return(new IXR_Error(401, __("Sorry, you cannot add new pages."))); 653 653 } 654 654 … … 781 781 782 782 if( !current_user_can( 'edit_pages' ) ) 783 return new IXR_Error( 401, __( 'Sorry, you can 783 return new IXR_Error( 401, __( 'Sorry, you cannot edit pages.' ) ); 784 784 785 785 do_action('xmlrpc_call', 'wp.getPageList'); … … 834 834 835 835 if(!current_user_can("edit_posts")) { 836 return(new IXR_Error(401, __("Sorry, you can 836 return(new IXR_Error(401, __("Sorry, you cannot edit posts on this blog."))); 837 837 } 838 838 … … 1103 1103 1104 1104 if ( !current_user_can( 'moderate_comments' ) ) 1105 return new IXR_Error( 401, __( 'Sorry, you can 1105 return new IXR_Error( 401, __( 'Sorry, you cannot edit comments.' ) ); 1106 1106 1107 1107 do_action('xmlrpc_call', 'wp.getComments'); … … 1666 1666 1667 1667 if( !current_user_can( 'edit_post', $post_ID ) ) 1668 return new IXR_Error( 401, __( 'Sorry, you can 1668 return new IXR_Error( 401, __( 'Sorry, you cannot edit this post.' ) ); 1669 1669 1670 1670 do_action('xmlrpc_call', 'blogger.getPost'); … … 1812 1812 1813 1813 if ( !current_user_can('edit_themes') ) { 1814 return new IXR_Error(401, __('Sorry, this user can 1814 return new IXR_Error(401, __('Sorry, this user cannot edit the template.')); 1815 1815 } 1816 1816 … … 2335 2335 // created (which was the old behavior). 2336 2336 if(empty($postdata["ID"])) { 2337 return(new IXR_Error(404, __("Invalid post id.")));2337 return(new IXR_Error(404, __("Invalid post ID."))); 2338 2338 } 2339 2339 … … 2565 2565 2566 2566 if( !current_user_can( 'edit_post', $post_ID ) ) 2567 return new IXR_Error( 401, __( 'Sorry, you can 2567 return new IXR_Error( 401, __( 'Sorry, you cannot edit this post.' ) ); 2568 2568 2569 2569 do_action('xmlrpc_call', 'metaWeblog.getPost'); … … 3048 3048 3049 3049 if ( !current_user_can('edit_post', $post_ID) ) 3050 return new IXR_Error(401, __('Sorry, you can 3050 return new IXR_Error(401, __('Sorry, you cannot edit this post.')); 3051 3051 3052 3052 foreach($categories as $cat) { … … 3158 3158 3159 3159 if ( !current_user_can('edit_post', $post_ID) ) 3160 return new IXR_Error(401, __('Sorry, you can 3160 return new IXR_Error(401, __('Sorry, you cannot edit this post.')); 3161 3161 3162 3162 $postdata = wp_get_single_post($post_ID,ARRAY_A); … … 3245 3245 } else { 3246 3246 // TODO: Attempt to extract a post ID from the given URL 3247 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn \'t exist, or it is not a pingback-enabled resource.'));3247 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.')); 3248 3248 } 3249 3249 $post_ID = (int) $post_ID; … … 3255 3255 3256 3256 if ( !$post ) // Post_ID not found 3257 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn \'t exist, or it is not a pingback-enabled resource.'));3257 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.')); 3258 3258 3259 3259 if ( $post_ID == url_to_postid($pagelinkedfrom) ) … … 3262 3262 // Check if pings are on 3263 3263 if ( !pings_open($post) ) 3264 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn \'t exist, or it is not a pingback-enabled resource.'));3264 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.')); 3265 3265 3266 3266 // Let's check that the remote site didn't already pingback this entry … … 3370 3370 if (!$post_ID) { 3371 3371 // We aren't sure that the resource is available and/or pingback enabled 3372 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn \'t exist, or it is not a pingback-enabled resource.'));3372 return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn’t exist, or it is not a pingback-enabled resource.')); 3373 3373 } 3374 3374
Note: See TracChangeset
for help on using the changeset viewer.