Changeset 22102
- Timestamp:
- 2012/11/16 16:20:45 (14 years ago)
- Location:
- branches/version-2_12-multilang/data
- Files:
-
- 6 edited
-
class/helper/SC_Helper_Address.php (modified) (3 diffs)
-
class/helper/SC_Helper_Transform.php (modified) (3 diffs)
-
class/util/GC_Utils.php (modified) (3 diffs)
-
class/util/SC_Utils.php (modified) (10 diffs)
-
locales/ja.mo (modified) (previous)
-
locales/ja.po (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/helper/SC_Helper_Address.php
r22096 r22102 44 44 // 顧客IDのチェック 45 45 if (is_null($customer_id) || !is_numeric($customer_id) || !preg_match("/^\d+$/", $customer_id)) { 46 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '顧客IDを正しく指定して下さい。'); 46 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, t("SC_Helper_Address_001")); 47 47 48 } 48 49 // 追加 … … 52 53 // 別のお届け先最大登録数に達している場合、エラー 53 54 if ($deliv_count >= DELIV_ADDR_MAX) { 54 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '別のお届け先最大登録数に達しています。');55 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, t("SC_Helper_Address_002")); 55 56 } 56 57 … … 63 64 $deliv_count = $objQuery->count('dtb_other_deliv','other_deliv_id = ?' ,array($other_deliv_id)); 64 65 if ($deliv_count != 1) { 65 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, '一致する別のお届け先がありません。');66 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', false, t("SC_Helper_Address_003")); 66 67 } 67 68 -
branches/version-2_12-multilang/data/class/helper/SC_Helper_Transform.php
r21991 r22102 65 65 if (!in_array($encoding, array('ASCII', 'UTF-8'))) { 66 66 if ($encoding === false) { 67 $encoding = '検出不能';67 $encoding = t("SC_Helper_Transform_001"); 68 68 } 69 $msg = 'テンプレートの文字コードが「' . $encoding . '」です。「UTF-8」のみ利用できます。';69 $msg = t('SC_Helper_Transform_002', array('T_FIELD' => $encoding)); 70 70 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', true, $msg); 71 71 } … … 327 327 } 328 328 // エラー画面表示 329 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', true, 'テンプレートの操作に失敗しました。' . $err_msg);329 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', true, t('SC_Helper_Transform_004', array('T_FIELD' => $err_msg))); 330 330 } elseif ($this->snip_count) { 331 331 $html = $this->objDOM->saveHTML(); … … 620 620 } 621 621 catch (Exception $e) { 622 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', true, 'テンプレートの操作に失敗しました。');622 SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', true, t("SC_Helper_Transform_005")); 623 623 } 624 624 -
branches/version-2_12-multilang/data/class/util/GC_Utils.php
r21927 r22102 120 120 */ 121 121 function gfGetLogStr($mess, $log_level = 'Info') { 122 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);122 trigger_error(t("GC_Utils_001"), E_USER_WARNING); 123 123 // メッセージの前に、ログ出力元関数名とログ出力関数呼び出し部分の行数を付与 124 124 $mess = GC_Utils::gfGetCallerInfo(true) . $mess; … … 138 138 */ 139 139 function gfAdminLog($mess, $log_level = 'Info') { 140 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);140 trigger_error(t("GC_Utils_001"), E_USER_WARNING); 141 141 // ログレベル=Debugの場合は、DEBUG_MODEがtrueの場合のみログ出力する 142 142 if ($log_level === 'Debug' && DEBUG_MODE === false) { … … 154 154 */ 155 155 function gfFrontLog($mess, $log_level = 'Info') { 156 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);156 trigger_error(t("GC_Utils_001"), E_USER_WARNING); 157 157 // ログレベル=Debugの場合は、DEBUG_MODEがtrueの場合のみログ出力する 158 158 if ($log_level === 'Debug' && DEBUG_MODE === false) { -
branches/version-2_12-multilang/data/class/util/SC_Utils.php
r22058 r22102 49 49 $path = HTML_REALDIR . 'install/' . DIR_INDEX_FILE; 50 50 if (file_exists($path)) { 51 SC_Utils_Ex::sfErrorHeader( '>> /install/' . DIR_INDEX_FILE . ' は、インストール完了後にファイルを削除してください。');51 SC_Utils_Ex::sfErrorHeader(t('SC_Utils_001', array('T_FIELD' => DIR_INDEX_FILE))); 52 52 } 53 53 } … … 166 166 */ 167 167 function sfDispException($debugMsg = null) { 168 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);168 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 169 169 trigger_error($debugMsg, E_USER_ERROR); 170 170 } … … 1148 1148 } else { 1149 1149 if (!$override && file_exists($des.$data)) { 1150 $mess.= $des.$data . ":ファイルが存在します\n";1150 $mess.= t('SC_Utils_003', array('T_FIELD01' => $des, 'T_FIELD02' => $data)); 1151 1151 } else { 1152 1152 if (@copy($data_, $des.$data)) { 1153 $mess.= $des.$data . ":コピー成功\n";1153 $mess.= t('SC_Utils_004', array('T_FIELD01' => $des, 'T_FIELD02' => $data)); 1154 1154 } else { 1155 $mess.= $des.$data . ":コピー失敗\n";1155 $mess.= t('SC_Utils_005', array('T_FIELD01' => $des, 'T_FIELD02' => $data)); 1156 1156 } 1157 1157 } … … 1263 1263 */ 1264 1264 function printXMLDeclaration() { 1265 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);1265 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 1266 1266 GC_Utils_Ex::printXMLDeclaration(); 1267 1267 } … … 1344 1344 */ 1345 1345 function sfGetUrl() { 1346 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);1346 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 1347 1347 return GC_Utils_Ex::getUrl(); 1348 1348 } … … 1354 1354 */ 1355 1355 function sfBacktraceToString($arrBacktrace) { 1356 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);1356 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 1357 1357 return GC_Utils_Ex::toStringBacktrace($arrBacktrace); 1358 1358 } … … 1364 1364 */ 1365 1365 function sfIsAdminFunction() { 1366 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);1366 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 1367 1367 return GC_Utils_Ex::isAdminFunction(); 1368 1368 } … … 1374 1374 */ 1375 1375 function sfIsFrontFunction() { 1376 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);1376 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 1377 1377 return GC_Utils_Ex::isFrontFunction(); 1378 1378 } … … 1384 1384 */ 1385 1385 function sfIsInstallFunction() { 1386 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);1386 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 1387 1387 return GC_Utils_Ex::isInstallFunction(); 1388 1388 } … … 1436 1436 */ 1437 1437 function sfMicrotimeFloat() { 1438 trigger_error( '前方互換用メソッドが使用されました。', E_USER_WARNING);1438 trigger_error(t("SC_Utils_002"), E_USER_WARNING); 1439 1439 return microtime(true); 1440 1440 } -
branches/version-2_12-multilang/data/locales/ja.po
r22088 r22102 3 3 "Project-Id-Version: EC-CUBE Core\n" 4 4 "POT-Creation-Date: 2012-05-07 13T_39+0900\n" 5 "PO-Revision-Date: 2012-11- 09 17:51+0900\n"5 "PO-Revision-Date: 2012-11-16 16:17+0900\n" 6 6 "Last-Translator: MATSUDA Terutaka <[email protected]>\n" 7 7 "Language-Team: \n" … … 3511 3511 msgid "LC_Page_Admin_Index_001" 3512 3512 msgstr "ログイン出来ません。" 3513 3514 msgid "SC_Helper_Address_001" 3515 msgstr "顧客IDを正しく指定して下さい" 3516 3517 msgid "SC_Helper_Address_002" 3518 msgstr "別のお届け先最大登録数に達しています。" 3519 3520 msgid "SC_Helper_Address_003" 3521 msgstr "一致する別のお届け先がありません。" 3522 3523 msgid "SC_Helper_Transform_001" 3524 msgstr "検出不能" 3525 3526 msgid "C_Helper_Transform_003" 3527 msgstr "<br />T_FIELD が存在しません" 3528 3529 msgid "SC_Helper_Transform_004" 3530 msgstr "テンプレートの操作に失敗しました。T_FIELD" 3531 3532 msgid "SC_Helper_Transform_005" 3533 msgstr "テンプレートの操作に失敗しました。" 3534 3535 msgid "SC_Utils_001" 3536 msgstr "" 3537 "'>> /install/T_FIELD は、インストール完了後にファイルを削除してくださ" 3538 "い。'" 3539 3540 msgid "SC_Utils_002" 3541 msgstr "前方互換用メソッドが使用されました。" 3542 3543 msgid "SC_Utils_003" 3544 msgstr "T_FIELD01T_FIELD02:ファイルが存在します" 3545 3546 msgid "SC_Utils_004" 3547 msgstr "T_FIELD01T_FIELD02:コピー成功" 3548 3549 msgid "SC_Utils_005" 3550 msgstr "T_FIELD01T_FIELD02:コピー失敗" 3551 3552 msgid "GC_Utils_001" 3553 msgstr "前方互換用メソッドが使用されました。"
Note: See TracChangeset
for help on using the changeset viewer.
