Make WordPress Core


Ignore:
Timestamp:
11/21/2016 01:21:01 AM (8 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/update-core.php

    r38827 r39323  
    6969
    7070            if ( !$mysql_compat && !$php_compat )
     71                /* 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 */
    7172                $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 );
    7273            elseif ( !$php_compat )
     74                /* translators: 1: WordPress version number, 2: Minimum required PHP version number, 3: Current PHP version number */
    7375                $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 );
    7476            elseif ( !$mysql_compat )
     77                /* translators: 1: WordPress version number, 2: Minimum required MySQL version number, 3: Current MySQL version number */
    7578                $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 );
    7679            else
     80                /* translators: 1: WordPress version number, 2: WordPress version number including locale if necessary */
    7781                $message =  sprintf(__('You can update to <a href="https://codex.wordpress.org/Version_%1$s">WordPress %2$s</a> automatically:'), $update->current, $version_string);
    7882            if ( !$mysql_compat || !$php_compat )
     
    659663        wp_die( __( 'Sorry, you are not allowed to update this site.' ) );
    660664
     665    // @TODO
     666
    661667    check_admin_referer('upgrade-core');
    662668
Note: See TracChangeset for help on using the changeset viewer.