WordPress.org

Make WordPress Core

Changeset 35663


Ignore:
Timestamp:
11/18/2015 05:21:37 PM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add translator comments for strings in wp-admin/includes/class-wp-filesystem-ftpext.php.

See #34684.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpext.php

    r35476 r35663  
    7676
    7777        if ( ! $this->link ) {
    78             $this->errors->add('connect', sprintf(__('Failed to connect to FTP Server %1$s:%2$s'), $this->options['hostname'], $this->options['port']));
    79             return false;
    80         }
    81 
    82         if ( ! @ftp_login($this->link,$this->options['username'], $this->options['password']) ) {
    83             $this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username']));
     78            $this->errors->add( 'connect',
     79                /* translators: %s: hostname:port */
     80                sprintf( __( 'Failed to connect to FTP Server %s' ),
     81                    $this->options['hostname'] . ':' . $this->options['port']
     82                )
     83            );
     84            return false;
     85        }
     86
     87        if ( ! @ftp_login( $this->link,$this->options['username'], $this->options['password'] ) ) {
     88            $this->errors->add( 'auth',
     89                /* translators: %s: username */
     90                sprintf( __( 'Username/Password incorrect for %s' ),
     91                    $this->options['username']
     92                )
     93            );
    8494            return false;
    8595        }
  • trunk/src/wp-admin/includes/class-wp-filesystem-ssh2.php

    r35661 r35663  
    118118                /* translators: %s: hostname:port */
    119119                sprintf( __( 'Failed to connect to SSH2 Server %s' ),
    120                     $this->options['hostname'].':'.$this->options['port']
     120                    $this->options['hostname'] . ':' . $this->options['port']
    121121                )
    122122            );
Note: See TracChangeset for help on using the changeset viewer.