XPressME Integration Kit

Trac

Changeset 723


Ignore:
Timestamp:
Apr 29, 2011, 2:20:54 PM (13 years ago)
Author:
toemon
Message:

パッケージの構成で、展開フォルダー直下にxpressme_integration_kitフォルダーがある場合の対応
及び対が言語ファイル

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

Legend:

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

    r704 r723  
    1212                $this->strings['make_config'] = __('Delete source wp-config.php.', 'xpressme'); 
    1313                $this->strings['delete_failed'] = __('Could not delete files.', 'xpressme'); 
     14                $this->strings['package_wrong'] = __('The structure of the package is wrong. ', 'xpressme'); 
    1415        } 
    1516 
     
    4041                if ( is_wp_error($working_dir) ) 
    4142                        return $working_dir; 
    42                 $subdirs = $wp_filesystem->dirlist($working_dir,false); 
    43                 foreach($subdirs as $subdir){ 
    44                         $subdir_name = $subdir['name']; 
     43                $kit_dir = $working_dir .'/xpressme_integration_kit/'; 
     44                if (!file_exists($kit_dir)){    // search sub dir. 
     45                        $kit_dir = ''; 
     46                        $subdirs = $wp_filesystem->dirlist($working_dir,false); 
     47                        foreach($subdirs as $subdir){ 
     48                                if (file_exists($working_dir .'/' .$subdir['name'] .'/xpressme_integration_kit/')){ 
     49                                        $kit_dir = $working_dir .'/' .$subdir['name'] .'/xpressme_integration_kit/'; 
     50                                        continue; 
     51                                } 
     52                        } 
     53                        if (empty($kit_dir)){ 
     54                                $wp_filesystem->delete($working_dir, true); 
     55                                return new WP_Error('package_wrong', $this->strings['package_wrong']); 
     56                        } 
    4557                } 
    46                  
    47                 $kit_dir = $working_dir .'/' .$subdir_name .'/xpressme_integration_kit/'; 
    48                  
    4958                // Copy update-core.php from the new version into place. 
    5059                $update_xpress_file = 'wp-content/plugins/xpressme/include/update_xpress.php'; 
     
    5968        } 
    6069} 
    61  
     70?> 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-ja.po

    r713 r723  
    88"Project-Id-Version: XPressME Plugin\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2011-04-23 10:02+0900\n" 
    11 "PO-Revision-Date: 2011-04-23 10:06+0900\n" 
     10"POT-Creation-Date: 2011-04-29 14:11+0900\n" 
     11"PO-Revision-Date: 2011-04-29 14:12+0900\n" 
    1212"Last-Translator: toemon <info@toemon.com>\n" 
    1313"Language-Team: toemon <info@toemon.com>\n" 
     
    553553msgstr "ファイルが消去できませんでした。" 
    554554 
     555#: include/class-xpress-upgrader.php:14 
     556msgid "The structure of the package is wrong. " 
     557msgstr "パッケージの構成が異なっています。" 
     558 
    555559#: include/custom_functions.php:113 
    556560#, php-format 
     
    839843msgstr "モジュールの更新へ" 
    840844 
    841 #: include/xpress_upgrade.php:205 
    842 msgid "You do not have sufficient permissions to update XPressME Integration Kit for this site." 
    843 msgstr "あなたには、 XPressME Integration Kit の更新権限がありません。" 
    844  
    845 #: include/xpress_upgrade.php:371 
     845#: include/xpress_upgrade.php:369 
    846846#, php-format 
    847847msgid "XPressME Integration Kit Version %1$s is available! <a href=\"%2$s\">Please update now</a>." 
    848848msgstr "XPressME Integration Kit Version %1$s が利用可能です ! <a href=\"%2$s\">アップデートしてください</a>。" 
    849849 
    850 #: include/xpress_upgrade.php:373 
     850#: include/xpress_upgrade.php:371 
    851851#, php-format 
    852852msgid "XPressME Integration Kit Version %1$s is available! Please notify the site administrator." 
    853853msgstr "XPressME Integration Kit Version %1$s が利用可能です ! サイト管理者に連絡してください。" 
     854 
     855#~ msgid "" 
     856#~ "You do not have sufficient permissions to update XPressME Integration Kit " 
     857#~ "for this site." 
     858#~ msgstr "あなたには、 XPressME Integration Kit の更新権限がありません。" 
    854859 
    855860#~ msgid "" 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-ja_EUC.po

    r713 r723  
    99"Report-Msgid-Bugs-To: \n" 
    1010"POT-Creation-Date: 2011-04-22 23:10+0900\n" 
    11 "PO-Revision-Date: 2011-04-23 10:09+0900\n" 
     11"PO-Revision-Date: 2011-04-29 14:15+0900\n" 
    1212"Last-Translator: toemon <info@toemon.com>\n" 
    1313"Language-Team: toemon <info@toemon.com>\n" 
     
    553553msgstr "¥Õ¥¡¥¤¥ë¤¬¾Ãµî¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£" 
    554554 
     555#: include/class-xpress-upgrader.php:14 
     556msgid "The structure of the package is wrong. " 
     557msgstr "¥Ñ¥Ã¥±¡¼¥¸¤Î¹½À®¤¬°Û¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£" 
     558 
    555559#: include/custom_functions.php:113 
    556560#, php-format 
     
    839843msgstr "¥â¥¸¥å¡¼¥ë¤Î¹¹¿·¤Ø" 
    840844 
    841 #: include/xpress_upgrade.php:205 
    842 msgid "You do not have sufficient permissions to update XPressME Integration Kit for this site." 
    843 msgstr "¤¢¤Ê¤¿¤Ë¤Ï¡¢ XPressME Integration Kit ¤Î¹¹¿·¸¢¸Â¤¬¤¢¤ê¤Þ¤»¤ó¡£" 
    844  
    845 #: include/xpress_upgrade.php:371 
     845#: include/xpress_upgrade.php:369 
    846846#, php-format 
    847847msgid "XPressME Integration Kit Version %1$s is available! <a href=\"%2$s\">Please update now</a>." 
    848848msgstr "XPressME Integration Kit Version %1$s ¤¬ÍøÍѲÄǽ¤Ç¤¹ ! <a href=\"%2$s\">¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤</a>¡£" 
    849849 
    850 #: include/xpress_upgrade.php:373 
     850#: include/xpress_upgrade.php:371 
    851851#, php-format 
    852852msgid "XPressME Integration Kit Version %1$s is available! Please notify the site administrator." 
    853853msgstr "XPressME Integration Kit Version %1$s ¤¬ÍøÍѲÄǽ¤Ç¤¹ ! ¥µ¥¤¥È´ÉÍý¼Ô¤ËÏ¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£" 
     854 
     855#~ msgid "" 
     856#~ "You do not have sufficient permissions to update XPressME Integration Kit " 
     857#~ "for this site." 
     858#~ msgstr "¤¢¤Ê¤¿¤Ë¤Ï¡¢ XPressME Integration Kit ¤Î¹¹¿·¸¢¸Â¤¬¤¢¤ê¤Þ¤»¤ó¡£" 
    854859 
    855860#~ msgid "" 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-ja_UTF.po

    r713 r723  
    99"Report-Msgid-Bugs-To: \n" 
    1010"POT-Creation-Date: 2010-08-23 09:55+0900\n" 
    11 "PO-Revision-Date: 2011-04-23 10:09+0900\n" 
     11"PO-Revision-Date: 2011-04-29 14:15+0900\n" 
    1212"Last-Translator: toemon <info@toemon.com>\n" 
    1313"Language-Team: toemon <info@toemon.com>\n" 
     
    553553msgstr "ファイルが消去できませんでした。" 
    554554 
     555#: include/class-xpress-upgrader.php:14 
     556msgid "The structure of the package is wrong. " 
     557msgstr "パッケージの構成が異なっています。" 
     558 
    555559#: include/custom_functions.php:113 
    556560#, php-format 
     
    839843msgstr "モジュールの更新へ" 
    840844 
    841 #: include/xpress_upgrade.php:205 
    842 msgid "You do not have sufficient permissions to update XPressME Integration Kit for this site." 
    843 msgstr "あなたには、 XPressME Integration Kit の更新権限がありません。" 
    844  
    845 #: include/xpress_upgrade.php:371 
     845#: include/xpress_upgrade.php:369 
    846846#, php-format 
    847847msgid "XPressME Integration Kit Version %1$s is available! <a href=\"%2$s\">Please update now</a>." 
    848848msgstr "XPressME Integration Kit Version %1$s が利用可能です ! <a href=\"%2$s\">アップデートしてください</a>。" 
    849849 
    850 #: include/xpress_upgrade.php:373 
     850#: include/xpress_upgrade.php:371 
    851851#, php-format 
    852852msgid "XPressME Integration Kit Version %1$s is available! Please notify the site administrator." 
    853853msgstr "XPressME Integration Kit Version %1$s が利用可能です ! サイト管理者に連絡してください。" 
     854 
     855#~ msgid "" 
     856#~ "You do not have sufficient permissions to update XPressME Integration Kit " 
     857#~ "for this site." 
     858#~ msgstr "あなたには、 XPressME Integration Kit の更新権限がありません。" 
    854859 
    855860#~ msgid "" 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-lang.pot

    r713 r723  
    88"Project-Id-Version: XPressME Plugin\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2011-04-23 10:02+0900\n" 
     10"POT-Creation-Date: 2011-04-29 14:11+0900\n" 
    1111"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    547547msgstr "" 
    548548 
     549#: include/class-xpress-upgrader.php:14 
     550msgid "The structure of the package is wrong. " 
     551msgstr "" 
     552 
    549553#: include/custom_functions.php:113 
    550554#, php-format 
     
    833837msgstr "" 
    834838 
    835 #: include/xpress_upgrade.php:205 
    836 msgid "You do not have sufficient permissions to update XPressME Integration Kit for this site." 
     839#: include/xpress_upgrade.php:369 
     840#, php-format 
     841msgid "XPressME Integration Kit Version %1$s is available! <a href=\"%2$s\">Please update now</a>." 
    837842msgstr "" 
    838843 
    839844#: include/xpress_upgrade.php:371 
    840845#, php-format 
    841 msgid "XPressME Integration Kit Version %1$s is available! <a href=\"%2$s\">Please update now</a>." 
    842 msgstr "" 
    843  
    844 #: include/xpress_upgrade.php:373 
    845 #, php-format 
    846846msgid "XPressME Integration Kit Version %1$s is available! Please notify the site administrator." 
    847847msgstr "" 
     848 
     849#~ msgid "" 
     850#~ "You do not have sufficient permissions to update XPressME Integration Kit " 
     851#~ "for this site." 
     852#~ msgstr "" 
    848853 
    849854#~ msgid "" 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-pt_BR.po

    r713 r723  
    77"Project-Id-Version: XPressME Plugin\n" 
    88"Report-Msgid-Bugs-To: \n" 
    9 "POT-Creation-Date: 2011-04-23 10:02+0900\n" 
    10 "PO-Revision-Date: 2011-04-23 10:14+0900\n" 
     9"POT-Creation-Date: 2011-04-29 14:11+0900\n" 
     10"PO-Revision-Date: 2011-04-29 14:15+0900\n" 
    1111"Last-Translator: toemon <info@toemon.com>\n" 
    1212"Language-Team: Marcelo Yuji Himoro <yuji@yuji.ws>\n" 
     
    552552msgstr "Não pôde apagar arquivos." 
    553553 
     554#: include/class-xpress-upgrader.php:14 
     555msgid "The structure of the package is wrong. " 
     556msgstr "A estrutura do pacote está errada. " 
     557 
    554558#: include/custom_functions.php:113 
    555559#, php-format 
     
    838842msgstr "Vá para Atualização de Módulo" 
    839843 
    840 #: include/xpress_upgrade.php:205 
    841 msgid "You do not have sufficient permissions to update XPressME Integration Kit for this site." 
    842 msgstr "O senhor não tem permissões suficientes para atualizar XPressME Integration Kit ara este local." 
    843  
    844 #: include/xpress_upgrade.php:371 
     844#: include/xpress_upgrade.php:369 
    845845#, php-format 
    846846msgid "XPressME Integration Kit Version %1$s is available! <a href=\"%2$s\">Please update now</a>." 
    847847msgstr "O XPressME Integration Kit %1$s está disponível! <a href=\"%2$s\">Por favor, atualize agora</a>." 
    848848 
    849 #: include/xpress_upgrade.php:373 
     849#: include/xpress_upgrade.php:371 
    850850#, php-format 
    851851msgid "XPressME Integration Kit Version %1$s is available! Please notify the site administrator." 
    852852msgstr "O XPressME Integration Kit Versão %1$s está disponível! Por favor, avise o administrador do site." 
     853 
     854#~ msgid "" 
     855#~ "You do not have sufficient permissions to update XPressME Integration Kit " 
     856#~ "for this site." 
     857#~ msgstr "" 
     858#~ "O senhor não tem permissões suficientes para atualizar XPressME " 
     859#~ "Integration Kit ara este local." 
    853860 
    854861#~ msgid "" 
Note: See TracChangeset for help on using the changeset viewer.