Changeset 30840 for trunk/src/wp-admin/about.php
- Timestamp:
- 12/13/2014 08:11:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/about.php
r30821 r30840 43 43 44 44 <div class="changelog"> 45 <h2 class="about-headline-callout"><?php echo( 'Introducing Twenty Fifteen' ); ?></h2>45 <h2 class="about-headline-callout"><?php _e( 'Introducing Twenty Fifteen' ); ?></h2> 46 46 <div class="about-overview"> 47 47 <img class="about-overview-img" src="//s.w.org/images/core/3.8/twentyfourteen.jpg?1" /> … … 53 53 </div> 54 54 <div class="col-2"> 55 <p><?php echo( 'Your content always takes center stage, whether viewed on a phone, tablet, laptop, or desktop computer.' ); ?></p>55 <p><?php _e( 'Your content always takes center stage, whether viewed on a phone, tablet, laptop, or desktop computer.' ); ?></p> 56 56 </div> 57 57 <div class="col-3 last-feature"> … … 65 65 66 66 <div class="changelog"> 67 <h2 class="about-headline-callout"><?php echo( 'Distraction-free writing' ); ?></h2>67 <h2 class="about-headline-callout"><?php _e( 'Distraction-free writing' ); ?></h2> 68 68 <div class="feature-section"> 69 69 <p><?php echo ( '<em>Just write.</em> Sometimes, you just need to concentrate on putting your thoughts into words. Try turning on <strong>writing mode</strong>. When you start typing, all the distractions will fade away, letting you focus solely on your writing. All your editing tools instantly return when you need them.' ); ?></p> … … 74 74 75 75 <div class="changelog under-the-hood"> 76 <h3><?php echo( 'The Finer Points' ); ?></h3>76 <h3><?php _e( 'The Finer Points' ); ?></h3> 77 77 78 78 <div class="feature-section col two-col"> 79 79 <div> 80 <h4><?php echo ( 'Choose a language' ); ?></h4> 81 <p><?php printf( ( 'Right now, WordPress %1$s is already translated into %2$d languages, with more always in progress. You can switch to any translation on the <a href="%3$s">General Settings</a> screen.' ), $display_version, 40, admin_url( 'options-general.php' ) ); ?></p> 80 <h4><?php _e( 'Choose a language' ); ?></h4> 81 <p><?php 82 $count = '<span id="translations-count">' . 40 . '</span>'; 83 $string = __( 'Right now, WordPress %1$s is already translated into %2$s languages, with more always in progress. You can switch to any translation on the <a href="%3$s">General Settings</a> screen.' ); 84 if ( ! current_user_can( 'manage_options' ) ) { 85 $string = strip_tags( $string ); 86 } 87 echo sprintf( $string, $display_version, $count, admin_url( 'options-general.php' ) ); 88 ?></p> 82 89 83 <h4><?php echo( 'Log out everywhere' ); ?></h4>90 <h4><?php _e( 'Log out everywhere' ); ?></h4> 84 91 <p><?php printf( ( 'There’s a new tool on <a href="%s">your profile</a> that logs you out everywhere, for those times you forget to log off a shared computer.' ), get_edit_profile_url() ); ?></p> 85 92 </div> 93 86 94 <div class="last-feature"> 87 <h4><?php echo( 'Vine embeds' ); ?></h4>95 <h4><?php _e( 'Vine embeds' ); ?></h4> 88 96 <p><?php printf( ( 'Embedding videos from Vine is as simple as pasting a URL onto its own line in a post. For more, see the Codex article on <a href="%s">Embeds</a>.' ), 'http://codex.wordpress.org/Embeds' ); ?></p> 89 97 90 <h4><?php echo ( 'Plugin recommendations' ); ?></h4> 91 <p><?php printf( ( 'The <a href="%s">plugin installer</a> now offers a list of plugins you may want to try, based on others who have similar plugins installed as you.' ), network_admin_url( 'plugin-install.php?tab=recommended' ) ); ?></p> 98 <h4><?php _e( 'Plugin recommendations' ); ?></h4> 99 <p><?php 100 $string = ( 'The <a href="%s">plugin installer</a> now offers a list of plugins you may want to try, based on others who have similar plugins installed as you.' ); 101 if ( ! current_user_can( 'install_plugins' ) ) { 102 $string = strip_tags( $string ); 103 } 104 echo sprintf( $string, network_admin_url( 'plugin-install.php?tab=recommended' ) ); 105 ?></p> 92 106 </div> 93 107 </div> … … 101 115 <div class="feature-section col two-col"> 102 116 <div> 103 <h4><?php echo( 'Complex Queries' ); ?></h4>104 <p><?php printf( ( 'Metadata, date, and term queries now support advanced conditional logic, like nested clauses and multiple operators — <code>%s</code>.' ), 'A AND ( B OR C )' ); ?></p>117 <h4><?php _e( 'Complex Queries' ); ?></h4> 118 <p><?php printf( __( 'Metadata, date, and term queries now support advanced conditional logic, like nested clauses and multiple operators — <code>%s</code>.' ), 'A AND ( B OR C )' ); ?></p> 105 119 106 <h4><?php echo( 'Customizer API' ); ?></h4>120 <h4><?php _e( 'Customizer API' ); ?></h4> 107 121 <p><?php echo ( 'The customizer now supports conditionally showing panels and sections based on the page being previewed.' ); ?></p> 108 122 </div> 109 123 <div class="last-feature"> 110 <h4><?php printf( ( '%s tags in themes' ), '<code><title></code>' ); ?></h4> 124 <h4><?php 125 /* translators: %s: "<title>" tag */ 126 printf( __( '%s tags in themes' ), '<code><title></code>' ); 127 ?></h4> 111 128 <p><?php 112 printf( ( '%s tells WordPress to handle the complexities of document titles.' ), "<code>add_theme_support( 'title-tag' )</code>" );129 printf( __( '%s tells WordPress to handle the complexities of document titles.' ), "<code>add_theme_support( 'title-tag' )</code>" ); 113 130 ?></p> 114 131 115 <h4><?php echo( 'Developer Reference' ); ?></h4>116 <p><?php printf( ( 'Continued improvements to inline code documentation have made the <a href="%s">developer reference</a> more complete than ever.' ), 'https://developer.wordpress.org/reference/' ); ?></p>132 <h4><?php _e( 'Developer Reference' ); ?></h4> 133 <p><?php printf( __( 'Continued improvements to inline code documentation have made the <a href="%s">developer reference</a> more complete than ever.' ), 'https://developer.wordpress.org/reference/' ); ?></p> 117 134 </div> 118 135 </div> … … 133 150 134 151 </div> 152 153 <script> 154 jQuery(document).ready( function($) { 155 $.ajax( 'https://api.wordpress.org/translations/core/1.0/?version=4.1', 156 { 'type' : 'HEAD' } ).done( function( data, textStatus, jqXHR ) { 157 var count = jqXHR.getResponseHeader( 'X-Translations-Count' ); 158 if ( count ) { 159 $( '#translations-count' ).text( count ); 160 } 161 }); 162 }); 163 </script> 135 164 <?php 136 165
Note: See TracChangeset
for help on using the changeset viewer.