- Timestamp:
- Feb 4, 2009, 5:58:57 PM (16 years ago)
- Location:
- trunk/wp-content/plugins/xpressme
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
r81 r88 3 3 "Project-Id-Version: XPressME Plugin\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2009-0 1-31 22:42+0900\n"5 "PO-Revision-Date: 2009-02-04 16:00+0900\n" 6 6 "Last-Translator: toemon <toychee@toemon.com>\n" 7 7 "Language-Team: \n" … … 20 20 21 21 #: xpressme_class.php:47 22 #: xpressme_class.php:1 3922 #: xpressme_class.php:141 23 23 msgid "to Old Post" 24 24 msgstr "前の投稿へ" 25 25 26 26 #: xpressme_class.php:48 27 #: xpressme_class.php:14 127 #: xpressme_class.php:143 28 28 msgid "to Newer Post" 29 29 msgstr "次の投稿へ" 30 30 31 #: xpressme_class.php:167 32 #: xpressme_class.php:280 33 #: xpressme_class.php:285 34 #: xpressme_class.php:306 31 #: xpressme_class.php:170 32 #: xpressme_class.php:283 33 #: xpressme_class.php:288 34 #: xpressme_class.php:309 35 #: xpressme_class.php:314 35 36 msgid "YES" 36 37 msgstr "はい" 37 38 38 #: xpressme_class.php:168 39 #: xpressme_class.php:281 40 #: xpressme_class.php:286 41 #: xpressme_class.php:307 39 #: xpressme_class.php:171 40 #: xpressme_class.php:284 41 #: xpressme_class.php:289 42 #: xpressme_class.php:310 43 #: xpressme_class.php:315 42 44 msgid "NO" 43 45 msgstr "いいえ" 44 46 45 #: xpressme_class.php:2 0847 #: xpressme_class.php:211 46 48 msgid "Role Setting at Login" 47 49 msgstr "ログイン時の権限設定" 48 50 49 #: xpressme_class.php:21 151 #: xpressme_class.php:214 50 52 msgid "XOOPS Groupe" 51 53 msgstr "XOOPSグループ名" 52 54 53 #: xpressme_class.php:21 155 #: xpressme_class.php:214 54 56 msgid "WordPress Role" 55 57 msgstr "WordPressでの権限" 56 58 57 #: xpressme_class.php:21 159 #: xpressme_class.php:214 58 60 msgid "Role is set at each login" 59 61 msgstr "ログイン時、常に権限を更新する" 60 62 61 #: xpressme_class.php:232 62 #: xpressme_class.php:236 63 #: xpressme_class.php:235 63 64 #: xpressme_class.php:239 65 #: xpressme_class.php:242 64 66 msgid "Default Role of WordPress" 65 67 msgstr "WordPressのデフォルト権限" 66 68 67 #: xpressme_class.php:233 68 #: xpressme_class.php:237 69 #: xpressme_class.php:236 69 70 #: xpressme_class.php:240 71 #: xpressme_class.php:243 70 72 msgid "Group User Doesn't Register" 71 73 msgstr "ユーザ登録しない" 72 74 73 #: xpressme_class.php:27 075 #: xpressme_class.php:273 74 76 msgid "XPressME Configuration Page" 75 77 msgstr "XPressMEの設定ページ" 76 78 77 #: xpressme_class.php:27 479 #: xpressme_class.php:277 78 80 msgid "Media Upload Base Path" 79 81 msgstr "メディアアップロードのベースパス設定" 80 82 81 #: xpressme_class.php:27 583 #: xpressme_class.php:278 82 84 msgid "Use XOOPS UPLOAD PATH" 83 85 msgstr "XOOPSのアップロードパスを使用する。" 84 86 85 #: xpressme_class.php:27 687 #: xpressme_class.php:279 86 88 msgid "USE WordPress BASE_PATH" 87 89 msgstr "WordPressのベースパスを使用する。" 88 90 89 #: xpressme_class.php:2 7991 #: xpressme_class.php:282 90 92 msgid "Thema Sidebar Display" 91 93 msgstr "テーマ表示時にサイドバー表示する。" 92 94 93 #: xpressme_class.php:28 495 #: xpressme_class.php:287 94 96 msgid "The change tracking of the post is preserved" 95 97 msgstr "投稿の変更履歴を有効にする。" 96 98 97 #: xpressme_class.php:2 8999 #: xpressme_class.php:292 98 100 msgid "Display Navi Title of Old Post Link" 99 101 msgstr "古い記事へのナビタイトルを設定" 100 102 101 #: xpressme_class.php:29 2103 #: xpressme_class.php:295 102 104 msgid "Display Navi Title of Newer Post Link" 103 105 msgstr "新しい記事へのナビタイトルを設定" 104 106 105 #: xpressme_class.php:29 5107 #: xpressme_class.php:298 106 108 msgid "Select Display name of PostNavi Link" 107 109 msgstr "投稿記事リンクナビのタイトル設定" 108 110 109 #: xpressme_class.php:29 6111 #: xpressme_class.php:299 110 112 msgid "Title of post" 111 113 msgstr "投稿記事のタイトルを表示" 112 114 113 #: xpressme_class.php: 297115 #: xpressme_class.php:300 114 116 msgid "Title of Navi" 115 117 msgstr "ナビタイトルを表示" 116 118 117 #: xpressme_class.php:30 0119 #: xpressme_class.php:303 118 120 msgid "Adjustment of Navi link display position" 119 121 msgstr "投稿記事ナビリンクの表示位置設定" 120 122 121 #: xpressme_class.php:30 1123 #: xpressme_class.php:304 122 124 msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 123 125 msgstr "古い記事へのリンクを左に、より新しい記事へのリンクを右に表示" 124 126 125 #: xpressme_class.php:30 2127 #: xpressme_class.php:305 126 128 msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 127 129 msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 128 130 129 #: xpressme_class.php:30 5131 #: xpressme_class.php:308 130 132 msgid "Is the posts author views counted?" 131 133 msgstr "投稿者の閲覧をカウントしますか?" 132 134 133 #: xpressme_class.php:314 135 #: xpressme_class.php:313 136 msgid "Is SQL debugging window displayed?" 137 msgstr "SQLデバッグウィンドを表示しますか?" 138 139 #: xpressme_class.php:323 134 140 msgid "Update Config" 135 141 msgstr "更新" 136 142 137 #: xpressme_class.php:3 15143 #: xpressme_class.php:324 138 144 msgid "Preset Config" 139 145 msgstr "プリセット" -
trunk/wp-content/plugins/xpressme/xpressme.php
r83 r88 50 50 add_action('user_register', 'user_sync_to_xoops'); 51 51 //require_once('../include/custom_functions.php'); 52 53 // SQL debug windows 54 add_filter('query', array(&$XPressME, 'xpress_sql_debug')); 55 add_action('admin_footer', array(&$XPressME, 'displayDebugLog')); 56 add_action('get_footer', array(&$XPressME, 'displayDebugLog')); 57 52 58 ?> -
trunk/wp-content/plugins/xpressme/xpressme_class.php
r81 r88 13 13 var $newer_post_link_text; 14 14 var $is_author_view_count; 15 var $ groupe_role_serial;15 var $is_sql_debug; 16 16 var $groupe_role; 17 17 … … 48 48 $this->newer_post_link_text = __('to Newer Post', 'xpressme'); 49 49 $this->is_author_view_count = false; 50 $this->is_sql_debug = false; 50 51 } 51 52 … … 77 78 'old_post_link_text' => $this->old_post_link_text , 78 79 'newer_post_link_text' => $this->newer_post_link_text, 79 'is_author_view_count' => $this->is_author_view_count 80 'is_author_view_count' => $this->is_author_view_count, 81 'is_sql_debug' => $this->is_sql_debug 80 82 ); 81 83 if ($mode == 'add_new') { … … 141 143 if(empty($this->newer_post_link_text)) $this->newer_post_link_text = __('to Newer Post', 'xpressme'); 142 144 $this->is_author_view_count = stripslashes(trim($_POST['ch_is_author_view_count'])); 145 $this->is_sql_debug = stripslashes(trim($_POST['ch_is_sql_debug'])); 143 146 144 147 global $xoops_db; … … 307 310 __('NO','xpressme') 308 311 ); 312 echo $this->yes_no_radio_option('is_sql_debug', 313 __('Is SQL debugging window displayed?','xpressme'), 314 __('YES','xpressme'), 315 __('NO','xpressme') 316 ); 317 309 318 echo $this->groupe_role_option(); 310 319 // $this->is_use_xoops_upload_path_html(); … … 339 348 } 340 349 return $uploads; 350 } 351 352 // SQL DEBUG TEST 353 function is_sql_debug_permission() 354 { 355 global $current_user; 356 357 if ($this->is_sql_debug && ($current_user->user_level >= 10)) 358 return true; 359 else 360 return false; 361 } 362 363 function xpress_sql_debug($query_strings) 364 { 365 if ($this->is_sql_debug_permission()){ 366 if (empty($GLOBALS['XPress_SQL_Query'])) $GLOBALS['XPress_SQL_Query'] = ''; 367 $GLOBALS['XPress_SQL_Query'] .= $query_strings . '<br />'; 368 } 369 return $query_strings; 370 } 371 372 function displayDebugLog() 373 { 374 if ($this->is_sql_debug_permission()){ 375 $content = ''; 376 $content .= '<html><head><meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" />'; 377 $content .= '<meta http-equiv="content-language" content="'._LANGCODE.'" />' ; 378 $content .= '<title>XPressME SQL DEBUG</title>' ; 379 $content .= '<link rel="stylesheet" type="text/css" media="all" href="'.getcss($GLOBALS['xoopsConfig']['theme_set']).'" />'; 380 $content .= '</head><body>'; 381 $content .= $GLOBALS['XPress_SQL_Query']; 382 $content .= '<div style="text-align:center;"><input class="formButton" value="CLOSE" type="button" onclick="javascript:window.close();" /></div></body></html>'; 383 384 echo '<script type="text/javascript"> 385 <!--// 386 xpress_debug_window = window.open("", "xpress_debug", "width=680 , height=600 ,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no"); 387 xpress_debug_window.document.clear(); 388 xpress_debug_window.focus(); 389 '; 390 $lines = preg_split("/(\r\n|\r|\n)( *)/", $content); 391 foreach ($lines as $line) { 392 echo 'xpress_debug_window.document.writeln("'.str_replace('"', '\"', $line).'");'; 393 } 394 echo ' 395 xpress_debug_window.document.close(); 396 //--> 397 </script>'; 398 } 341 399 } 342 400
Note: See TracChangeset
for help on using the changeset viewer.