XPressME Integration Kit

Trac


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

Fix ftp connection Err.
edit language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.