Changeset 3258 for trunk/wp-content/plugins/wp-db-backup.php
- Timestamp:
- 12/02/2005 05:35:36 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-content/plugins/wp-db-backup.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/wp-db-backup.php
r3248 r3258 114 114 echo '<h2>' . __('Backup') . '</h2> 115 115 <fieldset class="options"><legend>' . __('Progress') . '</legend> 116 ' . __('<p><strong>DO NOT DO THE FOLLOWING AS IT WILL CAUSE YOUR BACKUP TO FAIL:</strong></p> <ol><li>Close this browser</li><li>Reload this page</li><li>Click the Stop or Back buttons in your browser</li></ol>') . ' 116 <p><strong>' . 117 __('DO NOT DO THE FOLLOWING AS IT WILL CAUSE YOUR BACKUP TO FAIL:'). 118 '</strong></p> 119 <ol> 120 <li>'.__('Close this browser').'</li> 121 <li>'.__('Reload this page').'</li> 122 <li>'.__('Click the Stop or Back buttons in your browser').'</li> 123 </ol> 117 124 <p><strong>' . __('Progress:') . '</strong></p> 118 125 <div id="meterbox" style="height:11px;width:80%;padding:3px;border:1px solid #659fff;"><div id="meter" style="height:11px;background-color:#659fff;width:0%;text-align:center;font-size:6pt;"> </div></div> … … 222 229 223 230 if($table == '') { 224 $msg = __( "Creating backup file...");231 $msg = __('Creating backup file...'); 225 232 } else { 226 233 if($segment == -1) { … … 608 615 if ('http' == $delivery) { 609 616 if (! file_exists($diskfile)) { 610 $msg = sprintf(__('File not found: <br /><strong>%1s</strong><br />'), $filename);617 $msg = sprintf(__('File not found:%s'), "<br /><strong>$filename</strong><br />"); 611 618 $this_basename = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', __FILE__); 612 619 $msg .= '<br /><a href="' . get_settings('siteurl') . "/wp-admin/edit.php?page={$this_basename}" . '">' . __('Return to Backup'); … … 688 695 case 'none': 689 696 $feedback .= '<br />' . __('Your backup file has been saved on the server. If you would like to download it now, right click and select "Save As"'); 690 $feedback .= ':<br /> <a href="' . get_settings('siteurl') . "/{$this->backup_dir}$file\">$file</a> : " . filesize(ABSPATH . $this->backup_dir . $file) . __(' bytes');697 $feedback .= ':<br /> <a href="' . get_settings('siteurl') . "/{$this->backup_dir}$file\">$file</a> : " . sprintf(__('%s bytes'), filesize(ABSPATH . $this->backup_dir . $file)); 691 698 } 692 699 $feedback .= '</p></div>'; … … 694 701 695 702 if (count($this->backup_errors)) { 696 $feedback .= '<div class="updated error">' . __('The following errors were reported ') . ":<pre>";703 $feedback .= '<div class="updated error">' . __('The following errors were reported:') . "<pre>"; 697 704 foreach($this->backup_errors as $error) { 698 705 $feedback .= "{$error}\n"; //Errors are already localized … … 757 764 echo '<form method="post">'; 758 765 echo '<table align="center" cellspacing="5" cellpadding="5"><tr><td width="50%" align="left" class="alternate" valign="top">'; 759 echo __('These core WordPress tables will always be backed up ') . ':<br /><ul>';766 echo __('These core WordPress tables will always be backed up:') . '<br /><ul>'; 760 767 foreach ($wp_backup_default_tables as $table) { 761 768 echo "<li><input type='hidden' name='core_tables[]' value='$table' />$table</li>"; … … 763 770 echo '</ul></td><td width="50%" align="left" valign="top">'; 764 771 if (count($other_tables) > 0) { 765 echo __('You may choose to include any of the following tables ') . ':<br />';772 echo __('You may choose to include any of the following tables:') . ' <br />'; 766 773 foreach ($other_tables as $table) { 767 774 echo "<label style=\"display:block;\"><input type='checkbox' name='other_tables[]' value='{$table}' /> {$table}</label>"; … … 770 777 echo '</tr></table></fieldset>'; 771 778 echo '<fieldset class="options"><legend>' . __('Backup Options') . '</legend>'; 772 echo __('What to do with the backup file ') . ":<br />";779 echo __('What to do with the backup file:') . "<br />"; 773 780 echo '<label style="display:block;"><input type="radio" name="deliver" value="none" /> ' . __('Save to server') . " ({$this->backup_dir})</label>"; 774 781 echo '<label style="display:block;"><input type="radio" checked="checked" name="deliver" value="http" /> ' . __('Download to your computer') . '</label>'; 775 782 echo '<div><input type="radio" name="deliver" id="do_email" value="smtp" /> '; 776 echo sprintf(__('<label for="do_email">Email backup to:</label> %s'), '<input type="text" name="backup_recipient" size="20" value="' . get_settings('admin_email') . '" />');783 echo '<label for="do_email">'.__('Email backup to:').'</label><input type="text" name="backup_recipient" size="20" value="' . get_settings('admin_email') . '" />'); 777 784 778 785 // Check DB dize. … … 823 830 $cron_recipient = get_settings('admin_email'); 824 831 } 825 echo __('Email backup to ') . ':<input type="text" name="cron_backup_recipient" size="20" value="' . $cron_recipient . '" />';832 echo __('Email backup to:') . ' <input type="text" name="cron_backup_recipient" size="20" value="' . $cron_recipient . '" />'; 826 833 echo '</td></tr>'; 827 834 $cron_tables = get_option('wp_cron_backup_tables'); … … 830 837 } 831 838 if (count($other_tables) > 0) { 832 echo '<tr><td colspan="2" align="left">' . __('Tables to include ') . ':<br />';839 echo '<tr><td colspan="2" align="left">' . __('Tables to include:') . '<br />'; 833 840 foreach ($other_tables as $table) { 834 841 echo '<input type="checkbox" ';
Note: See TracChangeset
for help on using the changeset viewer.