I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment.
Adds context to one string used in two different contexts for the new user and new site signup email notification. More to come. See #38882 Built from https://develop.svn.wordpress.org/trunk@39323 git-svn-id: http://core.svn.wordpress.org/trunk@39263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -200,6 +200,7 @@ function core_update_footer( $msg = '' ) {
|
||||
|
||||
switch ( $cur->response ) {
|
||||
case 'development' :
|
||||
/* translators: 1: WordPress version number, 2: WordPress updates admin screen URL */
|
||||
return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
|
||||
|
||||
case 'upgrade' :
|
||||
|
||||
@@ -375,6 +375,7 @@ function wp_new_blog_notification($blog_title, $blog_url, $user_id, $password) {
|
||||
$email = $user->user_email;
|
||||
$name = $user->user_login;
|
||||
$login_url = wp_login_url();
|
||||
/* translators: New site notification email. 1: New site URL, 2: User login, 3: User password or password reset link, 4: Login URL */
|
||||
$message = sprintf( __( "Your new WordPress site has been successfully set up at:
|
||||
|
||||
%1\$s
|
||||
|
||||
@@ -232,12 +232,16 @@ $mysql_version = $wpdb->db_version();
|
||||
$php_compat = version_compare( $php_version, $required_php_version, '>=' );
|
||||
$mysql_compat = version_compare( $mysql_version, $required_mysql_version, '>=' ) || file_exists( WP_CONTENT_DIR . '/db.php' );
|
||||
|
||||
if ( !$mysql_compat && !$php_compat )
|
||||
if ( !$mysql_compat && !$php_compat ) {
|
||||
/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Minimum required MySQL version number, 4: Current PHP version number, 5: Current MySQL version number */
|
||||
$compat = sprintf( __( 'You cannot install because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.' ), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version );
|
||||
elseif ( !$php_compat )
|
||||
} elseif ( !$php_compat ) {
|
||||
/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number */
|
||||
$compat = sprintf( __( 'You cannot install because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_php_version, $php_version );
|
||||
elseif ( !$mysql_compat )
|
||||
} elseif ( !$mysql_compat ) {
|
||||
/* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number */
|
||||
$compat = sprintf( __( 'You cannot install because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.' ), $wp_version, $required_mysql_version, $mysql_version );
|
||||
}
|
||||
|
||||
if ( !$mysql_compat || !$php_compat ) {
|
||||
display_header();
|
||||
|
||||
@@ -518,6 +518,7 @@ if ( ! current_theme_supports( 'menus' ) && ! $num_locations )
|
||||
|
||||
if ( ! $locations_screen ) : // Main tab
|
||||
$overview = '<p>' . __( 'This screen is used for managing your custom navigation menus.' ) . '</p>';
|
||||
/* translators: 1: Widgets admin screen URL, 2 and 3: The name of the default themes */
|
||||
$overview .= '<p>' . sprintf( __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a “Custom Menu” widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the custom menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ), admin_url( 'widgets.php' ), 'Twenty Sixteen', 'Twenty Seventeen' ) . '</p>';
|
||||
$overview .= '<p>' . __( 'From this screen you can:' ) . '</p>';
|
||||
$overview .= '<ul><li>' . __( 'Create, edit, and delete menus' ) . '</li>';
|
||||
|
||||
@@ -107,6 +107,7 @@ $default_comments_page .= '>' . __('last') . '</option><option value="oldest"';
|
||||
if ( 'oldest' == get_option('default_comments_page') ) $default_comments_page .= ' selected="selected"';
|
||||
$default_comments_page .= '>' . __('first') . '</option></select>';
|
||||
|
||||
/* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page */
|
||||
printf( __('Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default'), '</label><label for="comments_per_page"><input name="comments_per_page" type="number" step="1" min="0" id="comments_per_page" value="' . esc_attr(get_option('comments_per_page')) . '" class="small-text" />', $default_comments_page );
|
||||
|
||||
?></label>
|
||||
|
||||
@@ -74,6 +74,7 @@ default :
|
||||
|
||||
$post_edit_link = get_edit_post_link();
|
||||
$post_title = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>';
|
||||
/* translators: 1: Post title */
|
||||
$h1 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title );
|
||||
$return_to_post = '<a href="' . $post_edit_link . '">' . __( '← Return to editor' ) . '</a>';
|
||||
$title = __( 'Revisions' );
|
||||
|
||||
@@ -68,12 +68,16 @@ function list_core_update( $update ) {
|
||||
$mysql_compat = version_compare( $mysql_version, $update->mysql_version, '>=' );
|
||||
|
||||
if ( !$mysql_compat && !$php_compat )
|
||||
/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Minimum required MySQL version number, 4: Current PHP version number, 5: Current MySQL version number */
|
||||
$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
|
||||
elseif ( !$php_compat )
|
||||
/* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number */
|
||||
$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
|
||||
elseif ( !$mysql_compat )
|
||||
/* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number */
|
||||
$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires MySQL version %2$s or higher. You are running version %3$s.'), $update->current, $update->mysql_version, $mysql_version );
|
||||
else
|
||||
/* translators: 1: WordPress version number, 2: WordPress version number including locale if necessary */
|
||||
$message = sprintf(__('You can update to <a href="https://codex.wordpress.org/Version_%1$s">WordPress %2$s</a> automatically:'), $update->current, $version_string);
|
||||
if ( !$mysql_compat || !$php_compat )
|
||||
$show_buttons = false;
|
||||
@@ -658,6 +662,8 @@ if ( 'upgrade-core' == $action ) {
|
||||
if ( ! current_user_can( 'update_plugins' ) )
|
||||
wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
|
||||
|
||||
// @TODO
|
||||
|
||||
check_admin_referer('upgrade-core');
|
||||
|
||||
if ( isset( $_GET['plugins'] ) ) {
|
||||
|
||||
Reference in New Issue
Block a user