From 7bde9d176b55a3058ca7be770b324ee29cf95339 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 18 Nov 2015 17:21:37 +0000 Subject: [PATCH] I18N: Add translator comments for strings in `wp-admin/includes/class-wp-filesystem-ftpext.php`. See #34684. git-svn-id: https://develop.svn.wordpress.org/trunk@35663 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-filesystem-ftpext.php | 16 +++++++++++++--- .../includes/class-wp-filesystem-ssh2.php | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/class-wp-filesystem-ftpext.php b/src/wp-admin/includes/class-wp-filesystem-ftpext.php index 7f5f052cbb..38536a0ea9 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ftpext.php +++ b/src/wp-admin/includes/class-wp-filesystem-ftpext.php @@ -75,12 +75,22 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base { $this->link = @ftp_connect($this->options['hostname'], $this->options['port'], FS_CONNECT_TIMEOUT); if ( ! $this->link ) { - $this->errors->add('connect', sprintf(__('Failed to connect to FTP Server %1$s:%2$s'), $this->options['hostname'], $this->options['port'])); + $this->errors->add( 'connect', + /* translators: %s: hostname:port */ + sprintf( __( 'Failed to connect to FTP Server %s' ), + $this->options['hostname'] . ':' . $this->options['port'] + ) + ); return false; } - if ( ! @ftp_login($this->link,$this->options['username'], $this->options['password']) ) { - $this->errors->add('auth', sprintf(__('Username/Password incorrect for %s'), $this->options['username'])); + if ( ! @ftp_login( $this->link,$this->options['username'], $this->options['password'] ) ) { + $this->errors->add( 'auth', + /* translators: %s: username */ + sprintf( __( 'Username/Password incorrect for %s' ), + $this->options['username'] + ) + ); return false; } diff --git a/src/wp-admin/includes/class-wp-filesystem-ssh2.php b/src/wp-admin/includes/class-wp-filesystem-ssh2.php index e9c582f1ff..42eab59c79 100644 --- a/src/wp-admin/includes/class-wp-filesystem-ssh2.php +++ b/src/wp-admin/includes/class-wp-filesystem-ssh2.php @@ -117,7 +117,7 @@ class WP_Filesystem_SSH2 extends WP_Filesystem_Base { $this->errors->add( 'connect', /* translators: %s: hostname:port */ sprintf( __( 'Failed to connect to SSH2 Server %s' ), - $this->options['hostname'].':'.$this->options['port'] + $this->options['hostname'] . ':' . $this->options['port'] ) ); return false;