WordPress.org

Make WordPress Core

Changeset 14173


Ignore:
Timestamp:
04/21/10 10:58:06 (4 years ago)
Author:
nbachiyski
Message:

Upgrader i18n fixes: add translator messages, take tags out of a message and use the correct error text when including both the title and the error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r14123 r14173  
    4949        $this->strings['fs_no_plugins_dir'] = __('Unable to locate WordPress Plugin directory.'); 
    5050        $this->strings['fs_no_themes_dir'] = __('Unable to locate WordPress Theme directory.'); 
     51        /* translators: %s: directory name */ 
    5152        $this->strings['fs_no_folder'] = __('Unable to locate needed folder (%s).'); 
    5253 
     
    10561057        $this->upgrader->strings['skin_update_failed_error'] = __('An error occured while updating %1$s: <strong>%2$s</strong>.'); 
    10571058        $this->upgrader->strings['skin_update_failed'] = __('The update of %1$s failed.'); 
    1058         $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully. <a onclick="%2$s" href="#" class="hide-if-no-js"><span>Show Details</span><span class="hidden">Hide Details</span>.</a>'); 
     1059        $this->upgrader->strings['skin_update_successful'] = __('%1$s updated successfully.').' <a onclick="%2$s" href="#" class="hide-if-no-js"><span>'.__('Show Details').'</span><span class="hidden">'.__('Hide Details').'</span>.</a>'; 
    10591060    } 
    10601061 
     
    11101111        if ( $this->error || ! $this->result ) { 
    11111112            if ( $this->error ) 
    1112                 echo '<div class="error"><p>' . sprintf($this->upgrader->strings['skin_update_failed'], $title, $this->error) . '</p></div>'; 
     1113                echo '<div class="error"><p>' . sprintf($this->upgrader->strings['skin_update_failed_error'], $title, $this->error) . '</p></div>'; 
    11131114            else 
    11141115                echo '<div class="error"><p>' . sprintf($this->upgrader->strings['skin_update_failed'], $title) . '</p></div>'; 
Note: See TracChangeset for help on using the changeset viewer.