chapter
2 weeks ago
modals
2 weeks ago
modules
2 weeks ago
templates
2 weeks ago
settings.php
2 weeks ago
translations.php
2 weeks ago
translations.php
355 lines
| 1 | <?php |
| 2 | |
| 3 | // Namespace |
| 4 | namespace BMI\Plugin\Dashboard; |
| 5 | |
| 6 | // Exit on direct access |
| 7 | if (!defined('ABSPATH')) { |
| 8 | exit; |
| 9 | } |
| 10 | |
| 11 | // Load translations |
| 12 | $additional_translation_pre_load = [ |
| 13 | __("Exclude certain tables from backups", 'backup-backup'), |
| 14 | __("Currently you excluded", 'backup-backup'), |
| 15 | __("Red tables", 'backup-backup'), |
| 16 | __("makred with star* are part of WordPress core, exclude them only if youre 100% sure what you are doing.", 'backup-backup'), |
| 17 | __("Blue tables", 'backup-backup'), |
| 18 | __("are related to your WordPress instance, most of them are related to your plugins.", 'backup-backup'), |
| 19 | __("If you see any black table here, it's recommended to exclude them.", 'backup-backup'), |
| 20 | __("Hint: Hold shift+click to selece many tables at once.", 'backup-backup'), |
| 21 | __("out of %s tables.", 'backup-backup'), |
| 22 | __("In total you save %s MB.", 'backup-backup'), |
| 23 | __('rows', 'backup-backup') |
| 24 | ]; |
| 25 | |
| 26 | ?> |
| 27 | |
| 28 | <div class="translations" style="display:none;visibility:hidden;height:0;width:0;"> |
| 29 | <div id="premium-tooltip"> |
| 30 | <?php if (defined('BMI_PREMIUM_TOOLTIP')): ?> |
| 31 | <?php echo wp_kses_post( BMI_PREMIUM_TOOLTIP ); ?> |
| 32 | <?php endif; ?> |
| 33 | </div> |
| 34 | <div id="premium-tooltip-r"> |
| 35 | <?php if (defined('BMI_PREMIUM_TOOLTIP_R')): ?> |
| 36 | <?php echo wp_kses_post( BMI_PREMIUM_TOOLTIP_R ); ?> |
| 37 | <?php endif; ?> |
| 38 | </div> |
| 39 | <div id="premium-tooltip-pre"><b><u><?php esc_html_e('Pro feature:', 'backup-backup'); ?></u></b></div> |
| 40 | |
| 41 | <div id="bmi-success-copy"> |
| 42 | <?php esc_html_e('Text copied successfully', 'backup-backup') ?> |
| 43 | </div> |
| 44 | <div id="bmi-received-hard"> |
| 45 | <?php esc_html_e('Browser successfully received backup settings.', 'backup-backup') ?> |
| 46 | </div> |
| 47 | <div id="bmi-failed-copy"> |
| 48 | <?php esc_html_e('Your browser does not support copying, please copy by hand', 'backup-backup') ?> |
| 49 | </div> |
| 50 | <div id="bmi-abort-soon"> |
| 51 | <?php esc_html_e('Backup will be aborted in few seconds.', 'backup-backup') ?> |
| 52 | </div> |
| 53 | <div id="bmi-aborted-al"> |
| 54 | <?php esc_html_e('Backup process aborted.', 'backup-backup') ?> |
| 55 | </div> |
| 56 | <div id="bmi-stg-aborted-al"> |
| 57 | <?php esc_html_e('Staging process aborted.', 'backup-backup') ?> |
| 58 | </div> |
| 59 | <div id="bmi-downloading-remote"> |
| 60 | <?php esc_html_e('Downloading backup file...', 'backup-backup') ?> |
| 61 | </div> |
| 62 | <div id="bmi-restoring-prepare"> |
| 63 | <?php esc_html_e('Preparing restore process...', 'backup-backup') ?> |
| 64 | </div> |
| 65 | <div id="bmi-restore-require-checkmark"> |
| 66 | <?php esc_html_e('You have to confirm that you understand the risk.', 'backup-backup') ?> |
| 67 | </div> |
| 68 | <div id="bmi-upload-start"> |
| 69 | <?php esc_html_e('File upload started.', 'backup-backup') ?> |
| 70 | </div> |
| 71 | <div id="bmi-upload-error"> |
| 72 | <?php esc_html_e('There was an error during file upload.', 'backup-backup') ?> |
| 73 | </div> |
| 74 | <div id="bmi-upload-end"> |
| 75 | <?php esc_html_e('File has been uploaded successfully.', 'backup-backup') ?> |
| 76 | </div> |
| 77 | <div id="bmi-upload-wrong"> |
| 78 | <?php esc_html_e('File has wrong type.', 'backup-backup') ?> |
| 79 | </div> |
| 80 | <div id="bmi-upload-exists"> |
| 81 | <?php esc_html_e('File already exist in backup directory.', 'backup-backup') ?> |
| 82 | </div> |
| 83 | <div id="bmi-remove-success"> |
| 84 | <?php esc_html_e('Backup(s) removed successfully.', 'backup-backup') ?> |
| 85 | </div> |
| 86 | <div id="bmi-remove-error"> |
| 87 | <?php esc_html_e('Cannot remove backup(s) file(s) due to unknown error.', 'backup-backup') ?> |
| 88 | </div> |
| 89 | <div id="bmi-save-success"> |
| 90 | <?php esc_html_e('Configuration saved successfully.', 'backup-backup') ?> |
| 91 | </div> |
| 92 | <div id="bmi-save-issues"> |
| 93 | <?php esc_html_e('There was an issue during saving, some settings may stay unchanged.', 'backup-backup') ?> |
| 94 | </div> |
| 95 | <div id="bmi-no-file"> |
| 96 | <?php esc_html_e('Could not find this backup, it may be deleted or there was an error with getting the name.', 'backup-backup') ?> |
| 97 | </div> |
| 98 | <div id="bmi-unlock-success"> |
| 99 | <?php esc_html_e('File unlocked successfully.', 'backup-backup') ?> |
| 100 | </div> |
| 101 | <div id="bmi-unlock-error"> |
| 102 | <?php esc_html_e('Could not unlock this backup due to unknown error, please reload and try again.', 'backup-backup') ?> |
| 103 | </div> |
| 104 | <div id="bmi-lock-success"> |
| 105 | <?php esc_html_e('File locked successfully.', 'backup-backup') ?> |
| 106 | </div> |
| 107 | <div id="bmi-lock-error"> |
| 108 | <?php esc_html_e('Could not lock this backup due to unknown error, please reload and try again.', 'backup-backup') ?> |
| 109 | </div> |
| 110 | <div id="bmi-download-should-start"> |
| 111 | <?php esc_html_e('Download process should start.', 'backup-backup') ?> |
| 112 | </div> |
| 113 | <div id="bmi-preb-processing"> |
| 114 | <?php esc_html_e('Backup Migration plugin is calculating the size of your files, please try again in a few seconds.', 'backup-backup') ?> |
| 115 | </div> |
| 116 | <div id="bmi-no-selected"> |
| 117 | <?php esc_html_e('There is nothing to backup. Please select database and / or files to backup.', 'backup-backup') ?> |
| 118 | </div> |
| 119 | <div id="bmi-invalid-url"> |
| 120 | <?php esc_html_e('The URL you provided does not seems to be correct.', 'backup-backup') ?> |
| 121 | </div> |
| 122 | <div id="bmi-bc-ended"> |
| 123 | <?php esc_html_e('Backup process ended, we triggered backup list reload for your.', 'backup-backup') ?> |
| 124 | </div> |
| 125 | <div id="bmi-current-time"> |
| 126 | <?php esc_html_e('Current server time: ', 'backup-backup') ?> |
| 127 | </div> |
| 128 | <div id="bmi-next-cron"> |
| 129 | <?php esc_html_e('Next backup planned: ', 'backup-backup') ?> |
| 130 | </div> |
| 131 | <div id="bmi-cron-updated"> |
| 132 | <?php esc_html_e('Settings updated successfully', 'backup-backup') ?> |
| 133 | </div> |
| 134 | <div id="bmi-cron-local-site"> |
| 135 | <?php esc_html_e('Your site appears to be running locally or is not publicly accessible. As a result, scheduled backups may not run reliably.', 'backup-backup') ?> |
| 136 | </div> |
| 137 | |
| 138 | <div id="bmi-cron-ping-server"> |
| 139 | <?php esc_html_e('Our ping service is currently unable to reach your site. Scheduled backups may not run reliably. Please verify your site’s accessibility and server configuration.', 'backup-backup') ?> |
| 140 | </div> |
| 141 | <div id="bmi-cron-updated-fail"> |
| 142 | <?php esc_html_e('Could not update CRON setting now, please check the logs.', 'backup-backup') ?> |
| 143 | </div> |
| 144 | <div id="bmi-making-archive"> |
| 145 | <?php esc_html_e("Making archive", 'backup-backup') ?> |
| 146 | </div> |
| 147 | <div id="bmi-email-success"> |
| 148 | <?php esc_html_e('Email send successfully, check mailbox.', 'backup-backup') ?> |
| 149 | </div> |
| 150 | <div id="bmi-email-fail"> |
| 151 | <?php esc_html_e("There was an error sending the email, please use additional plugins to debug it or ask your hosting administrator for help.", 'backup-backup') ?> |
| 152 | </div> |
| 153 | <div id="bmi-manual-locked"> |
| 154 | <?php esc_html_e("Manually created backups are always locked.", 'backup-backup') ?> |
| 155 | </div> |
| 156 | <div id="bmi-default-success"> |
| 157 | <?php esc_html_e("Operation finished with success.", 'backup-backup') ?> |
| 158 | </div> |
| 159 | <div id="bmi-default-fail"> |
| 160 | <?php esc_html_e("Operation failed, please try again.", 'backup-backup') ?> |
| 161 | </div> |
| 162 | <div id="bmi-loading-translation"> |
| 163 | <?php esc_html_e("Loading...", 'backup-backup') ?> |
| 164 | </div> |
| 165 | <div id="failed-to-stop"> |
| 166 | <?php esc_html_e("We could not stop the process due to some issues on your server (maybe file permissions).", 'backup-backup') ?> |
| 167 | </div> |
| 168 | <div id="bmi-force-stop-in-progress"> |
| 169 | <?php esc_html_e("Stopping the process, it will be confirmed...", 'backup-backup') ?> |
| 170 | </div> |
| 171 | <div id="bmi-force-stop-success"> |
| 172 | <?php esc_html_e("The process should be stopped now.", 'backup-backup') ?> |
| 173 | </div> |
| 174 | <div id="bmi-support-send-success"> |
| 175 | <?php esc_html_e("Logs shared successfully.", 'backup-backup') ?> |
| 176 | </div> |
| 177 | <div id="bmi-support-send-fail"> |
| 178 | <?php esc_html_e("There was an error while sharing logs for support.", 'backup-backup') ?> |
| 179 | </div> |
| 180 | <div id="bmi-support-send-start"> |
| 181 | <?php esc_html_e("Sending your logs, please wait (up to 15 seconds)...", 'backup-backup') ?> |
| 182 | </div> |
| 183 | <div id="bmi-backup-created-on"> |
| 184 | <?php esc_html_e("Backup created on site:", 'backup-backup') ?> |
| 185 | </div> |
| 186 | <div id="bmi-backup-original-name"> |
| 187 | <?php esc_html_e("Backup original name:", 'backup-backup') ?> |
| 188 | </div> |
| 189 | <div id="bmi-backup-file-name"> |
| 190 | <?php esc_html_e("Name of file on server:", 'backup-backup') ?> |
| 191 | </div> |
| 192 | <div id="bmi-file-disabled"> |
| 193 | <?php esc_html_e("You cannot backup this, it's disabled in settings.", 'backup-backup') ?> |
| 194 | </div> |
| 195 | <div id="bmi-backup-logs-modal-title"> |
| 196 | <?php esc_html_e("Backup logs", 'backup-backup') ?> |
| 197 | </div> |
| 198 | <div id="bmi-restore-logs-modal-title"> |
| 199 | <?php esc_html_e("Restore logs", 'backup-backup') ?> |
| 200 | </div> |
| 201 | <div id="bmi-error-modal-title"> |
| 202 | <?php esc_html_e("Backup creation failed", 'backup-backup') ?> |
| 203 | </div> |
| 204 | <div id="bmi-restore-error-modal-title"> |
| 205 | <?php esc_html_e("Restore failed", 'backup-backup') ?> |
| 206 | </div> |
| 207 | <div id="bmi-backup-downloaded"> |
| 208 | <?php esc_html_e('Backup downloaded successfully.', 'backup-backup') ?> |
| 209 | </div> |
| 210 | <div id="bmi-save-connect-s3-success"> |
| 211 | <?php esc_html_e('We have successfully connected to your S3 bucket.', 'backup-backup') ?> |
| 212 | </div> |
| 213 | <div id="bmi-download-progress-modal-title"> |
| 214 | <?php esc_html_e('Downloading backup file', 'backup-backup') ?> |
| 215 | </div> |
| 216 | <div id="bmi-download-warning"> |
| 217 | <?php esc_html_e('Backup file needs to be downloaded before the parts can be selected', 'backup-backup') ?> |
| 218 | </div> |
| 219 | <div id="bmi-restore-progress-modal-title"> |
| 220 | <?php esc_html_e('Restoration in progress', 'backup-backup') ?> |
| 221 | </div> |
| 222 | <div id="bmi-restore-progress-modal-warning"> |
| 223 | <?php esc_html_e('Do not close this window as long as the restoration process is ongoing', 'backup-backup'); ?> |
| 224 | </div> |
| 225 | <?php if (false) { ?> |
| 226 | <div id="bmi-share-logs-thank-you"> |
| 227 | <?php esc_html_e("Thank you very much for your support!", 'backup-backup') ?> |
| 228 | </div> |
| 229 | <div id="bmi-staging-prepare"> |
| 230 | <?php esc_html_e('Preparing creation of staging site...', 'backup-backup') ?> |
| 231 | </div> |
| 232 | <?php } ?> |
| 233 | <div id="bmi-before-core-update-backup"> |
| 234 | <?php esc_html_e('Core and database successfully backed up.', 'backup-backup') ?> |
| 235 | </div> |
| 236 | <div id="bmi-before-update-is-enabled"> |
| 237 | <?php echo bmi_get_config('OTHER:TRIGGER:BEFORE:UPDATES') ? 1 : 0; ?> |
| 238 | </div> |
| 239 | <div id="bmi-before-update-backup"> |
| 240 | <?php esc_html_e("Before update backup", 'backup-backup') ?> |
| 241 | </div> |
| 242 | <div id="creating-backup"> |
| 243 | <?php esc_html_e("Creating backup...", 'backup-backup') ?> |
| 244 | </div> |
| 245 | <div id="core-backup-in-progress"> |
| 246 | <?php esc_html_e("Core backup in progress...", 'backup-backup') ?> |
| 247 | </div> |
| 248 | <div id="theme-backup-in-progress"> |
| 249 | <?php esc_html_e("Theme backup in progress...", 'backup-backup') ?> |
| 250 | </div> |
| 251 | <div id="plugins-backup-in-progress"> |
| 252 | <?php esc_html_e("Plugins backup in progress...", 'backup-backup') ?> |
| 253 | </div> |
| 254 | <div id="backup-succeeded-update-will-start"> |
| 255 | <?php esc_html_e("Backup created successfully. Proceeding with update.", 'backup-backup') ?> |
| 256 | </div> |
| 257 | <div id="backup-failed"> |
| 258 | <?php esc_html_e("Backup failed: ", 'backup-backup') ?> |
| 259 | </div> |
| 260 | <div id="backup-failed-update-anyway"> |
| 261 | <?php esc_html_e("Backup failed, update anyway", 'backup-backup') ?> |
| 262 | </div> |
| 263 | <div id="update-anyway"> |
| 264 | <?php esc_html_e("Update anyway", 'backup-backup') ?> |
| 265 | </div> |
| 266 | <div id="error-occurred"> |
| 267 | <?php esc_html_e("An error occurred during the backup process. Please check ", 'backup-backup') ?> |
| 268 | </div> |
| 269 | <div id="bmi-dashboard"> |
| 270 | <?php esc_html_e("Backup Migration dashboard", 'backup-backup') ?> |
| 271 | </div> |
| 272 | <div id="or"> |
| 273 | <?php esc_html_e("or ", 'backup-backup') ?> |
| 274 | </div> |
| 275 | <div id="update-anyway-small"> |
| 276 | <?php esc_html_e("update anyway", 'backup-backup') ?> |
| 277 | </div> |
| 278 | <div id="proceed-without-backup"> |
| 279 | <?php esc_html_e("to proceed without backup", 'backup-backup') ?> |
| 280 | </div> |
| 281 | <div id="updating"> |
| 282 | <?php esc_html_e("Updating...", 'backup-backup') ?> |
| 283 | </div> |
| 284 | <div id="ask-if-update-anyway"> |
| 285 | <?php esc_html_e('Would you like to proceed with the update without a backup? %sUpdate Anyway.%s', 'backup-backup') ?> |
| 286 | </div> |
| 287 | <div id="bmi-save-connect-ftp"> |
| 288 | <?php esc_html_e('Connected to FTP server successfully.', 'backup-backup') ?> |
| 289 | </div> |
| 290 | <div id="bmi-save-connect-sftp"> |
| 291 | <?php esc_html_e('Connected to SFTP server successfully.', 'backup-backup') ?> |
| 292 | </div> |
| 293 | <div id="direct-link-disabled-tooltip"> |
| 294 | <?php esc_html_e('Enable backup accessibility via links in the plugin section "Where should the backup(s) be stored?"', 'backup-backup') ?> |
| 295 | </div> |
| 296 | <div id="direct-link-enabled-tooltip"> |
| 297 | <?php esc_html_e('Copy link to backup file for super-quick migration', 'backup-backup') ?> |
| 298 | </div> |
| 299 | <div id="simple-explorer-for-restoring"> |
| 300 | <?php esc_html_e('Restore Backup', 'backup-backup') ?> |
| 301 | </div> |
| 302 | <div id="simple-explorer-for-excluding"> |
| 303 | <?php esc_html_e('Exclude from Backup', 'backup-backup') ?> |
| 304 | </div> |
| 305 | <div id="simple-explorer-confirm-for-restoring"> |
| 306 | <?php esc_html_e('Start restoring!', 'backup-backup') ?> |
| 307 | </div> |
| 308 | <div id="simple-explorer-confirm-for-excluding"> |
| 309 | <?php esc_html_e('Exclude selected', 'backup-backup') ?> |
| 310 | </div> |
| 311 | <div id="bmi-exclude-save-success"> |
| 312 | <?php esc_html_e('Settings saved successfully.', 'backup-backup') ?> |
| 313 | </div> |
| 314 | <div id="bmi-empty-directory"> |
| 315 | <?php esc_html_e('This directory is empty.', 'backup-backup') ?> |
| 316 | </div> |
| 317 | <div id="bmi-no-partial-exclude"> |
| 318 | <?php esc_html_e('This type can only be fully backed up or fully excluded. Partial exclusion is not supported.', 'backup-backup') ?> |
| 319 | </div> |
| 320 | <div id="bmi-direct-cloud-allowed-only-with-cloud-strategy"> |
| 321 | <?php esc_html_e('You can only enable this option if you have selected all backups to be stored only on the cloud, in the section above.', 'backup-backup') ?> |
| 322 | </div> |
| 323 | <input type="text" value="<?php echo defined('BMI_BACKUP_PRO') && BMI_BACKUP_PRO === 1 ? 1 : 0; ?>" hidden id="BMI_BACKUP_PRO" /> |
| 324 | |
| 325 | <div id="bmi-pwd-modal-restore-title"><?php esc_html_e("Enter Backup Password", 'backup-backup') ?></div> |
| 326 | <div id="bmi-pwd-modal-restore-desc"><?php esc_html_e("Please provide the password for this backup to proceed with the restoration.", 'backup-backup') ?></div> |
| 327 | <div id="bmi-pwd-modal-restore-btn"><?php esc_html_e("Verify & Restore", 'backup-backup') ?></div> |
| 328 | |
| 329 | <div id="bmi-pwd-modal-encrypt-title"><?php esc_html_e("Encrypt Backup", 'backup-backup') ?></div> |
| 330 | <div id="bmi-pwd-modal-encrypt-desc"><?php esc_html_e("Enter an encryption password for this backup.", 'backup-backup') ?></div> |
| 331 | <div id="bmi-pwd-modal-encrypt-btn"><?php esc_html_e("Encrypt Backup", 'backup-backup') ?></div> |
| 332 | <div id="bmi-pwd-modal-encrypt-warn"><?php esc_html_e("This backup will be removed from all connected external storage providers. After encryption completes successfully, any remote copies will be permanently deleted.", 'backup-backup') ?></div> |
| 333 | |
| 334 | <div id="bmi-pwd-modal-decrypt-title"><?php esc_html_e("Decrypt Backup", 'backup-backup') ?></div> |
| 335 | <div id="bmi-pwd-modal-decrypt-desc"><?php esc_html_e("Enter the password to decrypt this backup.", 'backup-backup') ?></div> |
| 336 | <div id="bmi-pwd-modal-decrypt-btn"><?php esc_html_e("Decrypt Backup", 'backup-backup') ?></div> |
| 337 | <div id="bmi-pwd-modal-decrypt-warn"><?php esc_html_e("This backup will be removed from all connected external storage providers. After decryption completes successfully, any remote copies will be permanently deleted.", 'backup-backup') ?></div> |
| 338 | <div id="bmi-pwd-modal-warn-important"><?php esc_html_e("Important:", 'backup-backup') ?></div> |
| 339 | |
| 340 | <div id="BMI_URL_ROOT"><?php echo esc_url( plugin_dir_url(BMI_ROOT_FILE) ); ?></div> |
| 341 | <div id="BMI_BLOG_URL"><?php echo esc_url( get_site_url() ); ?></div> |
| 342 | <div id="BMI_REV"><?php echo esc_html( BMI_REV ); ?></div> |
| 343 | <div id="BMI_SECRET_KEY"><?php echo esc_html( wp_create_nonce('bmi_download_nonce') ); ?></div> |
| 344 | <?php |
| 345 | $bmi_download_token = get_transient('bmi_download_token'); |
| 346 | if (!$bmi_download_token) { |
| 347 | $bmi_download_token = wp_generate_password(32, false); |
| 348 | set_transient('bmi_download_token', $bmi_download_token, 7 * DAY_IN_SECONDS); |
| 349 | } |
| 350 | ?> |
| 351 | <div id="BMI_DOWNLOAD_TOKEN"><?php echo esc_html( $bmi_download_token ); ?></div> |
| 352 | <div id="BMI_ASSETS"><?php echo esc_url( BMI_ASSETS ); ?></div> |
| 353 | <div><input type="text" id="bmi-support-url-translation" value="<?php echo esc_url( BMI_CHAT_SUPPORT_URL ); ?>" hidden autocomplete="off"></div> |
| 354 | </div> |
| 355 |