- Timestamp:
- Nov 20, 2009, 12:46:12 PM (15 years ago)
- Location:
- trunk/xpressme_integration_kit/wp-content/plugins/xpressme
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/xpress_common_functions.php
r389 r448 365 365 } 366 366 367 function get_block_file_path($mydirname,$file_name) 368 { 369 global $xoops_config, $xpress_config; 370 $mydirpath = $xoops_config->xoops_root_path . '/modules/' . $mydirname; 371 $select_theme = xpress_ThemeTemplate(get_xpress_theme_name($mydirname)); 372 $xpress_default_theme = 'xpress_default'; 373 $select_block = '/wp-content/themes/' . $select_theme . '/blocks/' . $file_name; 374 $default_block = '/wp-content/themes/xpress_default/blocks/' . $file_name; 375 $select_block_path = $mydirpath . $select_block; 376 $default_block_path = $mydirpath . $default_block; 377 378 $block_file_data = array(); 379 $block_file_data['file_path'] = $default_block_path; 380 $block_file_data['error'] = ''; 381 382 if($select_theme != $xpress_default_theme){ 383 if (file_exists($select_block_path)){ 384 $select_block_version = get_block_version($select_block_path); 385 $default_block_version = get_block_version($default_block_path); 386 if (version_compare($select_block_version,$default_block_version, "<")){ 387 $block_file_data['file_path'] = $default_block_path; 388 if ($xpress_config->is_block_error_display){ 389 $error_str = '<div style="color:red">'; 390 $error_str .= sprintf(__('Block file %1$s is an old version %2$s.<br />used block file %3$s of new version %4$s.','xpressme'),$select_block,$select_block_version,$default_block,$default_block_version); 391 $error_str .= '</div>'; 392 $block_file_data['error'] = $error_str; 393 } 394 } else { 395 $block_file_data['file_path'] = $select_block_path; 396 $block_file_data['error'] = ''; 397 } 398 } 399 } 400 return $block_file_data; 401 } 402 403 function get_block_version($file_path = ''){ 404 $array_file = file($file_path); 405 $pattern = '^[\s|\/]*[B|b]lock\s+[V|v]ersion\s*[:|;]\s*([0-9|.]*)'; 406 $version = '0.1'; 407 if (empty($file_path)) return $version; 408 if (!file_exists($file_path)) return $version; 409 if (count($array_file) > 5) $file_count = 5; else $file_count = count($array_file); 410 for ($i = 0 ; $i < $file_count ; $i++){ 411 if (preg_match('/' . $pattern . '/' ,$array_file[$i],$matchs)){ 412 $version = $matchs[1]; 413 break; 414 } 415 } 416 return $version; 417 } 418 367 419 ?> -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-ja.po
r445 r448 8 8 "Project-Id-Version: XPressME Plugin\n" 9 9 "Report-Msgid-Bugs-To: \n" 10 "POT-Creation-Date: 2009-11- 19 20:53+0900\n"11 "PO-Revision-Date: 2009-11- 19 20:53+0900\n"10 "POT-Creation-Date: 2009-11-20 12:51+0900\n" 11 "PO-Revision-Date: 2009-11-20 12:51+0900\n" 12 12 "Last-Translator: toemon <info@toemon.com>\n" 13 13 "Language-Team: toemon <info@toemon.com>\n" … … 56 56 #: xpressme.php:274 57 57 #: xpressme.php:280 58 #: xpressme_class.php:29 359 #: xpressme_class.php:31 160 #: xpressme_class.php:44 261 #: xpressme_class.php:45 358 #: xpressme_class.php:296 59 #: xpressme_class.php:314 60 #: xpressme_class.php:445 61 #: xpressme_class.php:456 62 62 msgid "YES" 63 63 msgstr "はい" … … 68 68 #: xpressme.php:275 69 69 #: xpressme.php:281 70 #: xpressme_class.php:29 471 #: xpressme_class.php:31 272 #: xpressme_class.php:44 373 #: xpressme_class.php:45 470 #: xpressme_class.php:297 71 #: xpressme_class.php:315 72 #: xpressme_class.php:446 73 #: xpressme_class.php:457 74 74 msgid "NO" 75 75 msgstr "いいえ" … … 77 77 #: xpressme.php:181 78 78 #: xpressme.php:232 79 #: xpressme.php:2 8679 #: xpressme.php:291 80 80 msgid "Update Config" 81 81 msgstr "更新" … … 83 83 #: xpressme.php:182 84 84 #: xpressme.php:233 85 #: xpressme.php:2 8785 #: xpressme.php:292 86 86 msgid "Preset Config" 87 87 msgstr "プリセット" … … 123 123 msgstr "SQLデバッグウィンドを表示しますか?" 124 124 125 #: xpressme_class.php:60 126 #: xpressme_class.php:240 125 #: xpressme.php:284 126 msgid "Select warning display of block file version check" 127 msgstr "ブロックファイルのバージョンチェック時における警告表示" 128 129 #: xpressme.php:285 130 msgid "Do display" 131 msgstr "表示する" 132 133 #: xpressme.php:286 134 msgid "Do not display" 135 msgstr "表示しない" 136 137 #: xpressme_class.php:61 138 #: xpressme_class.php:243 127 139 msgid "Older Post" 128 140 msgstr "前の投稿へ" 129 141 130 #: xpressme_class.php:6 1131 #: xpressme_class.php:24 3142 #: xpressme_class.php:62 143 #: xpressme_class.php:246 132 144 msgid "Newer Post" 133 145 msgstr "次の投稿へ" 134 146 135 #: xpressme_class.php:6 3136 #: xpressme_class.php:24 6147 #: xpressme_class.php:64 148 #: xpressme_class.php:249 137 149 msgid "Older Entries" 138 150 msgstr "前ページへ" 139 151 140 #: xpressme_class.php:6 4141 #: xpressme_class.php:2 49152 #: xpressme_class.php:65 153 #: xpressme_class.php:252 142 154 msgid "Newer Entries" 143 155 msgstr "次ページへ" 144 156 145 #: xpressme_class.php:78146 157 #: xpressme_class.php:79 147 #: xpressme_class.php:252 158 #: xpressme_class.php:80 159 #: xpressme_class.php:255 148 160 msgid "Read the rest of this entry »" 149 161 msgstr "この投稿の続きを読む »" 150 162 151 #: xpressme_class.php:35 3163 #: xpressme_class.php:356 152 164 msgid "Single Post Navi Setting" 153 165 msgstr "シングルポストナビの設定" 154 166 155 #: xpressme_class.php:3 58156 #: xpressme_class.php:40 3167 #: xpressme_class.php:361 168 #: xpressme_class.php:406 157 169 msgid "Adjustment of Navi link display position" 158 170 msgstr "リンクの表示位置設定" 159 171 160 #: xpressme_class.php:36 1172 #: xpressme_class.php:364 161 173 msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 162 174 msgstr "以前の記事へのリンクを左に、より新しい記事へのリンクを右に表示" 163 175 164 #: xpressme_class.php:36 2176 #: xpressme_class.php:365 165 177 msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 166 178 msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 167 179 168 #: xpressme_class.php:3 68180 #: xpressme_class.php:371 169 181 msgid "Select Display name of PostNavi Link" 170 182 msgstr "表示するリンクテキストを選択" 171 183 172 #: xpressme_class.php:37 1184 #: xpressme_class.php:374 173 185 msgid "Title of post" 174 186 msgstr "投稿記事のタイトルを表示" 175 187 176 #: xpressme_class.php:37 2188 #: xpressme_class.php:375 177 189 msgid "Title of Navi" 178 190 msgstr "ナビタイトルを表示" 179 191 180 #: xpressme_class.php:3 78192 #: xpressme_class.php:381 181 193 msgid "Display Navi Title of Old Post Link" 182 194 msgstr "古い記事へのナビタイトルを設定" 183 195 184 #: xpressme_class.php:38 5196 #: xpressme_class.php:388 185 197 msgid "Display Navi Title of Newer Post Link" 186 198 msgstr "より新しい記事へのナビタイトルを設定" 187 199 188 #: xpressme_class.php: 398200 #: xpressme_class.php:401 189 201 msgid "Posts List Page Navi Setting" 190 202 msgstr "ポストリストページナビの設定" 191 203 192 #: xpressme_class.php:40 6204 #: xpressme_class.php:409 193 205 msgid "'Old Page Link' is displayed in the left, and 'Newer Page Link' is displayed in the right" 194 206 msgstr "古いページへのリンクを左に、より新しいページへのリンクを右に表示" 195 207 196 #: xpressme_class.php:4 07208 #: xpressme_class.php:410 197 209 msgid "'Newer Page Link' is displayed in the left, and 'Old Page Link' is displayed in the right" 198 210 msgstr "より新しいページへのリンクを左に、古いページへのリンクを右に表示" 199 211 200 #: xpressme_class.php:41 3212 #: xpressme_class.php:416 201 213 msgid "Display Navi Title of Old Page Link" 202 214 msgstr "古いページへのナビタイトルを設定" 203 215 204 #: xpressme_class.php:42 0216 #: xpressme_class.php:423 205 217 msgid "Display Navi Title of Newer Page Link" 206 218 msgstr "より新しいページへのナビタイトルを設定" 207 219 208 #: xpressme_class.php:43 3220 #: xpressme_class.php:436 209 221 msgid "Dashboard feed Display Setting" 210 222 msgstr "ダッシュボード フィード表示設定" 211 223 212 #: xpressme_class.php:4 39224 #: xpressme_class.php:442 213 225 msgid "Display XPressMe Integration Kit Blog" 214 226 msgstr "XPressME Integration Kit ブログを表示する。" 215 227 216 #: xpressme_class.php:45 0228 #: xpressme_class.php:453 217 229 msgid "Display XPressMe Integration Kit Forum" 218 230 msgstr "XPressME Integration Kit フォーラムを表示する。" 219 231 220 #: xpressme_class.php:4 68232 #: xpressme_class.php:471 221 233 msgid "Role Setting at Login" 222 234 msgstr "ログイン時の権限設定" 223 235 224 #: xpressme_class.php:47 1236 #: xpressme_class.php:474 225 237 msgid "XOOPS Groupe" 226 238 msgstr "XOOPSグループ名" 227 239 228 #: xpressme_class.php:47 1240 #: xpressme_class.php:474 229 241 msgid "WordPress Role" 230 242 msgstr "WordPressでの権限" 231 243 232 #: xpressme_class.php:47 1244 #: xpressme_class.php:474 233 245 msgid "Role is set at each login" 234 246 msgstr "ログイン時、常に権限を更新する" 235 247 236 #: xpressme_class.php:497 237 #: xpressme_class.php:501 248 #: xpressme_class.php:500 238 249 #: xpressme_class.php:504 250 #: xpressme_class.php:507 239 251 msgid "Default Role of WordPress" 240 252 msgstr "WordPressのデフォルト権限" 241 253 242 #: xpressme_class.php:498 243 #: xpressme_class.php:502 254 #: xpressme_class.php:501 244 255 #: xpressme_class.php:505 256 #: xpressme_class.php:508 245 257 msgid "Group User Doesn't Register" 246 258 msgstr "ユーザ登録しない" 247 259 248 #: xpressme_class.php:5 18260 #: xpressme_class.php:521 249 261 msgid "Only the Admin can set Group Role Setting" 250 262 msgstr "管理者だけがグループ権限を設定できます。" 251 263 252 #: xpressme_class.php:5 38264 #: xpressme_class.php:541 253 265 msgid "WordPress MU cannot integrate the comments." 254 266 msgstr "WordPress MUはコメント統合できません。" 255 267 256 #: xpressme_class.php:54 0268 #: xpressme_class.php:543 257 269 msgid "Do Not Comment Integration." 258 270 msgstr "コメント統合しません。" 259 271 260 #: xpressme_class.php:57 5272 #: xpressme_class.php:578 261 273 msgid "Comment integration with D3Forum" 262 274 msgstr "D3Forumとのコメント統合" 263 275 264 #: xpressme_class.php:5 77276 #: xpressme_class.php:580 265 277 msgid "Select the forum of D3Forum that does the comment integration from the following lists." 266 278 msgstr "以下のリストからコメント統合をするD3Forumのフォーラムを選択してください。" 267 279 268 #: xpressme_class.php:58 2280 #: xpressme_class.php:585 269 281 msgid "Select the Type of display of D3Forum comment." 270 282 msgstr "D3Forumの表示タイプを選択" 271 283 272 #: xpressme_class.php:584273 284 #: xpressme_class.php:587 285 #: xpressme_class.php:590 274 286 msgid "Flat" 275 287 msgstr "フラット" 276 288 277 #: xpressme_class.php:585278 289 #: xpressme_class.php:588 290 #: xpressme_class.php:591 279 291 msgid "Threaded" 280 292 msgstr "スレッド" 281 293 282 #: xpressme_class.php:59 1294 #: xpressme_class.php:594 283 295 msgid "Select the order of display of D3Forum comment." 284 296 msgstr "D3Forumコメントの表示順を選択" 285 297 286 #: xpressme_class.php:593287 298 #: xpressme_class.php:596 299 #: xpressme_class.php:599 288 300 msgid "DESC" 289 301 msgstr "降順" 290 302 291 #: xpressme_class.php:594292 303 #: xpressme_class.php:597 304 #: xpressme_class.php:600 293 305 msgid "ASC" 294 306 msgstr "昇順" 295 307 296 #: xpressme_class.php:60 0308 #: xpressme_class.php:603 297 309 msgid "Number of displays of D3Forum comments." 298 310 msgstr "D3Forumのコメント表示数" 299 311 300 #: xpressme_class.php:60 3312 #: xpressme_class.php:606 301 313 msgid "The import and the export between Wordpress Comments and the D3Forum Posts can be done. " 302 314 msgstr "WordPressコメントとD3Forumポスト間の一括転送(エクスポート・インポート)" 303 315 304 #: xpressme_class.php:60 4316 #: xpressme_class.php:607 305 317 msgid "Export to D3Forum" 306 318 msgstr "D3Forumへ一括エクスポート" 307 319 308 #: xpressme_class.php:60 5320 #: xpressme_class.php:608 309 321 msgid "Import from D3Forum" 310 322 msgstr "D3Forumから一括インポート" 311 323 312 #: xpressme_class.php:6 18324 #: xpressme_class.php:621 313 325 msgid "Contents Excerpt Setting" 314 326 msgstr "記事抜粋の設定" 315 327 316 #: xpressme_class.php:62 3328 #: xpressme_class.php:626 317 329 msgid "Is the excerpt display done with the archive of contents?" 318 330 msgstr "記事のアーカイブで抜粋表示を行いますか?" 319 331 320 #: xpressme_class.php:63 0332 #: xpressme_class.php:633 321 333 msgid "When ASCII character more than the set ratio is included, it is judged ASCII contents. " 322 334 msgstr "ASCII文字が含まれる比率が設定された値より大きい場合、ASCII文字コンテンツと判断します。" 323 335 324 #: xpressme_class.php:6 37336 #: xpressme_class.php:640 325 337 msgid "Excerpt length of word for ASCII contents" 326 338 msgstr "ASCIIコンテンツの抜粋単語数" 327 339 328 #: xpressme_class.php:64 4340 #: xpressme_class.php:647 329 341 msgid "Excerpt length of character for multibyte contents" 330 342 msgstr "マルチバイトコンテンツの抜粋文字数" 331 343 332 #: xpressme_class.php:65 1344 #: xpressme_class.php:654 333 345 msgid "This text is displayed in the link that reads contents not excerpted.(Is not displayed for the blank.)" 334 346 msgstr "抜粋されていないコンテンツを読むためのリンクに表示されるテキスト(空白の場合リンクを表示しません)" 335 347 336 #: xpressme_class.php:6 58348 #: xpressme_class.php:661 337 349 msgid "This text is displayed in the link that more tag (<!--more-->). " 338 350 msgstr "more タグ (<!--more-->)のリンクに表示されるテキスト" 339 351 340 #: xpressme_class.php:67 0352 #: xpressme_class.php:673 341 353 msgid "Display Mode Setting" 342 354 msgstr "表示モード設定" 343 355 344 #: xpressme_class.php:67 3356 #: xpressme_class.php:676 345 357 msgid "Select the XPressME Display Mode." 346 358 msgstr "XPressMEの表示モードの選択" 347 359 348 #: xpressme_class.php:6 78360 #: xpressme_class.php:681 349 361 msgid "Xoops Mode" 350 362 msgstr "XOOPSモード" 351 363 352 #: xpressme_class.php:68 2364 #: xpressme_class.php:685 353 365 msgid "WordPress Mode" 354 366 msgstr "WordPressモード" 355 367 356 #: xpressme_class.php:68 6368 #: xpressme_class.php:689 357 369 msgid "User select" 358 370 msgstr "ユーザによる選択" 359 371 360 #: xpressme_class.php:69 1372 #: xpressme_class.php:694 361 373 msgid "Select the theme used in the XOOPS Mode." 362 374 msgstr "XOOPSモードで使用するテーマを選択" 363 375 364 #: xpressme_class.php:69 6376 #: xpressme_class.php:699 365 377 msgid "Use WordPress Selected Themes" 366 378 msgstr "WordPressで選択したテーマを使う" 367 379 368 #: xpressme_class.php:71 4380 #: xpressme_class.php:717 369 381 msgid "Header Meta Option" 370 382 msgstr "ヘッダメタ オプション" 371 383 372 #: xpressme_class.php:7 19384 #: xpressme_class.php:722 373 385 msgid "Select the Header keyword." 374 386 msgstr "ヘッダで使用するキーワードの選択" 375 387 376 #: xpressme_class.php:72 4388 #: xpressme_class.php:727 377 389 msgid "Xoops KeyWord" 378 390 msgstr "XOOPSのキーワード" 379 391 380 #: xpressme_class.php:7 27392 #: xpressme_class.php:730 381 393 msgid "WordPress KeyWord" 382 394 msgstr "WordPressのキーワード" 383 395 384 #: xpressme_class.php:73 0396 #: xpressme_class.php:733 385 397 msgid "WordPress & Xoops KeyWord" 386 398 msgstr "WordPressjとXOOPSのキーワード" 387 399 388 #: xpressme_class.php:73 6400 #: xpressme_class.php:739 389 401 msgid "Select the Header Description." 390 402 msgstr "ヘッダで使用するディスクリプション(説明)の選択" 391 403 392 #: xpressme_class.php:74 1404 #: xpressme_class.php:744 393 405 msgid "Xoops Description" 394 406 msgstr "XOOPSのディスクリプション" 395 407 396 #: xpressme_class.php:74 4408 #: xpressme_class.php:747 397 409 msgid "WordPress Description" 398 410 msgstr "WordPressのディスクリプション" 399 411 400 #: xpressme_class.php:7 47412 #: xpressme_class.php:750 401 413 msgid "WordPress & Xoops Description" 402 414 msgstr "WordPressとXOOPSのディスクリプション" 403 415 404 #: xpressme_class.php:75 3416 #: xpressme_class.php:756 405 417 msgid "Select the Header Robots Index." 406 418 msgstr "ヘッダで使用するロボットインデックスの選択" 407 419 408 #: xpressme_class.php:7 58420 #: xpressme_class.php:761 409 421 msgid "Xoops Robots Index" 410 422 msgstr "XOOPSのロボットインデックス" 411 423 412 #: xpressme_class.php:76 1424 #: xpressme_class.php:764 413 425 msgid "WordPress Robots Index" 414 426 msgstr "WordPressのロボットインデックス" 415 427 416 #: xpressme_class.php:79 0428 #: xpressme_class.php:793 417 429 #, php-format 418 430 msgid "Unable to create directory %s. Is its parent directory writable by the server?" … … 607 619 msgid "Switch to WordPress mode" 608 620 msgstr "WordPressモードへ切替" 621 622 #: include/xpress_common_functions.php:390 623 #, php-format 624 msgid "Block file %1$s is an old version %2$s.<br />used block file %3$s of new version %4$s." 625 msgstr "ブロックファイル %1$s は古いバージョン %2$s の為、<br /> 新しいバージョン %4$s のブロックファイル %3$s を使用します。" 609 626 610 627 #: include/xpress_upgrade.php:13 -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r442 r448 281 281 __('NO','xpressme') 282 282 ); 283 echo $xpress_config->yes_no_radio_option('is_block_error_display', 284 __('Select warning display of block file version check','xpressme'), 285 __('Do display','xpressme'), 286 __('Do not display','xpressme') 287 ); 283 288 echo "</table>\n"; 284 289 -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php
r404 r448 36 36 var $is_dashboard_forum_disp; 37 37 var $theme_select; 38 var $is_block_error_display; 38 39 //constructor 39 40 function XPressME_Class() … … 86 87 $this->is_dashboard_forum_disp = true; 87 88 $this->theme_select = 'use_wordpress_select'; 89 $this->is_block_error_display = true; 88 90 } 89 91 … … 143 145 'is_dashboard_blog_disp' => $this->is_dashboard_blog_disp, 144 146 'is_dashboard_forum_disp' => $this->is_dashboard_forum_disp, 145 'theme_select' => $this->theme_select 147 'theme_select' => $this->theme_select, 148 'is_block_error_display' => $this->is_block_error_display 146 149 ); 147 150 if ($mode == 'add_new') {
Note: See TracChangeset
for help on using the changeset viewer.