chapter
3 months ago
modals
3 months ago
modules
3 months ago
templates
3 months ago
settings.php
3 months ago
translations.php
3 months ago
translations.php
303 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-updated-fail"> |
| 135 | <?php esc_html_e('Could not update CRON setting now, please check the logs.', 'backup-backup') ?> |
| 136 | </div> |
| 137 | <div id="bmi-making-archive"> |
| 138 | <?php esc_html_e("Making archive", 'backup-backup') ?> |
| 139 | </div> |
| 140 | <div id="bmi-email-success"> |
| 141 | <?php esc_html_e('Email send successfully, check mailbox.', 'backup-backup') ?> |
| 142 | </div> |
| 143 | <div id="bmi-email-fail"> |
| 144 | <?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') ?> |
| 145 | </div> |
| 146 | <div id="bmi-manual-locked"> |
| 147 | <?php esc_html_e("Manually created backups are always locked.", 'backup-backup') ?> |
| 148 | </div> |
| 149 | <div id="bmi-default-success"> |
| 150 | <?php esc_html_e("Operation finished with success.", 'backup-backup') ?> |
| 151 | </div> |
| 152 | <div id="bmi-default-fail"> |
| 153 | <?php esc_html_e("Operation failed, please try again.", 'backup-backup') ?> |
| 154 | </div> |
| 155 | <div id="bmi-loading-translation"> |
| 156 | <?php esc_html_e("Loading...", 'backup-backup') ?> |
| 157 | </div> |
| 158 | <div id="failed-to-stop"> |
| 159 | <?php esc_html_e("We could not stop the process due to some issues on your server (maybe file permissions).", 'backup-backup') ?> |
| 160 | </div> |
| 161 | <div id="bmi-force-stop-in-progress"> |
| 162 | <?php esc_html_e("Stopping the process, it will be confirmed...", 'backup-backup') ?> |
| 163 | </div> |
| 164 | <div id="bmi-force-stop-success"> |
| 165 | <?php esc_html_e("The process should be stopped now.", 'backup-backup') ?> |
| 166 | </div> |
| 167 | <div id="bmi-support-send-success"> |
| 168 | <?php esc_html_e("Logs shared successfully.", 'backup-backup') ?> |
| 169 | </div> |
| 170 | <div id="bmi-support-send-fail"> |
| 171 | <?php esc_html_e("There was an error while sharing logs for support.", 'backup-backup') ?> |
| 172 | </div> |
| 173 | <div id="bmi-support-send-start"> |
| 174 | <?php esc_html_e("Sending your logs, please wait (up to 15 seconds)...", 'backup-backup') ?> |
| 175 | </div> |
| 176 | <div id="bmi-backup-created-on"> |
| 177 | <?php esc_html_e("Backup created on site:", 'backup-backup') ?> |
| 178 | </div> |
| 179 | <div id="bmi-backup-original-name"> |
| 180 | <?php esc_html_e("Backup original name:", 'backup-backup') ?> |
| 181 | </div> |
| 182 | <div id="bmi-backup-file-name"> |
| 183 | <?php esc_html_e("Name of file on server:", 'backup-backup') ?> |
| 184 | </div> |
| 185 | <div id="bmi-file-disabled"> |
| 186 | <?php esc_html_e("You cannot backup this, it's disabled in settings.", 'backup-backup') ?> |
| 187 | </div> |
| 188 | <div id="bmi-backup-logs-modal-title"> |
| 189 | <?php esc_html_e("Backup logs", 'backup-backup') ?> |
| 190 | </div> |
| 191 | <div id="bmi-restore-logs-modal-title"> |
| 192 | <?php esc_html_e("Restore logs", 'backup-backup') ?> |
| 193 | </div> |
| 194 | <div id="bmi-error-modal-title"> |
| 195 | <?php esc_html_e("Backup creation failed", 'backup-backup') ?> |
| 196 | </div> |
| 197 | <div id="bmi-restore-error-modal-title"> |
| 198 | <?php esc_html_e("Restore failed", 'backup-backup') ?> |
| 199 | </div> |
| 200 | <div id="bmi-backup-downloaded"> |
| 201 | <?php esc_html_e('Backup downloaded successfully.', 'backup-backup') ?> |
| 202 | </div> |
| 203 | <div id="bmi-save-connect-s3-success"> |
| 204 | <?php esc_html_e('We have successfully connected to your S3 bucket.', 'backup-backup') ?> |
| 205 | </div> |
| 206 | <div id="bmi-download-progress-modal-title"> |
| 207 | <?php esc_html_e('Downloading backup file', 'backup-backup') ?> |
| 208 | </div> |
| 209 | <div id="bmi-download-warning"> |
| 210 | <?php esc_html_e('Backup file needs to be downloaded before the parts can be selected', 'backup-backup') ?> |
| 211 | </div> |
| 212 | <div id="bmi-restore-progress-modal-title"> |
| 213 | <?php esc_html_e('Restoration in progress', 'backup-backup') ?> |
| 214 | </div> |
| 215 | <div id="bmi-restore-progress-modal-warning"> |
| 216 | <?php esc_html_e('Do not close this window as long as the restoration process is ongoing', 'backup-backup'); ?> |
| 217 | </div> |
| 218 | <?php if (false) { ?> |
| 219 | <div id="bmi-share-logs-thank-you"> |
| 220 | <?php esc_html_e("Thank you very much for your support!", 'backup-backup') ?> |
| 221 | </div> |
| 222 | <div id="bmi-staging-prepare"> |
| 223 | <?php esc_html_e('Preparing creation of staging site...', 'backup-backup') ?> |
| 224 | </div> |
| 225 | <?php } ?> |
| 226 | <div id="bmi-before-core-update-backup"> |
| 227 | <?php esc_html_e('Core and database successfully backed up.', 'backup-backup') ?> |
| 228 | </div> |
| 229 | <div id="bmi-before-update-is-enabled"> |
| 230 | <?php echo bmi_get_config('OTHER:TRIGGER:BEFORE:UPDATES') ? 1 : 0; ?> |
| 231 | </div> |
| 232 | <div id="bmi-before-update-backup"> |
| 233 | <?php esc_html_e("Before update backup", 'backup-backup') ?> |
| 234 | </div> |
| 235 | <div id="creating-backup"> |
| 236 | <?php esc_html_e("Creating backup...", 'backup-backup') ?> |
| 237 | </div> |
| 238 | <div id="core-backup-in-progress"> |
| 239 | <?php esc_html_e("Core backup in progress...", 'backup-backup') ?> |
| 240 | </div> |
| 241 | <div id="theme-backup-in-progress"> |
| 242 | <?php esc_html_e("Theme backup in progress...", 'backup-backup') ?> |
| 243 | </div> |
| 244 | <div id="plugins-backup-in-progress"> |
| 245 | <?php esc_html_e("Plugins backup in progress...", 'backup-backup') ?> |
| 246 | </div> |
| 247 | <div id="backup-succeeded-update-will-start"> |
| 248 | <?php esc_html_e("Backup created successfully. Proceeding with update.", 'backup-backup') ?> |
| 249 | </div> |
| 250 | <div id="backup-failed"> |
| 251 | <?php esc_html_e("Backup failed: ", 'backup-backup') ?> |
| 252 | </div> |
| 253 | <div id="backup-failed-update-anyway"> |
| 254 | <?php esc_html_e("Backup failed, update anyway", 'backup-backup') ?> |
| 255 | </div> |
| 256 | <div id="update-anyway"> |
| 257 | <?php esc_html_e("Update anyway", 'backup-backup') ?> |
| 258 | </div> |
| 259 | <div id="error-occurred"> |
| 260 | <?php esc_html_e("An error occurred during the backup process. Please check ", 'backup-backup') ?> |
| 261 | </div> |
| 262 | <div id="bmi-dashboard"> |
| 263 | <?php esc_html_e("Backup Migration dashboard", 'backup-backup') ?> |
| 264 | </div> |
| 265 | <div id="or"> |
| 266 | <?php esc_html_e("or ", 'backup-backup') ?> |
| 267 | </div> |
| 268 | <div id="update-anyway-small"> |
| 269 | <?php esc_html_e("update anyway", 'backup-backup') ?> |
| 270 | </div> |
| 271 | <div id="proceed-without-backup"> |
| 272 | <?php esc_html_e("to proceed without backup", 'backup-backup') ?> |
| 273 | </div> |
| 274 | <div id="updating"> |
| 275 | <?php esc_html_e("Updating...", 'backup-backup') ?> |
| 276 | </div> |
| 277 | <div id="ask-if-update-anyway"> |
| 278 | <?php esc_html_e('Would you like to proceed with the update without a backup? %sUpdate Anyway.%s', 'backup-backup') ?> |
| 279 | </div> |
| 280 | <div id="bmi-save-connect-ftp"> |
| 281 | <?php esc_html_e('Connected to FTP server successfully.', 'backup-backup') ?> |
| 282 | </div> |
| 283 | <div id="bmi-save-connect-sftp"> |
| 284 | <?php esc_html_e('Connected to SFTP server successfully.', 'backup-backup') ?> |
| 285 | </div> |
| 286 | <div id="direct-link-disabled-tooltip"> |
| 287 | <?php esc_html_e('Enable backup accessibility via links in the plugin section "Where should the backup(s) be stored?"', 'backup-backup') ?> |
| 288 | </div> |
| 289 | <div id="direct-link-enabled-tooltip"> |
| 290 | <?php esc_html_e('Copy link to backup file for super-quick migration', 'backup-backup') ?> |
| 291 | </div> |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | <div id="BMI_URL_ROOT"><?php echo esc_url( plugin_dir_url(BMI_ROOT_FILE) ); ?></div> |
| 297 | <div id="BMI_BLOG_URL"><?php echo esc_url( get_site_url() ); ?></div> |
| 298 | <div id="BMI_REV"><?php echo esc_html( BMI_REV ); ?></div> |
| 299 | <div id="BMI_SECRET_KEY"><?php echo esc_html( bmi_get_config('REQUEST:SECRET') ); ?></div> |
| 300 | <div id="BMI_ASSETS"><?php echo esc_url( BMI_ASSETS ); ?></div> |
| 301 | <div><input type="text" id="bmi-support-url-translation" value="<?php echo esc_url( BMI_CHAT_SUPPORT_URL ); ?>" hidden autocomplete="off"></div> |
| 302 | </div> |
| 303 |