XPressME Integration Kit

Trac

Changeset 704


Ignore:
Timestamp:
Apr 20, 2011, 6:09:12 PM (14 years ago)
Author:
toemon
Message:

Fix ftp connection Err.
edit language

Location:
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/class-xpress-upgrader.php

    r701 r704  
    55 
    66        function upgrade_strings() { 
    7                 $this->strings['up_to_date'] = __('XPressME Integration Kit is at the latest version.'); 
    8                 $this->strings['no_package'] = __('Upgrade package not available.'); 
    9                 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>&#8230;'); 
    10                 $this->strings['unpack_package'] = __('Unpacking the update&#8230;'); 
    11                 $this->strings['copy_failed'] = __('Could not copy files.'); 
    12                 $this->strings['make_config'] = __('Delete source wp-config.php.'); 
    13                 $this->strings['delete_failed'] = __('Could not delete files.'); 
     7                $this->strings['up_to_date'] = __('XPressME Integration Kit is at the latest version.', 'xpressme'); 
     8                $this->strings['no_package'] = __('Upgrade package not available.', 'xpressme'); 
     9                $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>&#8230;', 'xpressme'); 
     10                $this->strings['unpack_package'] = __('Unpacking the update&#8230;', 'xpressme'); 
     11                $this->strings['copy_failed'] = __('Could not copy files.', 'xpressme'); 
     12                $this->strings['make_config'] = __('Delete source wp-config.php.', 'xpressme'); 
     13                $this->strings['delete_failed'] = __('Could not delete files.', 'xpressme'); 
    1414        } 
    1515 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/update_xpress.php

    r698 r704  
    3030function update_xpress($from, $to) { 
    3131        global $wp_filesystem, $_old_xpress_files, $wpdb; 
    32         show_message( __('Disable overwrite of wp-config.php...') ); 
     32        show_message( __('Disable overwrite of wp-config.php...', 'xpressme') ); 
    3333        // remove wp-config.php from the new version into place. 
    3434        $wp_config = $from . 'wp-config.php'; 
     
    3838 
    3939        // Copy new versions of XPressME Integration Kit files into place. 
    40         show_message( __('Copy new versions of XPressME Integration Kit files into place...') ); 
     40        show_message( __('Copy new versions of XPressME Integration Kit files into place...', 'xpressme') ); 
    4141        $result = copy_dir($from . $distro, $to); 
    4242        if ( is_wp_error($result) ) { 
     
    4747 
    4848        // Remove old files 
    49         show_message( __('Remove an unnecessary, old file...') ); 
     49        show_message( __('Remove an unnecessary, old file...', 'xpressme') ); 
    5050        foreach ( $_old_xpress_files as $old_file ) { 
    5151                $old_file = $to . $old_file; 
     
    5454                $wp_filesystem->delete($old_file, true); 
    5555        } 
    56         show_message( __('Set templates directory chmod 777') ); 
     56        show_message( __('Set templates directory chmod 777', 'xpressme') ); 
    5757        $wp_filesystem->chmod($to . 'templates/', 0777); 
    5858 
    5959        // Remove working directory 
    6060        $working_dir = dirname(dirname($from)); 
    61         show_message( sprintf(__('Remove working directory(%s)...'),$working_dir) ); 
     61        show_message( sprintf(__('Remove working directory(%s)...', 'xpressme'),$working_dir) ); 
    6262        $wp_filesystem->delete($working_dir, true); 
    6363 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_upgrade.php

    r702 r704  
    3232                } else if (version_compare($xpress_version, $latest_version, '<')) { 
    3333                        echo '<h3 class="response">'; 
    34                         _e( 'An updated version of XPressME Integration Kit is available.' ); 
     34                        _e( 'An updated version of XPressME Integration Kit is available.', 'xpressme' ); 
    3535                        echo '</h3>'; 
    3636 
     
    4040                                $download_diff .='</a>'; 
    4141                        } 
    42                         $message =      sprintf(__('You can update to XPressME Integration Kit Ver %s</a> automatically or download the package and install it manually:'), $latest_version); 
    43                         $submit = __('Update Automatically'); 
     42                        $message =      sprintf(__('You can update to XPressME Integration Kit Ver %s</a> automatically or download the package and install it manually:', 'xpressme'), $latest_version); 
     43                        $submit = __('Update Automatically', 'xpressme'); 
    4444                        $form_action = 'admin.php?page=upgrade_page&action=do-xpress-upgrade'; 
    4545                        $download = sprintf(__('Download %s', 'xpressme') , $latest_version); 
     
    4848                } else { 
    4949                        echo '<h3>'; 
    50                         printf(__('You have the latest version of XPressME Integration Kit Ver.%s.'),$xpress_version); 
     50                        printf(__('You have the latest version of XPressME Integration Kit Ver.%s.', 'xpressme'),$xpress_version); 
    5151                        echo '</h3>'; 
    5252 
    5353                        $message = __('You have the latest version of XPressME Integration Kit. You do not need to upgrade', 'xpressme'); 
    54                         $submit = __('Re-install Automatically'); 
     54                        $submit = __('Re-install Automatically', 'xpressme'); 
    5555                        $form_action = 'update-core.php?action=do-core-reinstall'; 
    5656 
     
    7070                        $develop_show = true; 
    7171                        $develop_package=$latest['develop_package']; 
    72                         $develop_submit = __('Update Automatically'); 
     72                        $develop_submit = __('Update Automatically', 'xpressme'); 
    7373                        $develop_download = sprintf(__('Download %s', 'xpressme') , $develop_latest_version); 
    7474                        $develop_download_diff = ''; 
     
    127127 
    128128function do_xpress_upgrade( $develop = false,$reinstall = false ) { 
    129         global $wp_filesystem; 
     129        global $wp_filesystem,$xoops_config; 
    130130 
    131131        if ( $reinstall ) 
    132                 $url = 'update-xpress.php?action=do-xpress-reinstall'; 
    133         else 
    134                 $url = 'update-xpress.php?action=do-xpress-upgrade'; 
    135         $url = wp_nonce_url($url, 'upgrade-xpress'); 
     132                $url = 'admin.php?page=upgrade_page&action=do-xpress-reinstall'; 
     133        else { 
     134                if(!$develop) 
     135                        $url = 'admin.php?page=upgrade_page&action=do-xpress-upgrade'; 
     136                else 
     137                        $url = 'admin.php?page=upgrade_page&action=do-xpress-develop_upgrade'; 
     138                $url = wp_nonce_url($url, 'upgrade-xpress'); 
     139        } 
    136140        if ( false === ($credentials = request_filesystem_credentials($url, '', false, ABSPATH)) ) 
    137141                return; 
     
    153157        <div class="wrap"> 
    154158        <?php screen_icon(); ?> 
    155         <h2><?php _e('Update XPressME Integration Kit'); ?></h2> 
     159        <h2><?php _e('Update XPressME Integration Kit', 'xpressme'); ?></h2> 
    156160<?php 
    157161        if ( $wp_filesystem->errors->get_error_code() ) { 
     
    170174                show_message($result); 
    171175                if ('up_to_date' != $result->get_error_code() ) 
    172                         show_message( __('Installation Failed') ); 
     176                        show_message( __('Installation Failed', 'xpressme') ); 
    173177        } else { 
    174                 show_message( __('XPressME Integration Kit updated successfully') ); 
    175                 $update_url = 'http://localhost/cube/modules/xp_test/admin/update.php'; 
     178                show_message( __('XPressME Integration Kit files updated successfully', 'xpressme') ); 
     179                show_message( __('Please update the module. ', 'xpressme') ); 
     180                 
     181                $update_url = $xoops_config->->module_url .'/admin/update.php'; 
    176182                show_message( '<strong>' . __('Actions:') . '</strong> <a href="' . esc_url( $update_url ) . '">' . __('Go to Module Update') . '</a>' ); 
    177183        } 
     
    185191{ 
    186192        if ( ! current_user_can('update_plugins') ) 
    187         wp_die(__('You do not have sufficient permissions to update XPressME Integration Kit for this site.')); 
     193        wp_die(__('You do not have sufficient permissions to update XPressME Integration Kit for this site.', 'xpressme')); 
    188194        $action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-xpress'; 
    189195        $upgrade_error = false; 
Note: See TracChangeset for help on using the changeset viewer.