Ticket #36173: 36173.17.diff
File 36173.17.diff, 8.6 KB (added by , 9 years ago) |
---|
-
src/wp-admin/about.php
81 81 <h3><?php _e( 'Live Responsive Previews' ); ?></h3> 82 82 <?php 83 83 if ( current_user_can( 'customize' ) ) { 84 $customize_url = esc_url( admin_url( 'customize.php' ));85 $customizer_link = sprintf( __( '<a href="%1$s" class="load-customize">%2$s</a>' ), $customize_url, __( 'customizer' ) );84 $customize_url = admin_url( 'customize.php' ); 85 $customizer_link = sprintf( __( '<a href="%1$s" class="load-customize">%2$s</a>' ), esc_url( $customize_url ), __( 'customizer' ) ); 86 86 } else { 87 87 $customizer_link = __( 'customizer' ); 88 88 } 89 89 ?> 90 <p><?php printf( __( 'Make sure your site looks great on all screens! Preview mobile, tablet, and desktop views directly in the %s.' ), $customizer_link ); ?></p> 90 <p><?php 91 /* translators: "customizer", linked to Site Identity section of the customizer if theme support exists */ 92 printf( __( 'Make sure your site looks great on all screens! Preview mobile, tablet, and desktop views directly in the %s.' ), $customizer_link ); 93 ?></p> 91 94 </div> 92 95 <div class="col"> 93 96 <img src="https://cldup.com/HWDA8xR_8G.png" /> … … 95 98 <p><?php _e( 'Themes can now support logos for your business or brand.' ); ?> 96 99 <?php 97 100 if ( current_theme_supports( 'custom-logo' ) && current_user_can( 'customize' ) ) { 98 printf( __( 'Your theme supports custom logos! Try it out right now in the <a href="%s" class="load-customize">Site Identity</a> section of the customizer.' ), add_query_arg( 'autofocus[section]', 'title_tagline', $customize_url ) ); 101 printf( 102 /* translators: %s: URL to Site Identity section of the customizer */ 103 __( 'Your theme supports custom logos! Try it out right now in the <a href="%s" class="load-customize">Site Identity</a> section of the customizer.' ), 104 esc_url( add_query_arg( array( 'autofocus' => array( 'section' => 'title_tagline' ) ), $customize_url ) ) 105 ); 99 106 } else { 100 _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the Customizer.' );107 _e( 'The Twenty Fifteen and Twenty Sixteen themes have been updated to support custom logos, which can be found in the Site Identity section of the customizer.' ); 101 108 } 102 109 ?></p> 103 110 </div> … … 111 118 <div class="under-the-hood three-col"> 112 119 <div class="col"> 113 120 <h4><?php _e( 'Smart Image Resizing' ); ?></h4> 114 <p><?php printf( __( 'Generated images now load up to 50% faster with no noticeable quality loss. <a href="%s">It’s really cool</a>.' ), 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' ); ?></p> 121 <p><?php 122 printf( 123 /* translators: %s: URL to the development post of the new feature */ 124 __( 'Generated images now load up to 50% faster with no noticeable quality loss. <a href="%s">It’s really cool</a>.' ), 125 'https://make.wordpress.org/core/2016/03/12/performance-improvements-for-images-in-wordpress-4-5/' 126 ); 127 ?></p> 115 128 </div> 116 129 <div class="col"> 117 130 <h4><?php _e( 'Selective Refresh' ); ?></h4> 118 <p><?php 119 printf( __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ), 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/' ); 131 <p><?php 132 printf( 133 /* translators: %s: URL to the development post of the new feature */ 134 __( 'The customizer now supports a <a href="%s">comprehensive framework</a> for rendering parts of the preview without rewriting your PHP code in JavaScript.' ), 135 'https://make.wordpress.org/core/2016/02/16/selective-refresh-in-the-customizer/' 136 ); 120 137 if ( current_user_can( 'customize' ) && current_user_can( 'edit_theme_options' ) ) { 121 138 if ( current_theme_supports( 'menus' ) && ! current_theme_supports( 'customize-selective-refresh-widgets' ) ) { 122 printf( ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a>.' ), add_query_arg( 'autofocus[panel]', 'nav_menus', $customize_url ) ); 139 printf( 140 /* translators: %s: URL to Menus section of the customizer */ 141 ' ' . __( 'See it in action with <a href="%s" class="load-customize">Menus</a>.' ), 142 esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ) 143 ); 123 144 } elseif ( current_theme_supports( 'customize-selective-refresh-widgets' ) ) { // If widgets are supported, menus are also because of the menus widget. 124 printf( ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ), add_query_arg( 'autofocus[panel]', 'nav_menus', $customize_url ), add_query_arg( 'autofocus[panel]', 'widgets', $customize_url ) ); 145 printf( 146 /* translators: 1: URL to Menus section of the customizer, 2: URL to Widgets section of the customizer */ 147 ' ' . __( 'See it in action with <a href="%1$s" class="load-customize">Menus</a> or <a href="%2$s" class="load-customize">Widgets</a>.' ), 148 esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), $customize_url ) ), 149 esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'widgets' ) ), $customize_url ) ) 150 ); 125 151 } 126 152 } 127 153 ?></p> … … 135 161 <div class="under-the-hood two-col"> 136 162 <div class="col"> 137 163 <h4><?php _e( 'Script Loader Improvements' ); ?></h4> 138 <p><?php printf( __( 'Better support has been added for script header/footer dependencies. New <code><a href="%s">wp_add_inline_script()</a></code> enables adding extra code to registered scripts.' ), 'https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/' ); ?></p> 164 <p><?php 165 printf( 166 /* translators: %s: wp_add_inline_script() */ 167 __( 'Better support has been added for script header/footer dependencies. New %s enables adding extra code to registered scripts.' ), 168 '<code><a href="https://make.wordpress.org/core/2016/03/08/enhanced-script-loader-in-wordpress-4-5/">wp_add_inline_script()</a></code>' 169 ); 170 ?></p> 139 171 </div> 140 172 <div class="col"> 141 173 <h4><?php _e( 'Better Embed Templates' ); ?></h4> 142 <p><?php printf( __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ), 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' ); ?></p> 174 <p><?php 175 printf( 176 /* translators: %s: URL to the development post of the new feature */ 177 __( 'Embed templates have been split into parts and can be <a href="%s">directly overridden by themes</a> via the template hierarchy.' ), 178 'https://make.wordpress.org/core/2016/03/11/embeds-changes-in-wordpress-4-5/' 179 ); 180 ?></p> 143 181 </div> 144 182 </div> 145 183 -
src/wp-admin/credits.php
20 20 21 21 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 22 22 23 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes your site more connected and responsive.' ), $display_version ); ?></div>23 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s streamlines your workflow, whether you’re writing or building your site.' ), $display_version ); ?></div> 24 24 25 25 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> 26 26 -
src/wp-admin/freedoms.php
19 19 20 20 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> 21 21 22 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s makes your site more connected and responsive.' ), $display_version ); ?></div>22 <div class="about-text"><?php printf( __( 'Thank you for updating! WordPress %s streamlines your workflow, whether you’re writing or building your site.' ), $display_version ); ?></div> 23 23 24 24 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> 25 25