Changeset 3258

Show
Ignore:
Timestamp:
12/02/05 17:35:36 (3 years ago)
Author:
ryan
Message:

i18n updates from nbachiyski. #2006

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-content/plugins/wp-db-backup.php

    r3248 r3258  
    114114        echo '<h2>' . __('Backup') . '</h2> 
    115115            <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> 
    117124            <p><strong>' . __('Progress:') . '</strong></p> 
    118125            <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;">&nbsp;</div></div> 
     
    222229         
    223230        if($table == '') { 
    224             $msg = __("Creating backup file..."); 
     231            $msg = __('Creating backup file...'); 
    225232        } else { 
    226233            if($segment == -1) { 
     
    608615        if ('http' == $delivery) { 
    609616            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 />"); 
    611618                $this_basename = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', __FILE__); 
    612619                $msg .= '<br /><a href="' . get_settings('siteurl') . "/wp-admin/edit.php?page={$this_basename}" . '">' . __('Return to Backup'); 
     
    688695            case 'none': 
    689696                $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)); 
    691698            } 
    692699            $feedback .= '</p></div>'; 
     
    694701         
    695702        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>"; 
    697704            foreach($this->backup_errors as $error) { 
    698705                $feedback .= "{$error}\n";  //Errors are already localized 
     
    757764        echo '<form method="post">'; 
    758765        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>'; 
    760767        foreach ($wp_backup_default_tables as $table) { 
    761768            echo "<li><input type='hidden' name='core_tables[]' value='$table' />$table</li>"; 
     
    763770        echo '</ul></td><td width="50%" align="left" valign="top">'; 
    764771        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 />'; 
    766773            foreach ($other_tables as $table) { 
    767774                echo "<label style=\"display:block;\"><input type='checkbox' name='other_tables[]' value='{$table}' /> {$table}</label>"; 
     
    770777        echo '</tr></table></fieldset>'; 
    771778        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 />"; 
    773780        echo '<label style="display:block;"><input type="radio" name="deliver" value="none" /> ' . __('Save to server') . " ({$this->backup_dir})</label>"; 
    774781        echo '<label style="display:block;"><input type="radio" checked="checked" name="deliver" value="http" /> ' . __('Download to your computer') . '</label>'; 
    775782        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') . '" />'); 
    777784         
    778785        // Check DB dize. 
     
    823830                $cron_recipient = get_settings('admin_email'); 
    824831            } 
    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 . '" />'; 
    826833            echo '</td></tr>'; 
    827834            $cron_tables = get_option('wp_cron_backup_tables'); 
     
    830837            } 
    831838            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 />'; 
    833840                foreach ($other_tables as $table) { 
    834841                    echo '<input type="checkbox" ';