Make WordPress Core


Ignore:
Timestamp:
06/03/2010 06:58:41 PM (16 years ago)
Author:
nacin
Message:

More request_filesystem_credentials() string improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/file.php

    r15099 r15130  
    966966<h2><?php _e('Connection Information') ?></h2>
    967967<p><?php
     968        $label_user = __('Username');
     969        $label_pass = __('Password');
    968970        _e('To perform the requested action, WordPress needs to access to your web server.');
    969971        echo ' ';
    970972        if ( ( isset( $types['ftp'] ) || isset( $types['ftps'] ) ) ) {
    971                 if ( isset( $types['ssh'] ) )
     973                if ( isset( $types['ssh'] ) ) {
    972974                        _e('Please enter your FTP or SSH credentials to proceed.');
    973                 else
     975                        $label_user = __('FTP/SSH Username');
     976                        $label_pass = __('FTP/SSH Password');
     977                } else {
    974978                        _e('Please enter your FTP credentials to proceed.');
     979                        $label_user = __('FTP Username');
     980                        $label_pass = __('FTP Password');
     981                }
    975982                echo ' ';
    976983        }
     
    984991
    985992<tr valign="top">
    986 <th scope="row"><label for="username"><?php _e('Username') ?></label></th>
     993<th scope="row"><label for="username"><?php echo $label_user; ?></label></th>
    987994<td><input name="username" type="text" id="username" value="<?php echo esc_attr($username) ?>"<?php disabled( defined('FTP_USER') ); ?> size="40" /></td>
    988995</tr>
    989996
    990997<tr valign="top">
    991 <th scope="row"><label for="password"><?php _e('Password') ?></label></th>
     998<th scope="row"><label for="password"><?php echo $label_pass; ?></label></th>
    992999<td><input name="password" type="password" id="password" value="<?php if ( defined('FTP_PASS') ) echo '*****'; ?>"<?php disabled( defined('FTP_PASS') ); ?> size="40" /></td>
    9931000</tr>
Note: See TracChangeset for help on using the changeset viewer.