XPressME Integration Kit

Trac

Changeset 549


Ignore:
Timestamp:
Mar 16, 2010, 3:55:32 PM (14 years ago)
Author:
toemon
Message:

Site URL,Home URLの修正後のパーマリンク修正メッセージ追加 Fixes #313

Location:
trunk/xpressme_integration_kit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/include/add_xpress_process.php

    r548 r549  
    1919                                update_option('home' , $_POST['home_url_set']); 
    2020                        } 
     21                } 
     22                if (!empty($_POST['submit_redirect'])) { 
     23                        $url = get_option('home') . '/wp-admin/options-permalink.php'; 
     24//                      echo $url; 
     25                        wp_redirect($url); 
     26                        exit(); 
    2127                } 
    2228 
     
    5258                        $form .= '<tbody>'; 
    5359                        if ($site_url_error){ 
    54                                 $site_url_error_log = sprintf('Can not access WordPress Site URL(%s)',$siteurl); 
     60                                $site_url_error_log = __('Can not access WordPress address (URL).','xpressme'); 
    5561                                $form .= '<tr><td colspan="3"><font color="red"><b>' . $site_url_error_log . '</b></font></td></tr>'; 
    5662                                $form .= '<tr>'; 
    5763                                $form .= '<td width="16">&nbsp;</td>'; 
    58                                 $form .= '<td width="64">Site URL</td>'; 
    59                                 $form .= '<td><input name="site_url_set" type="text" size="64" maxlength="200" value="'  . $guess_url . '" /></td>'; 
     64                                $form .= '<td width="64">'.__('WordPress address (URL)').'</td>'; 
     65                                $form .= '<td>'; 
     66                                $form .= $siteurl . '<br />'; 
     67                                $form .= '&emsp;to<br />'; 
     68                                $form .= '<input name="site_url_set" type="text" size="64" maxlength="200" value="'  . $guess_url . '" /></td>'; 
    6069                                $form .= '</tr>'; 
    6170 
     
    6372                        if ($home_url_error){ 
    6473                                if ($site_url_error) $form .= '<tr><td colspan="3">&nbsp;</td></tr>';; 
    65                                 $home_url_error_log = sprintf('WordPress Home URL(%s) is different from access URL. ',$home); 
     74                                $home_url_error_log = __('WordPress Blog address (URL) is different from access URL.','xpressme'); 
    6675                                $form .= '<tr><td colspan="3"><font color="red"><b>' . $home_url_error_log . '</b></font></td></tr>'; 
    6776                                $form .= '<tr>'; 
    6877                                $form .= '<td width="16">&nbsp;</td>'; 
    69                                 $form .= '<td width="64">Home URL</td>'; 
    70                                 $form .= '<td><input name="home_url_set" type="text" size="64" maxlength="200" value="'  . $guess_url . '" /></td>'; 
     78                                $form .= '<td width="144">'. __('Blog address (URL)') .'</td>'; 
     79                                $form .= '<td>'; 
     80                                $form .= $home . '<br />'; 
     81                                $form .= '&emsp;to<br />'; 
     82                                $form .= '<input name="home_url_set" type="text" size="64" maxlength="200" value="'  . $guess_url . '" /></td>'; 
    7183                                $form .= '</tr>'; 
    7284                        } 
    7385                        $form .= '</tbody>'; 
    7486                        $form .= '</table><br />'; 
    75                         $form .= '<input type="submit" value= "Setting" name="submit_url_change" />' ."\n"; 
     87                        $form .= '<input type="submit" value= "'.__('Save Changes').'" name="submit_url_change" />' ."\n"; 
     88                        $form .= '</form>' ."\n"; 
    7689                        echo $form; 
    7790                        include $xoops_config->xoops_root_path . '/footer.php'; 
    7891                        exit(); 
    7992                } 
     93                if (!empty($_POST['home_url_set'])) { 
     94                        $url = get_option('home') . '/wp-admin/options-permalink.php'; 
     95                        $form = '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n"; 
     96                        $form .= '<p><font color="blue"><b>'. __('After Blog address (URL) is set, it is necessary to set the permalink again.','xpressme').'</b></font></p>'; 
     97                        $form .= '<input type="submit" value= "'.__('Permalink Settings').'" name="submit_redirect" />' ."\n"; 
     98                        $form .= '</form>' ."\n"; 
     99                        include $xoops_config->xoops_root_path ."/header.php"; 
     100                        echo $form; 
     101                        include $xoops_config->xoops_root_path . '/footer.php'; 
     102                        exit(); 
     103                } 
     104 
    80105        } 
    81106} 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php

    r543 r549  
    55        $xoops_config = new ConfigFromXoops; 
    66} 
     7 
     8$dummy = __('After Blog address (URL) is set, it is necessary to set the permalink again.','xpressme'); 
     9$dummy = __('Can not access WordPress address (URL).','xpressme'); 
     10$dummy = __('WordPress Blog address (URL) is different from access URL.','xpressme'); 
     11 
    712 
    813function get_xoops_config($config_name,$module_dir){ 
Note: See TracChangeset for help on using the changeset viewer.