| @@ -34,19 +34,19 @@ | ||
| 34 | 34 | if ( current_user_can( 'manage_options' ) ) { |
| 35 | 35 | // Connect to host ONLY if the 2 security conditions are valid / met. |
| 36 | 36 | $conn = ftp_connect( $host ); |
| 37 | 37 | if ( ! $conn ) { |
| 38 | - $trouble = 'I could not connect to your FTP server.<br />Please check your FTP Host settings and try again (leave FTP Host BLANK for local backups).'; | |
| 38 | + $trouble = esc_html__('I could not connect to your FTP server..','wpdbbkp').'<br />'.esc_html__('Please check your FTP Host settings and try again (leave FTP Host BLANK for local backups).','wpdbbkp'); | |
| 39 | 39 | backupbreeze_preflight_problem( $trouble ); |
| 40 | 40 | } |
| 41 | 41 | $result = ftp_login( $conn, $user, $pass ); |
| 42 | 42 | if ( ! $result ) { |
| 43 | - $trouble = 'I could not log in to your FTP server.<br />Please check your FTP Username and Password, then try again.<br />For local backups, please leave the FTP Host option BLANK.'; | |
| 43 | + $trouble = esc_html__('I could not log in to your FTP server.','wpdbbkp').'<br />'.esc_html__('Please check your FTP Username and Password, then try again.','wpdbbkp').'<br />'.esc_html__('For local backups, please leave the FTP Host option BLANK.','wpdbbkp'); | |
| 44 | 44 | backupbreeze_preflight_problem( $trouble ); |
| 45 | 45 | } |
| 46 | 46 | $success = ftp_chdir( $conn, $subdir ); |
| 47 | 47 | if ( ! $success ) { |
| 48 | - $trouble = 'I cannot change into the FTP subdirectory you specified. Does it exist?<br />You must create it first using an FTP client like FileZilla.<br />Please check and try again.'; | |
| 48 | + $trouble = esc_html__('I cannot change into the FTP subdirectory you specified. Does it exist?','wpdbbkp').'<br />'.esc_html__('You must create it first using an FTP client like FileZilla.','wpdbbkp').'<br />'.esc_html__('Please check and try again.','wpdbbkp'); | |
| 49 | 49 | backupbreeze_preflight_problem( $trouble ); |
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | } |