當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Translator::searchModules方法代碼示例

本文整理匯總了PHP中Translator::searchModules方法的典型用法代碼示例。如果您正苦於以下問題:PHP Translator::searchModules方法的具體用法?PHP Translator::searchModules怎麽用?PHP Translator::searchModules使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Translator的用法示例。


在下文中一共展示了Translator::searchModules方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

     $toolbar->icon_list['save']['params'] = 'onclick="javascript:document.translator.submit()"';
     $include_template = 'template_install_step2.php';
     //save post data
     $_SESSION['release_options']['title'] = $_POST['title'];
     $_SESSION['release_options']['source_lang'] = $_POST['source_lang'];
     $_SESSION['release_options']['destination_lang'] = $_POST['destination_lang'];
     $_SESSION['release_options']['translated_only'] = $_POST['translated_only'];
     $_SESSION['release_options']['description'] = $_POST['description'];
     $_SESSION['translation_modules'] = array();
     if ($_POST['id'] != 'current_installation') {
         $translator->extractRelease($_POST['id']);
         $temproot = $translator->getTempRoot();
     } else {
         $temproot = $translator->getTempRoot(true);
     }
     $translator->searchModules($temproot, $_POST['source_lang']);
     break;
 case 'p_install':
     $translator->addRelease($_POST);
     if ($_POST['id'] != 'current_installation') {
         $translator->delete_directory(INSTALL_TEMP_DIR . session_id());
     }
     header('Location:index.php?cat=translator&module=main');
     exit;
 case 'mod':
     $toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=releases', 'SSL') . '\'"';
     $toolbar->icon_list['save']['show'] = true;
     $toolbar->icon_list['save']['params'] = 'onclick="javascript:document.translator.submit()"';
     $toolbar->icon_list['delete']['params'] = 'onclick="document.translator.action.value=\'p_delete\'; document.translator.submit()"';
     $toolbar->icon_list['delete']['show'] = true;
     $include_template = 'template_mod.php';
開發者ID:jigsmaheta,項目名稱:puerto-argentino,代碼行數:31,代碼來源:pre_process.php


注:本文中的Translator::searchModules方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。