3
0

Redesigned localization management

Added under maintenance message
This commit is contained in:
tomolimo
2018-08-02 16:57:00 +02:00
parent 53d6535d2c
commit 053da4fdd7
34 changed files with 2629 additions and 1199 deletions

View File

@@ -99,7 +99,7 @@ if ($_REQUEST['page'] == 1 && empty($_REQUEST['searchText'])) {
if (count($users)) {
foreach ($users as $ID => $output) {
$title = sprintf(__('%1$s - %2$s'), $output, $logins[$ID]);
$title = sprintf('%1$s - %2$s', $output, $logins[$ID]);
array_push($datas, array('id' => $ID,
'text' => $output,

View File

@@ -22,7 +22,7 @@ $PM_DB = new PluginProcessmakerDB;
$rand = rand();
echo "<form style='margin-bottom: 0px' name='processmaker_form_task$rand-".$_REQUEST['delIndex']."' id='processmaker_form_task$rand-".$_REQUEST['delIndex']."' method='post' action='".Toolbox::getItemTypeFormURL("PluginProcessmakerProcessmaker")."'>";
echo $LANG['processmaker']['item']['reassigncase']."&nbsp;";
echo __('Re-assign task to', 'processmaker')."&nbsp;";
echo "<input type='hidden' name='action' value='unpausecase_or_reassign_or_delete'>";
echo "<input type='hidden' name='items_id' value='".$_REQUEST['items_id']."'>";
echo "<input type='hidden' name='itemtype' value='".$_REQUEST['itemtype']."'>";
@@ -42,6 +42,6 @@ PluginProcessmakerUser::dropdown( array('name' => 'users_id_recipient',
'width' => '',
'specific_tags' => array('taskGuid' => $_REQUEST['taskGuid'])));
echo "&nbsp;&nbsp;";
echo "<input type='submit' name='reassign' value='".$LANG['processmaker']['item']['buttonreassigncase']."' class='submit'>";
echo "<input type='submit' name='reassign' value='".__('Re-assign', 'processmaker')."' class='submit'>";
Html::closeForm(true);

View File

@@ -32,9 +32,9 @@ if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'route' && isset( $_REQ
if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'delete') {
// delete case from case table, this will also delete the tasks
if ($locCase->getFromDB($_POST['cases_id']) && $locCase->deleteCase()) {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['deleted'], true, INFO);
Session::addMessageAfterRedirect(__('Case has been deleted!', 'processmaker'), true, INFO);
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errordeleted'], true, ERROR);
Session::addMessageAfterRedirect(__('Unable to delete case!', 'processmaker'), true, ERROR);
}
// will redirect to item or to list if no item
$locCase->redirectToList();
@@ -47,12 +47,12 @@ if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'cancel') {
$resultPM = $PM_SOAP->cancelCase($locCase->fields['case_guid']);
if ($resultPM->status_code === 0) {
if ($locCase->cancelCase()) {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['cancelled'], true, INFO);
Session::addMessageAfterRedirect(__('Case has been cancelled!', 'processmaker'), true, INFO);
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errorcancelled'], true, ERROR);
Session::addMessageAfterRedirect(__('Unable to cancel case!', 'processmaker'), true, ERROR);
}
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errorcancelled'], true, ERROR);
Session::addMessageAfterRedirect(__('Unable to cancel case!', 'processmaker'), true, ERROR);
}
Html::back();
} else
@@ -78,12 +78,15 @@ if (isset($_REQUEST['id']) && $_REQUEST['id'] > 0) {
Html::header(__('Process cases', 'processmaker'), $_SERVER['PHP_SELF'], "helpdesk", "PluginProcessmakerCase", "cases");
}
if ($locCase->getFromDB($_REQUEST['id'])) {
$locCase->display($_REQUEST);
Html::footer();
if (!$PM_SOAP->config->fields['maintenance']) {
if ($locCase->getFromDB($_REQUEST['id'])) {
$locCase->display($_REQUEST);
}
} else {
PluginProcessmakerProcessmaker::showUnderMaintenance();
}
Html::footer();
}

View File

@@ -1,39 +0,0 @@
<?php
//include_once '../../../inc/includes.php';
//// check if it is from PM pages
//if (isset( $_REQUEST['UID'] ) && isset( $_REQUEST['APP_UID'] ) && isset( $_REQUEST['__DynaformName__'] )) {
// // then get item id from DB
// $myCase = new PluginProcessmakerCase;
// if ($myCase->getFromGUID($_REQUEST['APP_UID'])) {
// //$PM_SOAP = new PluginProcessmakerProcessmaker();
// //$PM_SOAP->login( );
// if (isset( $_REQUEST['form'] )) {
// $PM_SOAP->derivateCase($myCase, $_REQUEST); //, $_SERVER['HTTP_COOKIE'] ) ;
// }
// }
//} else
// if (isset( $_REQUEST['form'] ) && isset( $_REQUEST['form']['BTN_CATCH'] ) && isset( $_REQUEST['form']['APP_UID'])) {
// // Claim task management
// // here we are in a Claim request
// $myCase = new PluginProcessmakerCase;
// if ($myCase->getFromGUID( $_REQUEST['form']['APP_UID'] )) {
// //$PM_SOAP = new PluginProcessmakerProcessmaker();
// //$PM_SOAP->login( );
// $pmClaimCase = $PM_SOAP->claimCase($myCase->fields['case_guid'], $_REQUEST['DEL_INDEX'] );
// // now manage tasks associated with item
// $PM_SOAP->claimTask($myCase->getID(), $_REQUEST['DEL_INDEX']);
// }
//}
//// now redirect to item form page
//$config = $PM_SOAP->config; // PluginProcessmakerConfig::getInstance();
//echo "<html><body><script>";
//if (isset($config->fields['domain']) && $config->fields['domain'] != '') {
// echo "document.domain='{$config->fields['domain']}';";
//}
//echo "</script><input id='GLPI_FORCE_RELOAD' type='hidden' value='GLPI_FORCE_RELOAD'/></body></html>";

View File

@@ -2,22 +2,17 @@
include_once ("../../../inc/includes.php");
Html::header($LANG['processmaker']['title'][1], $_SERVER['PHP_SELF'], "helpdesk", "PluginProcessmakerCase", "cases");
if (Session::haveRightsOr("plugin_processmaker_config", [READ, UPDATE])) {
//$process=new PluginProcessmakerProcess();
//if (isset( $_REQUEST['refresh'] ) && Session::haveRight("plugin_processmaker_config", UPDATE)) {
// $process->refresh();
// Html::back();
//}
//$process->title();
Search::show('PluginProcessmakerCase');
Html::header(__('ProcessMaker', 'processmaker'), $_SERVER['PHP_SELF'], "helpdesk", "PluginProcessmakerCase", "cases");
if (!$PM_SOAP->config->fields['maintenance']) {
if (Session::haveRightsOr("plugin_processmaker_config", [READ, UPDATE])) {
Search::show('PluginProcessmakerCase');
} else {
Html::displayRightError();
}
} else {
Html::displayRightError();
PluginProcessmakerProcessmaker::showUnderMaintenance();
}
Html::footer();

View File

@@ -24,7 +24,7 @@ if (isset($_REQUEST["update"])) {
$PluginCaselink->redirectToList();
} else {
Html::header($LANG['processmaker']['title'][1], $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "caselinks");
Html::header(__('ProcessMaker', 'processmaker'), $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "caselinks");
$PluginCaselink->display($_REQUEST);

View File

@@ -2,7 +2,7 @@
include_once ("../../../inc/includes.php");
Html::header($LANG['processmaker']['title'][1], $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "caselinks");
Html::header(__('ProcessMaker', 'processmaker'), $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "caselinks");
if (Session::haveRightsOr("plugin_processmaker_config", [READ, UPDATE])) {

View File

@@ -22,7 +22,7 @@ if (isset($_REQUEST["update"])) {
} else {
Html::header($LANG['processmaker']['title'][1], $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "processes");
Html::header(__('ProcessMaker', 'processmaker'), $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "processes");
$PluginProcess->display($_REQUEST);

View File

@@ -2,7 +2,7 @@
include_once ("../../../inc/includes.php");
Html::header($LANG['processmaker']['title'][1], $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "processes");
Html::header(__('ProcessMaker', 'processmaker'), $_SERVER['PHP_SELF'], "tools", "PluginProcessmakerMenu", "processes");
if (Session::haveRightsOr("plugin_processmaker_config", [READ, UPDATE])) {
$process=new PluginProcessmakerProcess();

View File

@@ -24,16 +24,16 @@ switch ($_POST["action"]) {
$item = new $_POST['itemtype'];
$item->getFromDB($_POST['items_id']);
unset($_SERVER['REQUEST_URI']); // to prevent use of processmaker.form.php in NavigateList
Session::initNavigateListItems('PluginProcessmakerCase',
Session::initNavigateListItems('PluginProcessmakerCase',
//TRANS : %1$s is the itemtype name,
// %2$s is the name of the item (used for headings of a list)
sprintf(__('%1$s = %2$s'),
sprintf('%1$s = %2$s',
$_POST['itemtype']::getTypeName(1), $item->fields["name"]));
Html::redirect($link);
}
Html::back();
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['error'][$resultCase->status_code]."<br>".$resultCase->message." (".$resultCase->status_code.")", true, ERROR);
Session::addMessageAfterRedirect( PluginProcessmakerProcessmaker::getPMErrorMessage($resultCase->status_code)."<br>".$resultCase->message." (".$resultCase->status_code.")", true, ERROR);
}
} else {
Html::back();
@@ -52,7 +52,7 @@ switch ($_POST["action"]) {
Html::redirect($CFG_GLPI['root_doc']."/plugins/processmaker/front/processmaker.helpdesk.form.php?processes_id=".$_POST['plugin_processmaker_processes_id']."&case_guid=".$resultCase->caseId."&rand=$rand&itilcategories_id=".$_POST["itilcategories_id"]."&type=".$_REQUEST["type"]."&entities_id=".$_REQUEST['entities_id']);
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['error'][$resultCase->status_code]."<br>$resultCase->message ($resultCase->status_code)", true, ERROR); //echo "Error creating case: $resultCase->message \n";
Session::addMessageAfterRedirect( PluginProcessmakerProcessmaker::getPMErrorMessage($resultCase->status_code)."<br>$resultCase->message ($resultCase->status_code)", true, ERROR);
Html::redirect($CFG_GLPI["root_doc"]."/front/helpdesk.public.php?create_ticket=1");
}
@@ -82,12 +82,12 @@ switch ($_POST["action"]) {
$_POST['users_id'],
$_POST['users_id_recipient']);
if ($pmResponse) {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['reassigned'], true, INFO);
Session::addMessageAfterRedirect(__('Task re-assigned!', 'processmaker'), true, INFO);
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['notreassigned'].$pmResponse->message, true, ERROR);
Session::addMessageAfterRedirect(__('Error re-assigning task: ', 'processmaker').$pmResponse->message, true, ERROR);
}
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['assignedtoyou'], true, ERROR); // Html::back();
Session::addMessageAfterRedirect(__('Task already assigned to this person!','processmaker'), true, ERROR);
}
//} else if (isset($_POST['delete'])) {
// // delete case from case table, this will also delete the tasks
@@ -106,35 +106,35 @@ switch ($_POST["action"]) {
// } else {
// Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errordeleted'], true, ERROR);
// }
} else if (isset($_POST['cancel'])) {
// cancel case from PM
$locCase = new PluginProcessmakerCase;
$locCase->getFromDB($_POST['cases_id']);
$resultPM = $PM_SOAP->cancelCase($locCase->fields['case_guid']); //, $_POST['plugin_processmaker_del_index'], $_POST['plugin_processmaker_users_id'] ) ;
if ($resultPM->status_code === 0) {
//$locCase = new PluginProcessmakerCase;
//$locCase->getFromDB($_POST['cases_id']);
if ($locCase->cancelCase()) {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['cancelled'], true, INFO);
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errorcancelled'], true, ERROR);
}
} else {
if ($resultPM->status_code == 100 && $locCase->deleteCase()) { // case is draft then delete it
// request delete from pm itself
$PM_SOAP->login(true);
//} else if (isset($_POST['cancel'])) {
// // cancel case from PM
// $locCase = new PluginProcessmakerCase;
// $locCase->getFromDB($_POST['cases_id']);
// $resultPM = $PM_SOAP->cancelCase($locCase->fields['case_guid']); //, $_POST['plugin_processmaker_del_index'], $_POST['plugin_processmaker_users_id'] ) ;
// if ($resultPM->status_code === 0) {
// //$locCase = new PluginProcessmakerCase;
// //$locCase->getFromDB($_POST['cases_id']);
// if ($locCase->cancelCase()) {
// Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['cancelled'], true, INFO);
// } else {
// Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errorcancelled'], true, ERROR);
// }
// } else {
// if ($resultPM->status_code == 100 && $locCase->deleteCase()) { // case is draft then delete it
// // request delete from pm itself
// $PM_SOAP->login(true);
$resultPM = $PM_SOAP->deleteCase($locCase->fields['case_guid']);
// $resultPM = $PM_SOAP->deleteCase($locCase->fields['case_guid']);
if ($resultPM->status_code == 0) {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['deleted'], true, INFO);
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errordeleted'], true, ERROR);
}
} else {
Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errorcancelled']. " " . $resultPM->message, true, ERROR);
}
}
// if ($resultPM->status_code == 0) {
// Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['deleted'], true, INFO);
// } else {
// Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errordeleted'], true, ERROR);
// }
// } else {
// Session::addMessageAfterRedirect($LANG['processmaker']['item']['case']['errorcancelled']. " " . $resultPM->message, true, ERROR);
// }
// }
}
break;

View File

@@ -4,12 +4,12 @@ include_once ("../../../inc/includes.php");
/**
* Summary of processMakerShowProcessList
* @param mixed $ID
* @param mixed $from_helpdesk
* @param mixed $ID
* @param mixed $from_helpdesk
* @return boolean
*/
function processMakerShowProcessList ($ID, $from_helpdesk) {
global $DB, $CFG_GLPI, $LANG, $_SESSION;
global $DB, $CFG_GLPI, $_SESSION;
if (!Session::haveRight("ticket", CREATE)) {
return false;
@@ -18,10 +18,10 @@ function processMakerShowProcessList ($ID, $from_helpdesk) {
$rand = rand();
echo "<form name= 'processmaker_form$rand' id='processmaker_form$rand' method='post' action='".Toolbox::getItemTypeFormURL("PluginProcessmakerProcessmaker")."'>";
echo "<div class='center'><table class='tab_cadre_fixehov'>";
echo "<tr><th colspan='2'>".$LANG['processmaker']['item']['tab']."</th></tr>";
echo "<tr><th colspan='2'>".__('Process - Case','processmaker')."</th></tr>";
echo "<tr class='tab_bg_2'><td class='right' colspan='1'>";
echo $LANG['processmaker']['item']['selectprocess']."&nbsp;";
_e('Select the process you want to add', 'processmaker');
echo "<input type='hidden' name='action' value='newcase'>";
echo "<input type='hidden' name='id' value='-1'>";
echo "<input type='hidden' name='itemtype' value='Ticket'>";
@@ -41,8 +41,8 @@ function processMakerShowProcessList ($ID, $from_helpdesk) {
/**
* Summary of processMakerShowCase
* @param mixed $ID
* @param mixed $from_helpdesk
* @param mixed $ID
* @param mixed $from_helpdesk
*/
function processMakerShowCase( $ID, $from_helpdesk ) {
global $CFG_GLPI, $PM_SOAP;

127
hook.php
View File

@@ -25,17 +25,15 @@ if (!function_exists('arFieldExists')) {
}
function plugin_processmaker_MassiveActions($type) {
global $LANG;
switch ($type) {
case 'PluginProcessmakerProcess' :
if (plugin_processmaker_haveRight('config', UPDATE)) {
return array('plugin_processmaker_taskrefresh' => $LANG['processmaker']['config']['refreshtasklist']);
return array('plugin_processmaker_taskrefresh' => __('Synchronize Task List', 'processmaker'));
}
break;
case 'PluginProcessmakerProcess_Profile' :
if (plugin_processmaker_haveRight('config', UPDATE)) {
return array('purge' => $LANG['processmaker']['process']['profile']);
return array('purge' => __('Delete permanently'));
}
break;
//case 'PluginProcessmakerCase' :
@@ -48,66 +46,65 @@ function plugin_processmaker_MassiveActions($type) {
}
function plugin_processmaker_MassiveActionsDisplay($options) {
global $LANG;
//function plugin_processmaker_MassiveActionsDisplay($options) {
switch ($options['itemtype']) {
case 'PluginProcessmakerProcess' :
//case 'PluginProcessmakerCase' :
switch ($options['action']) {
case "plugin_processmaker_taskrefresh" :
//case "plugin_processmaker_purgecase" :
echo "<input type='submit' name='massiveaction' class='submit' ".
"value='".$LANG['buttons'][2]."'>";
break;
// switch ($options['itemtype']) {
// case 'PluginProcessmakerProcess' :
// //case 'PluginProcessmakerCase' :
// switch ($options['action']) {
// case "plugin_processmaker_taskrefresh" :
// //case "plugin_processmaker_purgecase" :
// echo "<input type='submit' name='massiveaction' class='submit' ".
// "value='".__('Post')."'>";
// break;
}
break;
}
return "";
}
// }
// break;
// }
// return "";
//}
function plugin_processmaker_MassiveActionsProcess($data) {
//function plugin_processmaker_MassiveActionsProcess($data) {
switch ($data['action']) {
// switch ($data['action']) {
case "plugin_processmaker_taskrefresh" :
if ($data['itemtype'] == 'PluginProcessmakerProcess') {
foreach ($data["item"] as $key => $val) {
if ($val == 1) {
$process = new PluginProcessmakerProcess;
$process->refreshTasks( array( 'id' => $key ) );
// case "plugin_processmaker_taskrefresh" :
// if ($data['itemtype'] == 'PluginProcessmakerProcess') {
// foreach ($data["item"] as $key => $val) {
// if ($val == 1) {
// $process = new PluginProcessmakerProcess;
// $process->refreshTasks( array( 'id' => $key ) );
}
}
}
break;
//case "plugin_processmaker_purgecase":
// if ($data['itemtype'] == 'PluginProcessmakerCase') {
// foreach ($data["item"] as $key => $val) {
// if ($val == 1) {
// $locCase= new PluginProcessmakerCase;
// //$locCase->( array( 'id' => $key ) );
// }
// }
// }
// break;
// //case "plugin_processmaker_purgecase":
// // if ($data['itemtype'] == 'PluginProcessmakerCase') {
// // foreach ($data["item"] as $key => $val) {
// // if ($val == 1) {
// // $locCase= new PluginProcessmakerCase;
// // //$locCase->( array( 'id' => $key ) );
// }
// }
// }
// break;
//case 'plugin_processmaker_process_profile_delete' :
// if ($data['itemtype'] == 'PluginProcessmakerProcess_Profile') {
// foreach ($data["item"] as $key => $val) {
// if ($val == 1) {
// $process_profile = new PluginProcessmakerProcess_Profile;
// $process_profile->delete( array( 'id' => $key ), true );
// // }
// // }
// // }
// // break;
// //case 'plugin_processmaker_process_profile_delete' :
// // if ($data['itemtype'] == 'PluginProcessmakerProcess_Profile') {
// // foreach ($data["item"] as $key => $val) {
// // if ($val == 1) {
// // $process_profile = new PluginProcessmakerProcess_Profile;
// // $process_profile->delete( array( 'id' => $key ), true );
// }
// }
// }
// break;
// // }
// // }
// // }
// // break;
}
}
// }
//}
/**
* Summary of plugin_processmaker_install
@@ -116,7 +113,6 @@ function plugin_processmaker_MassiveActionsProcess($data) {
* @return true or die!
*/
function plugin_processmaker_install() {
global $DB;
if (!arTableExists("glpi_plugin_processmaker_cases")) {
// new installation
@@ -143,7 +139,6 @@ function plugin_processmaker_install() {
}
function plugin_processmaker_uninstall() {
//global $DB;
CronTask::Unregister('PluginProcessmakerProcessmaker');
@@ -152,8 +147,7 @@ function plugin_processmaker_uninstall() {
function plugin_processmaker_getAddSearchOptions($itemtype) {
global $LANG;
$sopt = array();
// TODO add Change and Problem + other fields to the search
if ($itemtype == 'Ticket') {
@@ -161,7 +155,7 @@ function plugin_processmaker_getAddSearchOptions($itemtype) {
$sopt[10001]['field'] = 'case_status';
//$sopt[1001]['linkfield'] = 'id';
$sopt[10001]['massiveaction'] = false;
$sopt[10001]['name'] = $LANG['processmaker']['search']['case'].' - '.$LANG['processmaker']['search']['status'];
$sopt[10001]['name'] = __('Case', 'processmaker').' - '.__('Status', 'processmaker');
$sopt[10001]['datatype'] = 'text';
$sopt[10001]['forcegroupby'] = true;
//$sopt[10001]['searchtype'] = 'equals';
@@ -265,18 +259,11 @@ function plugin_pre_item_update_processmaker(CommonITILObject $parm) {
* @param mixed $parm is the object
*/
function plugin_item_update_processmaker_satisfaction($parm) {
global $DB, $GLOBALS;
$locCase = new PluginProcessmakerCase;
if ($locCase->getFromItem( 'Ticket', $parm->fields['tickets_id'] )) {
// case is existing for this item
$locPM = new PluginProcessmakerProcessmaker;
$locPM->login();
$pmResponse = $locPM->sendVariables( $locCase->getID(), array(
'GLPI_SATISFACTION_QUALITY' => $parm->fields['satisfaction']
));
$locCase->sendVariables( ['GLPI_SATISFACTION_QUALITY' => $parm->fields['satisfaction']] );
}
}
@@ -330,14 +317,14 @@ function plugin_item_purge_processmaker($parm) {
// and we must find all tasks assigned to this former user and re-assigned them to new user (if any :))!
//$caseInfo = $locPM->getCaseInfo( $locCase->getID() );
$caseInfo = $locCase->getCaseInfo( $locCase->getID() );
$caseInfo = $locCase->getCaseInfo( );
if ($caseInfo !== false) {
//$locPM->sendVariables( $locCase->getID( ), $locVars );
$locCase->sendVariables( $locCase->getID( ), $locVars);
$locCase->sendVariables( $locVars);
// need to get info on the thread of the GLPI current user
// we must retreive currentGLPI user from this array
$GLPICurrentPMUserId = PluginProcessmakerUser::getPMUserId( $parm->fields['users_id'] );
if (isset( $caseInfo->currentUsers ) && is_array( $caseInfo->currentUsers )) {
if (property_exists($caseInfo, 'currentUsers') && is_array( $caseInfo->currentUsers )) {
foreach ($caseInfo->currentUsers as $caseUser) {
if ($caseUser->userId == $GLPICurrentPMUserId && in_array( $caseUser->delThreadStatus, array('DRAFT', 'OPEN', 'PAUSE' ) )) {

File diff suppressed because it is too large Load Diff

View File

@@ -14,15 +14,15 @@ class PluginProcessmakerCasechangelog extends CommonDBTM {
global $CFG_GLPI, $PM_SOAP;
$rand = rand();
$caseHistoryURL = $PM_SOAP->serverURL."/cases/ajaxListener?action=changeLogHistory&rand=$rand";
$caseHistoryURL = $PM_SOAP->serverURL."/cases/ajaxListener?action=changeLogHistory&rand=$rand";
echo "<script type='text/javascript' src='".$CFG_GLPI["root_doc"]."/plugins/processmaker/js/cases.js'></script>"; //?rand=$rand'
$iframe = "<iframe
id='caseiframe-caseChangeLogHistory'
style='border: none;'
width='100%'
$iframe = "<iframe
id='caseiframe-caseChangeLogHistory'
style='border: none;'
width='100%'
src='$caseHistoryURL'
onload=\"onOtherFrameLoad( 'caseChangeLogHistory', 'caseiframe-caseChangeLogHistory', 'body', 0 );\">
</iframe>";
@@ -32,7 +32,6 @@ class PluginProcessmakerCasechangelog extends CommonDBTM {
}
function getTabNameForItem(CommonGLPI $case, $withtemplate = 0){
global $LANG;
return $LANG['processmaker']['item']['case']['changelog'];
return __('Change log', 'processmaker');
}
}

View File

@@ -11,7 +11,7 @@
class PluginProcessmakerCasedynaform extends CommonDBTM {
static function displayTabContentForItem(CommonGLPI $case, $tabnum=1, $withtemplate=0) {
global $CFG_GLPI, $PM_SOAP, $LANG;
global $CFG_GLPI, $PM_SOAP;
$config = $PM_SOAP->config;
$rand = rand();
@@ -77,8 +77,7 @@ class PluginProcessmakerCasedynaform extends CommonDBTM {
}
function getTabNameForItem(CommonGLPI $case, $withtemplate = 0){
global $LANG;
return $LANG['processmaker']['item']['case']['viewdynaforms'];
return __('Dynaforms', 'processmaker');
}
}

View File

@@ -15,7 +15,7 @@ class PluginProcessmakerCasehistory extends CommonDBTM {
$rand = rand();
$caseHistoryURL = $PM_SOAP->serverURL
."/cases/ajaxListener?action=caseHistory&rand=$rand";
."/cases/ajaxListener?action=caseHistory&rand=$rand";
echo "<script type='text/javascript' src='".$CFG_GLPI["root_doc"]."/plugins/processmaker/js/cases.js'></script>";
@@ -32,7 +32,6 @@ class PluginProcessmakerCasehistory extends CommonDBTM {
}
function getTabNameForItem(CommonGLPI $case, $withtemplate = 0){
global $LANG;
return $LANG['processmaker']['item']['case']['viewcasehistory'];
return __('History', 'processmaker');
}
}

View File

@@ -47,16 +47,14 @@ class PluginProcessmakerCaselink extends CommonDBTM {
}
static function getTypeName($nb=0) {
global $LANG;
if ($nb>1) {
return $LANG['processmaker']['title'][7];
return __('Case-links', 'processmaker');
}
return $LANG['processmaker']['title'][6];
return __('Case-link', 'processmaker');
}
function showForm ($ID, $options=array('candel'=>false)) {
global $DB, $CFG_GLPI, $LANG;
global $DB, $CFG_GLPI;
$options['candel'] = true;
@@ -64,27 +62,27 @@ class PluginProcessmakerCaselink extends CommonDBTM {
$this->showFormHeader($options);
echo "<tr class='tab_bg_1'>";
echo "<td>".__("Name")."</td><td>";
echo "<td>".__('Name')."</td><td>";
echo "<input size='100' type='text' name='name' value='".Html::cleanInputText($this->fields["name"])."'>";
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Active")."</td><td>";
echo "<td >".__('Active')."</td><td>";
Dropdown::showYesNo("is_active", $this->fields["is_active"]);
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("External data")."</td><td>";
echo "<td >".__('External data', 'processmaker')."</td><td>";
Dropdown::showYesNo("is_externaldata", $this->fields["is_externaldata"]);
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Self")."</td><td>";
echo "<td >".__('Self', 'processmaker')."</td><td>";
Dropdown::showYesNo("is_self", $this->fields["is_self"]);
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Source task GUID")."</td><td>";
echo "<td >".__('Source task GUID', 'processmaker')."</td><td>";
//PluginProcessmakerTaskCategory::dropdown(array('name' => 'plugin_processmaker_taskcategories_id_source',
// 'display_emptychoice' => false,
// 'value' => $this->fields['plugin_processmaker_taskcategories_id_source']));
@@ -92,7 +90,7 @@ class PluginProcessmakerCaselink extends CommonDBTM {
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Target task GUID")."</td><td>";
echo "<td >".__('Target task GUID', 'processmaker')."</td><td>";
//PluginProcessmakerTaskCategory::dropdown(array('name' => 'plugin_processmaker_taskcategories_id_target',
// 'display_emptychoice' => false,
// 'value' => $this->fields['plugin_processmaker_taskcategories_id_target']));
@@ -100,7 +98,7 @@ class PluginProcessmakerCaselink extends CommonDBTM {
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Target process GUID")."</td><td>";
echo "<td >".__('Target process GUID', 'processmaker')."</td><td>";
//Dropdown::show( 'PluginProcessmakerProcess', array('name' => 'plugin_processmaker_processes_id',
// 'display_emptychoice' => true,
// 'value' => $this->fields['plugin_processmaker_processes_id'],
@@ -109,23 +107,23 @@ class PluginProcessmakerCaselink extends CommonDBTM {
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td>".__("Target dynaform GUID")."</td><td>";
echo "<td>".__('Target dynaform GUID', 'processmaker')."</td><td>";
echo "<input size='100' type='text' name='targetdynaform_guid' value='".$this->fields["targetdynaform_guid"]."'>";
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td>".__("Source condition")."</td><td>";
echo "<td>".__('Source condition', 'processmaker')."</td><td>";
//echo "<input size='100' type='text' name='sourcecondition' value='".$this->fields["sourcecondition"]."'>";
echo "<textarea cols='100' rows='3' name='sourcecondition' >".$this->fields["sourcecondition"]."</textarea>";
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Claim target task")."</td><td>";
echo "<td >".__('Claim target task', 'processmaker')."</td><td>";
Dropdown::showYesNo("is_targettoclaim", $this->fields["is_targettoclaim"]);
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td>".__("External application JSON config")."</td><td>";
echo "<td>".__('External application JSON config', 'processmaker')."</td><td>";
echo "<textarea cols='100' rows='6' name='externalapplication' >".$this->fields["externalapplication"]."</textarea>";
echo "</td></tr>";
@@ -140,11 +138,9 @@ class PluginProcessmakerCaselink extends CommonDBTM {
* @return mixed
*/
function getSearchOptions() {
global $LANG;
$tab = array();
$tab['common'] = $LANG['processmaker']['title'][1];
$tab['common'] = __('ProcessMaker', 'processmaker');
$tab[1]['table'] = $this->getTable();
$tab[1]['field'] = 'name';
@@ -166,55 +162,55 @@ class PluginProcessmakerCaselink extends CommonDBTM {
$tab[10]['table'] = $this->getTable();
$tab[10]['field'] = 'is_externaldata';
$tab[10]['name'] = __('External data');
$tab[10]['name'] = __('External data', 'processmaker');
$tab[10]['massiveaction'] = false;
$tab[10]['datatype'] = 'bool';
$tab[11]['table'] = $this->getTable();
$tab[11]['field'] = 'is_self';
$tab[11]['name'] = __('Self');
$tab[11]['name'] = __('Self', 'processmaker');
$tab[11]['massiveaction'] = false;
$tab[11]['datatype'] = 'bool';
$tab[12]['table'] = $this->getTable();
$tab[12]['field'] = 'is_targettoclaim';
$tab[12]['name'] = __('Claim target task');
$tab[12]['name'] = __('Claim target task', 'processmaker');
$tab[12]['massiveaction'] = false;
$tab[12]['datatype'] = 'bool';
$tab[13]['table'] = $this->getTable();
$tab[13]['field'] = 'externalapplication';
$tab[13]['name'] = __('External application JSON config');
$tab[13]['name'] = __('External application JSON config', 'processmaker');
$tab[13]['massiveaction'] = false;
$tab[13]['datatype'] = 'text';
$tab[14]['table'] = $this->getTable();
$tab[14]['field'] = 'sourcetask_guid';
$tab[14]['name'] = __('Source task GUID');
$tab[14]['name'] = __('Source task GUID', 'processmaker');
$tab[14]['massiveaction'] = false;
$tab[14]['datatype'] = 'text';
$tab[15]['table'] = $this->getTable();
$tab[15]['field'] = 'targettask_guid';
$tab[15]['name'] = __('Target task GUID');
$tab[15]['name'] = __('Target task GUID', 'processmaker');
$tab[15]['massiveaction'] = false;
$tab[15]['datatype'] = 'text';
$tab[16]['table'] = $this->getTable();
$tab[16]['field'] = 'targetdynaform_guid';
$tab[16]['name'] = __('Target dynaform GUID');
$tab[16]['name'] = __('Target dynaform GUID', 'processmaker');
$tab[16]['massiveaction'] = false;
$tab[16]['datatype'] = 'text';
$tab[17]['table'] = $this->getTable();
$tab[17]['field'] = 'targetprocess_guid';
$tab[17]['name'] = __('Target process GUID');
$tab[17]['name'] = __('Target process GUID', 'processmaker');
$tab[17]['massiveaction'] = false;
$tab[17]['datatype'] = 'text';
$tab[18]['table'] = $this->getTable();
$tab[18]['field'] = 'sourcecondition';
$tab[18]['name'] = __('Source condition');
$tab[18]['name'] = __('Source condition', 'processmaker');
$tab[18]['massiveaction'] = false;
$tab[18]['datatype'] = 'text';

View File

@@ -28,10 +28,10 @@ class PluginProcessmakerCasemap extends CommonDBTM {
echo "<script type='text/javascript' src='".$CFG_GLPI["root_doc"]."/plugins/processmaker/js/cases.js'></script>"; //?rand=$rand'
$iframe = "<iframe
id='caseiframe-caseMap'
style='border: none;' width='100%'
src='$caseMapUrl'
$iframe = "<iframe
id='caseiframe-caseMap'
style='border: none;' width='100%'
src='$caseMapUrl'
onload=\"onOtherFrameLoad( 'caseMap', 'caseiframe-caseMap', 'body', ".($project_type=='bpmn' ? "true" : "false" )." );\">
</iframe>";
@@ -40,8 +40,7 @@ class PluginProcessmakerCasemap extends CommonDBTM {
}
function getTabNameForItem(CommonGLPI $case, $withtemplate = 0){
global $LANG;
return $LANG['processmaker']['item']['case']['viewcasemap'];
return __('Map', 'processmaker');
}
}

View File

@@ -38,9 +38,7 @@ class PluginProcessmakerConfig extends CommonDBTM {
* @return mixed
*/
static function getTypeName($nb=0) {
global $LANG;
return $LANG['processmaker']['config']['setup'];
return __('ProcessMaker setup', 'processmaker');
}
/**
@@ -49,9 +47,7 @@ class PluginProcessmakerConfig extends CommonDBTM {
* @return mixed
*/
function getName($with_comment=0) {
global $LANG;
return $LANG['processmaker']['title'][1];
return __('ProcessMaker', 'processmaker');
}
/**
@@ -143,7 +139,7 @@ class PluginProcessmakerConfig extends CommonDBTM {
* @return boolean
*/
static function showConfigForm($item) {
global $LANG, $PM_DB, $CFG_GLPI, $PM_SOAP;
global $PM_DB, $CFG_GLPI, $PM_SOAP;
$setup_ok = false;
@@ -157,12 +153,12 @@ class PluginProcessmakerConfig extends CommonDBTM {
$config->showFormHeader(['colspan' => 4]);
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['URL']."</td><td >";
echo "<td >".__('Server URL (must be in same domain than GLPI)', 'processmaker')."</td><td >";
echo "<input size='50' type='text' name='pm_server_URL' value='".$config->fields['pm_server_URL']."'>";
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td>" . $LANG['processmaker']['config']['domain'] . "</td>";
echo "<td>".__('Common domain with GLPI', 'processmaker')."</td>";
echo "<td><font color='red'><div name='domain'>".$config->fields['domain']."</div></font>";
echo Html::scriptBlock("
@@ -191,7 +187,7 @@ class PluginProcessmakerConfig extends CommonDBTM {
return;
}
} catch(ex) {}
$('div[name=domain]').text('".$LANG['processmaker']['config']['domain-error']."') ;
$('div[name=domain]').text('".__('None!', 'processmaker')."') ;
$('div[name=domain]').parent().attr('color', 'red');
};
$('input[name=pm_server_URL]').on('keyup', setCommonDomain ) ;
@@ -200,23 +196,23 @@ class PluginProcessmakerConfig extends CommonDBTM {
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['workspace']."</td><td >";
echo "<td >".__('Workspace Name', 'processmaker')."</td><td >";
echo "<input type='text' name='pm_workspace' value='".$config->fields['pm_workspace']."'>";
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >" . $LANG['processmaker']['config']['admin']['user'] . "</td>";
echo "<td >".__('Server administrator name', 'processmaker')."</td>";
echo "<td ><input type='text' name='pm_admin_user' value='".$config->fields["pm_admin_user"]."'>";
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >" . $LANG['processmaker']['config']['admin']['password'] . "</td>";
echo "<td >".__('Server administrator password', 'processmaker')."</td>";
echo "<td ><input type='password' name='pm_admin_passwd' value='' autocomplete='off'>";
echo "&nbsp;<input type='checkbox' name='_blank_pm_admin_passwd'>&nbsp;".__('Clear');
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['connectionstatus']."</td><td >";
echo "<td >".__('Connection status', 'processmaker')."</td><td >";
//$pm = new PluginProcessmakerProcessmaker;
if ($config->fields['pm_server_URL'] != ''
@@ -232,31 +228,31 @@ class PluginProcessmakerConfig extends CommonDBTM {
}
echo "</font></span></td></tr>\n";
echo "<tr><td colspan='4' class='center b'>".$LANG['processmaker']['config']['mysql']."</td></tr>";
echo "<tr><td colspan='4' class='center b'>".__('SQL server setup', 'processmaker')."</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >" . __('SQL server (MariaDB or MySQL)') . "</td>";
echo "<td >" . __('SQL server (MariaDB or MySQL)', 'processmaker') . "</td>";
echo "<td ><input type='text' size=50 name='pm_dbserver_name' value='".$config->fields["pm_dbserver_name"]."'>";
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >" . __('Database name') . "</td>";
echo "<td >" . __('Database name', 'processmaker') . "</td>";
echo "<td ><input type='text' size=50 name='pm_dbname' value='".$config->fields['pm_dbname']."'>";
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >" . __('SQL user') . "</td>";
echo "<td >" . __('SQL user', 'processmaker') . "</td>";
echo "<td ><input type='text' name='pm_dbserver_user' value='".$config->fields["pm_dbserver_user"]."'>";
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >" . __('SQL password') . "</td>";
echo "<td >" . __('SQL password', 'processmaker') . "</td>";
echo "<td ><input type='password' name='pm_dbserver_passwd' value='' autocomplete='off'>";
echo "&nbsp;<input type='checkbox' name='_blank_pm_dbserver_passwd'>&nbsp;".__('Clear');
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['connectionstatus']."</td><td >";
echo "<td >".__('Connection status', 'processmaker')."</td><td >";
if ($PM_DB->connected && isset($PM_DB->dbdefault) && $PM_DB->dbdefault != '') {
echo "<font color='green'>".__('Test successful');
} else {
@@ -267,20 +263,20 @@ class PluginProcessmakerConfig extends CommonDBTM {
echo "<tr><td colspan='4' class='center b'>".__('Settings')."</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['theme']."</td><td >";
echo "<td >".__('Theme Name', 'processmaker')."</td><td >";
Dropdown::showFromArray('pm_theme', $ui_theme,
array('value' => $config->fields['pm_theme']));
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['main_task_category']."</td><td >";
echo "<td >".__('Main Task Category (edit to change name)', 'processmaker')."</td><td >";
TaskCategory::dropdown(array('name' => 'taskcategories_id',
'display_emptychoice' => true,
'value' => $config->fields['taskcategories_id']));
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['taskwriter']."</td><td >";
echo "<td >".__('Task Writer (edit to change name)', 'processmaker')."</td><td >";
$rand = mt_rand();
User::dropdown(array('name' => 'users_id',
'display_emptychoice' => true,
@@ -300,7 +296,7 @@ class PluginProcessmakerConfig extends CommonDBTM {
echo "</td></tr>\n";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['pm_group_name']."</td><td >";
echo "<td >".__('Group in ProcessMaker which will contain all GLPI users', 'processmaker')."</td><td >";
$pmGroups = array( 0 => Dropdown::EMPTY_VALUE );
$query = "SELECT DISTINCT CON_ID, CON_VALUE FROM CONTENT WHERE CON_CATEGORY='GRP_TITLE' ORDER BY CON_VALUE;";
@@ -318,27 +314,27 @@ class PluginProcessmakerConfig extends CommonDBTM {
echo "<tr><td colspan='4' class='center b'>".__('Maintenance')."</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['config']['maintenance']."</td><td >";
echo "<td >".__('Maintenance mode')."</td><td >";
Dropdown::showYesNo("maintenance", $config->fields['maintenance']);
echo "</td></tr>";
echo "<tr><td colspan='4'></td></tr>";
echo "<tr><th colspan='4'>".__('Processmaker system information')."</th></tr>";
echo "<tr><th colspan='4'>".__('Processmaker system information', 'processmaker')."</th></tr>";
if ($setup_ok) {
// $info = $pm->systemInformation( );
$info = $PM_SOAP->systemInformation( );
echo '<tr><td>'._('Version').'</td><td>'.$info->version.'</td></tr>';
echo '<tr><td>'._('Web server').'</td><td>'.$info->webServer.'</td></tr>';
echo '<tr><td>'._('Server name').'</td><td>'.$info->serverName.'</td></tr>';
echo '<tr><td>'._('PHP version').'</td><td>'.$info->phpVersion.'</td></tr>';
echo '<tr><td>'._('DB version').'</td><td>'.$info->databaseVersion.'</td></tr>';
echo '<tr><td>'._('DB server IP').'</td><td>'.$info->databaseServerIp.'</td></tr>';
echo '<tr><td>'._('DB name').'</td><td>'.$info->databaseName.'</td></tr>';
echo '<tr><td>'._('User browser').'</td><td>'.$info->userBrowser.'</td></tr>';
echo '<tr><td>'._('User IP').'</td><td>'.$info->userIp.'</td></tr>';
echo '<tr><td>'.__('Version', 'processmaker').'</td><td>'.$info->version.'</td></tr>';
echo '<tr><td>'.__('Web server', 'processmaker').'</td><td>'.$info->webServer.'</td></tr>';
echo '<tr><td>'.__('Server name', 'processmaker').'</td><td>'.$info->serverName.'</td></tr>';
echo '<tr><td>'.__('PHP version', 'processmaker').'</td><td>'.$info->phpVersion.'</td></tr>';
echo '<tr><td>'.__('DB version', 'processmaker').'</td><td>'.$info->databaseVersion.'</td></tr>';
echo '<tr><td>'.__('DB server IP', 'processmaker').'</td><td>'.$info->databaseServerIp.'</td></tr>';
echo '<tr><td>'.__('DB name', 'processmaker').'</td><td>'.$info->databaseName.'</td></tr>';
echo '<tr><td>'.__('User browser', 'processmaker').'</td><td>'.$info->userBrowser.'</td></tr>';
echo '<tr><td>'.__('User IP', 'processmaker').'</td><td>'.$info->userIp.'</td></tr>';
} else {
echo '<tr><td>'._('Version').'</td><td>'.__('Not yet!').'</td></tr>';
echo '<tr><td>'.__('Version', 'processmaker').'</td><td>'.__('Not yet!', 'processmaker').'</td></tr>';
}
$config->showFormButtons(array('candel'=>false));
@@ -347,10 +343,8 @@ class PluginProcessmakerConfig extends CommonDBTM {
function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
global $LANG;
if ($item->getType()=='Config') {
return $LANG['processmaker']['title'][1];
return __('ProcessMaker', 'processmaker');
}
return '';
}

View File

@@ -14,6 +14,9 @@ if (!defined('GLPI_ROOT')) {
*/
class PluginProcessmakerProcess extends CommonDBTM {
const CLASSIC = 'classic';
const BPMN = 'bpmn';
static $rightname = 'plugin_processmaker_config';
@@ -341,15 +344,15 @@ class PluginProcessmakerProcess extends CommonDBTM {
* @return void (display)
**/
function title() {
global $LANG, $CFG_GLPI;
global $CFG_GLPI;
$buttons = array();
$title = $LANG['processmaker']['config']['refreshprocesslist'];
$title = __('Synchronize Process List', 'processmaker');
if ($this->canCreate()) {
$buttons["process.php?refresh=1"] = $LANG['processmaker']['config']['refreshprocesslist'];
$buttons["process.php?refresh=1"] = $title;
$title = "";
Html::displayTitle($CFG_GLPI["root_doc"] . "/plugins/processmaker/pics/gears.png", $LANG['processmaker']['config']['refreshprocesslist'], $title,
Html::displayTitle($CFG_GLPI["root_doc"] . "/plugins/processmaker/pics/gears.png", $title, '',
$buttons);
}
@@ -385,11 +388,9 @@ class PluginProcessmakerProcess extends CommonDBTM {
* @return mixed
*/
function getSearchOptions() {
global $LANG;
$tab = array();
$tab['common'] = $LANG['processmaker']['title'][1];
$tab['common'] = __('ProcessMaker', 'processmaker');
$tab[1]['table'] = 'glpi_plugin_processmaker_processes';
$tab[1]['field'] = 'name';
@@ -423,25 +424,25 @@ class PluginProcessmakerProcess extends CommonDBTM {
$tab[10]['table'] = 'glpi_plugin_processmaker_processes';
$tab[10]['field'] = 'process_guid';
$tab[10]['name'] = $LANG['processmaker']['process']['process_guid'];
$tab[10]['name'] = __('Process GUID', 'processmaker');
$tab[10]['massiveaction'] = false;
$tab[10]['datatype'] = 'text';
$tab[11]['table'] = 'glpi_plugin_processmaker_processes';
$tab[11]['field'] = 'project_type';
$tab[11]['name'] = $LANG['processmaker']['process']['project_type_short'];
$tab[11]['name'] = __('Project type', 'processmaker');
$tab[11]['massiveaction'] = false;
$tab[11]['datatype'] = 'specific';
$tab[12]['table'] = 'glpi_plugin_processmaker_processes';
$tab[12]['field'] = 'hide_case_num_title';
$tab[12]['name'] = $LANG['processmaker']['process']['hide_case_num_title_short'];
$tab[12]['name'] = __('Hide case number and title', 'processmaker');
$tab[12]['massiveaction'] = true;
$tab[12]['datatype'] = 'bool';
$tab[13]['table'] = 'glpi_plugin_processmaker_processes';
$tab[13]['field'] = 'insert_task_comment';
$tab[13]['name'] = $LANG['processmaker']['process']['insert_task_comment_short'];
$tab[13]['name'] = __('Insert Task Category', 'processmaker');
$tab[13]['massiveaction'] = true;
$tab[13]['datatype'] = 'bool';
@@ -453,7 +454,7 @@ class PluginProcessmakerProcess extends CommonDBTM {
$tab[15]['table'] = 'glpi_plugin_processmaker_processes';
$tab[15]['field'] = 'type';
$tab[15]['name'] = $LANG['processmaker']['process']['type'];
$tab[15]['name'] = __('Ticket type (self-service)', 'processmaker');
$tab[15]['searchtype'] = 'equals';
$tab[15]['datatype'] = 'specific';
$tab[15]['massiveaction'] = false;
@@ -470,15 +471,13 @@ class PluginProcessmakerProcess extends CommonDBTM {
* @param $options array
**/
static function getSpecificValueToDisplay($field, $values, array $options=array()) {
global $LANG;
if (!is_array($values)) {
$values = array($field => $values);
}
switch ($field) {
case 'project_type':
return $LANG['processmaker']['process']['project_type_'.$values[$field]];
return self::getProcessTypeName($values[$field]);
case 'type':
return Ticket::getTicketTypeName($values[$field]);
@@ -487,13 +486,42 @@ class PluginProcessmakerProcess extends CommonDBTM {
}
static function getTypeName($nb=0) {
global $LANG;
/**
* Summary of getAllTypeArray
* @return string[]
*/
static function getAllTypeArray() {
$tab = array(self::CLASSIC => _x('process_type', 'Classic', 'processmaker'),
self::BPMN => _x('process_type', 'BPMN', 'processmaker'));
return $tab;
}
/**
* Summary of getProcessTypeName
* @param mixed $value
* @return mixed
*/
static function getProcessTypeName($value) {
$tab = static::getAllTypeArray(true);
// Return $value if not defined
return (isset($tab[$value]) ? $tab[$value] : $value);
}
/**
* Summary of getTypeName
* @param mixed $nb
* @return mixed
*/
static function getTypeName($nb=0) {
if ($nb>1) {
return $LANG['processmaker']['title'][5];
return __('Processes', 'processmaker');
}
return $LANG['processmaker']['title'][2];
return __('Process', 'processmaker');
}
function defineTabs($options=array()) {
@@ -512,7 +540,7 @@ class PluginProcessmakerProcess extends CommonDBTM {
}
function showForm ($ID, $options=array('candel'=>false)) {
global $DB, $CFG_GLPI, $LANG;
global $DB, $CFG_GLPI;
//if ($ID > 0) {
// $this->check($ID,READ);
@@ -525,36 +553,36 @@ class PluginProcessmakerProcess extends CommonDBTM {
$this->showFormHeader($options);
echo "<tr class='tab_bg_1'>";
echo "<td>".__("Name")."&nbsp;:</td><td>";
echo "<td>".__("Name")."</td><td>";
//Html::autocompletionTextField($this, "name");
echo $this->fields["name"];
echo "</td>";
echo "<td rowspan='5' class='middle right'>".__("Comments")."&nbsp;:</td>";
echo "<td rowspan='5' class='middle right'>".__("Comments")."</td>";
echo "<td class='center middle' rowspan='5'><textarea cols='45' rows='6' name='comment' >".
$this->fields["comment"]."</textarea></td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['process']['process_guid']."&nbsp;:</td><td>";
echo "<td >".__('Process GUID', 'processmaker')."</td><td>";
echo $this->fields["process_guid"];
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Active")."&nbsp;:</td><td>";
echo "<td >".__("Active")."</td><td>";
Dropdown::showYesNo("is_active", $this->fields["is_active"]);
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['process']['hide_case_num_title']."&nbsp;:</td><td>";
echo "<td >".__('Hide case number and title in task descriptions', 'processmaker')."</td><td>";
Dropdown::showYesNo("hide_case_num_title", $this->fields["hide_case_num_title"]);
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['process']['insert_task_comment']."&nbsp;:</td><td>";
echo "<td >".__('Insert Task Category comments in Task Description', 'processmaker')."</td><td>";
Dropdown::showYesNo("insert_task_comment", $this->fields["insert_task_comment"]);
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['process']['type']."&nbsp;:</td><td>";
echo "<td >".__('Ticket type (self-service)', 'processmaker')."</td><td>";
if (true) { // $canupdate || !$ID
$idticketcategorysearch = mt_rand(); $opt = array('value' => $this->fields["type"]);
$rand = Ticket::dropdownType('type', $opt, array(), array('toupdate' => "search_".$idticketcategorysearch ));
@@ -572,7 +600,7 @@ class PluginProcessmakerProcess extends CommonDBTM {
}
echo "</td>";
echo "<td >".$LANG['processmaker']['process']['itilcategory']."&nbsp;:</td><td>";
echo "<td >".__('ITIL Category (self-service)', 'processmaker')."</td><td>";
if (true) { // $canupdate || !$ID || $canupdate_descr
$opt = array('value' => $this->fields["itilcategories_id"]);
@@ -601,12 +629,12 @@ class PluginProcessmakerProcess extends CommonDBTM {
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".$LANG['processmaker']['process']['project_type']."&nbsp;:</td><td>";
Dropdown::showFromArray( 'project_type', array( 'classic' => $LANG['processmaker']['process']['project_type_classic'], 'bpmn' => $LANG['processmaker']['process']['project_type_bpmn'] ), array( 'value' => $this->fields["project_type"] ) );
echo "<td >".__('Project type (to be changed if not up-to-date)', 'processmaker')."</td><td>";
Dropdown::showFromArray( 'project_type', self::getAllTypeArray(), array( 'value' => $this->fields["project_type"] ) );
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td >".__("Last update")."&nbsp;:</td><td>";
echo "<td >".__("Last update")."</td><td>";
echo Html::convDateTime($this->fields["date_mod"]);
echo "</td></tr>";

View File

@@ -23,13 +23,12 @@ class PluginProcessmakerProcess_Profile extends CommonDBTM
}
function getTabNameForItem( CommonGLPI $item, $withtemplate=0) {
global $LANG;
return $LANG['processmaker']['title'][4];
return __('Authorizations', 'processmaker');
}
static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) {
global $DB,$CFG_GLPI, $LANG;
global $DB;
$ID = $item->getField('id');
@@ -43,7 +42,7 @@ class PluginProcessmakerProcess_Profile extends CommonDBTM
echo "<form name='entityprocess_form$rand' id='entityprocess_form$rand' method='post' action='";
echo Toolbox::getItemTypeFormURL(__CLASS__)."'>";
echo "<table class='tab_cadre_fixe'>";
echo "<tr class='tab_bg_1'><th colspan='6'>".$LANG['processmaker']['title'][4]."</tr>";
echo "<tr class='tab_bg_1'><th colspan='6'>".__('Authorizations', 'processmaker')."</tr>";
echo "<tr class='tab_bg_2'><td class='center'>";
echo "<input type='hidden' name='plugin_processmaker_processes_id' value='$ID'>";
@@ -99,7 +98,7 @@ class PluginProcessmakerProcess_Profile extends CommonDBTM
$header_end .= "</th>";
}
$header_end .= "<th>"._n('Entity', 'Entities', Session::getPluralNumber())."</th>";
$header_end .= "<th>".sprintf(__('%1$s (%2$s)'), Profile::getTypeName(Session::getPluralNumber()),
$header_end .= "<th>".sprintf('%1$s (%2$s)', Profile::getTypeName(Session::getPluralNumber()),
__('D=Dynamic, R=Recursive'));
$header_end .= "</th></tr>";
echo $header_begin.$header_top.$header_end;
@@ -119,7 +118,7 @@ class PluginProcessmakerProcess_Profile extends CommonDBTM
$link = $data["completename"];
if ($_SESSION["glpiis_ids_visible"]) {
$link = sprintf(__('%1$s (%2$s)'), $link, $data["entities_id"]);
$link = sprintf('%1$s (%2$s)', $link, $data["entities_id"]);
}
if ($canshowentity) {
@@ -137,12 +136,12 @@ class PluginProcessmakerProcess_Profile extends CommonDBTM
}
if ($data["is_recursive"]) {
$entname = sprintf(__('%1$s %2$s'), $entname, "<span class='b'>(");
$entname = sprintf('%1$s %2$s', $entname, "<span class='b'>(");
if ($data["is_recursive"]) {
//TRANS: letter 'R' for Recursive
$entname = sprintf(__('%1$s%2$s'), $entname, __('R'));
$entname = sprintf('%1$s%2$s', $entname, __('R'));
}
$entname = sprintf(__('%1$s%2$s'), $entname, ")</span>");
$entname = sprintf('%1$s%2$s', $entname, ")</span>");
}
echo "<td>".$entname."</td>";
echo "</tr>";

View File

@@ -91,6 +91,10 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
static $rightname = '';
const ERROR_CREATING_CASE = 11;
const ERROR_NO_RIGHTS = 14;
const ERROR_CREATING_CASE2 = 100;
///**
//* Return the table used to store this object
@@ -102,6 +106,34 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
return "glpi_plugin_processmaker_processes";
}
/**
* Summary of getAllTypeArray
* @return string[]
*/
static function getAllPMErrorArray() {
$tab = array(self::ERROR_CREATING_CASE => _x('errors', 'Error creating case!', 'processmaker'),
self::ERROR_NO_RIGHTS => _x('errors', 'Can\'t create case: no rights for it!', 'processmaker'),
self::ERROR_CREATING_CASE2 => _x('errors', 'Error creating case!', 'processmaker'));
return $tab;
}
/**
* Summary of getProcessTypeName
* @param mixed $value
* @return mixed
*/
static function getPMErrorMessage($value) {
$tab = static::getAllPMErrorArray();
// Return $value if not defined
return (isset($tab[$value]) ? $tab[$value] : $value);
}
/**
* Summary of addTicketFollowup
* @param mixed $itemId
@@ -285,17 +317,19 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
function getCaseInfo($caseGuid, $delIndex='') {
try {
$pmCaseInfo = $this->pmSoapClient->getCaseInfo( array( 'sessionId' => $this->getPMSessionID(), 'caseId' => $caseGuid, 'delIndex' => $delIndex) );
switch ($pmCaseInfo->caseStatus) {
case 'DRAFT' :
case 'TO_DO':
// case 'CANCELLED' :
if (is_object( $pmCaseInfo->currentUsers )) {
$pmCaseInfo->currentUsers = array( 0 => $pmCaseInfo->currentUsers );
}
if ($pmCaseInfo->currentUsers[0]->delThreadStatus == 'PAUSE') {
$pmCaseInfo->caseStatus = "PAUSED";
}
break;
if (property_exists($pmCaseInfo, 'currentUsers')) {
switch ($pmCaseInfo->caseStatus) {
case 'DRAFT' :
case 'TO_DO':
// case 'CANCELLED' :
if (is_object( $pmCaseInfo->currentUsers )) {
$pmCaseInfo->currentUsers = array( 0 => $pmCaseInfo->currentUsers );
}
if ($pmCaseInfo->currentUsers[0]->delThreadStatus == 'PAUSE') {
$pmCaseInfo->caseStatus = "PAUSED";
}
break;
}
}
return $pmCaseInfo;
} catch (Exception $e) {
@@ -945,15 +979,13 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
* @return array of strings
*/
static function cronInfo($name) {
global $LANG;
switch ($name) {
case 'pmusers' :
return array('description' => $LANG['processmaker']['cron']['pmusers'] );
return array('description' => __('Syncs GLPI users and groups into ProcessMaker.', 'processmaker'));
case 'pmorphancases' :
return array('description' => $LANG['processmaker']['cron']['pmorphancases']['description'], 'parameter' => $LANG['processmaker']['cron']['pmorphancases']['parameter'] );
return array('description' => __('Cleaning of orphan cases.', 'processmaker'), 'parameter' => __('Number of days to keep orphan cases', 'processmaker'));
case 'pmtaskactions' :
return array('description' => $LANG['processmaker']['cron']['pmtaskactions'] );
return array('description' => __('To apply task actions between cases.', 'processmaker'));
}
return array();
}
@@ -1566,7 +1598,7 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
* @return
*/
public function addTask($cases_id, $itemtype, $items_id, $caseInfo, $delIndex, $techId, $groupId, $pmTaskId, $delThread, $options=array() ) {
global $DB, $PM_DB, $LANG, $_SESSION;
global $DB, $PM_DB, $_SESSION;
$default_options = array(
'txtTaskContent' => '',
@@ -1655,16 +1687,16 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
$input['content'] = ""; // by default empty :)
if ($pmProcess->fields["insert_task_comment"]) {
$input['content'] .= $LANG['processmaker']['item']['task']['comment']."\n";
$input['content'] .= "##processmaker.taskcomment##\n";
}
if ($options['txtTaskContent'] != '') {
$input['content'] .= $options['txtTaskContent']."\n";
} else if (!$pmProcess->fields["hide_case_num_title"]) {
$input['content'] .= $LANG['processmaker']['item']['task']['case'].$caseInfo->caseName."\n";
$input['content'] .= __('Case title: ', 'processmaker').$caseInfo->caseName."\n";
}
$input['content'] .= $LANG['processmaker']['item']['task']['manage'];
$input['content'] .= "##processmakercase.url##";
$input['is_private'] = 0;
$input['actiontime'] = 0;
@@ -2112,7 +2144,7 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
Session::initNavigateListItems('PluginProcessmakerCase',
//TRANS : %1$s is the itemtype name,
// %2$s is the name of the item (used for headings of a list)
sprintf(__('%1$s = %2$s'),
sprintf('%1$s = %2$s',
$params['options']['parent']->getTypeName(1), $params['options']['parent']->fields["name"]));
}
}
@@ -2124,7 +2156,7 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
* @return void
*/
static function pre_show_tab_processmaker($params) {
global $LANG, $pmHideSolution;
global $pmHideSolution;
$plugin = new Plugin();
$itemtype = $params['item']->getType();
switch ($itemtype) {
@@ -2143,8 +2175,8 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
if (!$pmCanSolve) {
// don't display message if arbehaviours is install
if (!($plugin->isInstalled('arbehaviours') && $plugin->isActivated('arbehaviours'))) {
$messageOne = $LANG['processmaker']['item']['preventsolution'][1];
$messageTwo = $LANG['processmaker']['item']['preventsolution'][2];
$messageOne = __('A \'Case\' is running!', 'processmaker');
$messageTwo = __('You must manage it first (see \'Process - Case\' tab)!', 'processmaker');
// output explicit message to explain why it's not possible to add solution
$message = "<div style='margin-bottom: 20px;' class='box'>
@@ -2344,12 +2376,12 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
* This workaround will artificially load cases_Open page to force
* initialization of those SESSION variables to prevent mix of values
* when viewing tabs like map, change log, history, and dynaforms
*
*
* it will also manage the glpi_domain parameter
*
*
* @param mixed $currentCase array that contains APP_UID, DEL_INDEX
* @param mixed $iFrameUrl string which is the url of the tab panel
* @param mixed $rand integer
* @param mixed $rand integer
*/
public function initCaseAndShowTab($currentCase, $iFrameUrl, $rand) {
$iFrameUrl = urlencode($iFrameUrl);
@@ -2385,13 +2417,15 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
global $_SESSION, $CFG_GLPI;
if (isset( $item->datas ) && isset( $item->datas['tasks'] )) {
foreach ($item->datas['tasks'] as &$task) { // we must check if task category is PM task category or not, if yes then we add task category comment to datas
$task['##task.description##'] = str_replace( '##processmaker.taskcomment##', $task['##task.categorycomment##'], $task['##task.description##'] );
$pmtask_itemtype = $item->obj->getType().'Task';
$pmtask_items_id = $task['##task.id##'];
$pmtask = new PluginProcessmakerTask($pmtask_itemtype);
$pmtask->getFromDBByQuery("WHERE itemtype = '$pmtask_itemtype' AND items_id = $pmtask_items_id");
$caseurl = urldecode($CFG_GLPI["url_base"]."/index.php?redirect=PluginProcessmakerCase_".$pmtask->fields['plugin_processmaker_cases_id']);
$task['##task.description##'] = str_replace('##processmakercase.url##', $caseurl, $task['##task.description##']);
if ($pmtask->getFromDBByQuery("WHERE itemtype = '$pmtask_itemtype' AND items_id = $pmtask_items_id")) {
$task['##task.description##'] = str_replace( '##processmaker.taskcomment##', $task['##task.categorycomment##'], $task['##task.description##'] );
$pmtask->getFromDBByQuery("WHERE itemtype = '$pmtask_itemtype' AND items_id = $pmtask_items_id");
$caseurl = urldecode($CFG_GLPI["url_base"]."/index.php?redirect=PluginProcessmakerCase_".$pmtask->fields['plugin_processmaker_cases_id']);
$task['##task.description##'] = str_replace('##processmakercase.url##', $caseurl, $task['##task.description##']);
}
}
}
@@ -2992,4 +3026,17 @@ class PluginProcessmakerProcessmaker extends CommonDBTM {
echo Html::scriptBlock($scriptblock);
}
/**
* Summary of underMaintenance
* Shows a nice(?) under maintenance message
*/
static function showUnderMaintenance() {
global $CFG_GLPI;
echo "<div class='center'>";
echo Html::image($CFG_GLPI['root_doc'].'/plugins/processmaker/pics/under_maintenance.png');
echo "<p style='font-weight: bold;'>";
_e('ProcessMaker plugin is under maintenance, please retry later, thank you.', 'processmaker');
echo "</p>";
echo "</div>";
}
}

View File

@@ -12,15 +12,13 @@ class PluginProcessmakerProfile extends CommonDBTM {
* @return array[]
*/
static function getAllRights() {
global $LANG;
$rights = array(
array('itemtype' => 'PluginProcessmakerConfig',
'label' => $LANG['processmaker']['profile']['process_config'],
'label' => __('Process configuration', 'processmaker'),
'field' => 'plugin_processmaker_config',
'rights' => array(READ => __('Read'), UPDATE => __('Update'))),
array('itemtype' => 'PluginProcessmakerConfig',
'label' => $LANG['processmaker']['profile']['case'],
'label' => __('Cases', 'processmaker'),
'field' => 'plugin_processmaker_case',
'rights' => array(READ => __('Read'), CANCEL => __('Cancel', 'processmaker'), DELETE => __('Delete')))
);
@@ -37,7 +35,6 @@ class PluginProcessmakerProfile extends CommonDBTM {
* @return bool
*/
function showForm($ID=0, $openform=TRUE, $closeform=TRUE) {
global $LANG;
if (!Session::haveRight("profile", READ)) {
return false;
@@ -52,7 +49,7 @@ class PluginProcessmakerProfile extends CommonDBTM {
$rights = $this->getAllRights();
$prof->displayRightsChoiceMatrix($rights, array('canedit' => $canedit,
'default_class' => 'tab_bg_2',
'title' => $LANG['processmaker']['title'][1]));
'title' => __('ProcessMaker', 'processmaker')));
if ($canedit && $closeform) {
echo "<div class='center'>";
@@ -64,6 +61,7 @@ class PluginProcessmakerProfile extends CommonDBTM {
Html::closeForm();
return true;
}
/**
@@ -81,10 +79,8 @@ class PluginProcessmakerProfile extends CommonDBTM {
* @return string|string[]
*/
function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
global $LANG;
if ($item->getType()=='Profile') {
return $LANG['processmaker']['title'][1];
return __('ProcessMaker', 'processmaker');
}
return '';
}

View File

@@ -22,8 +22,7 @@ class PluginProcessmakerTask extends CommonITILTask
* @param $nb : number of item in the type (default 0)
**/
static function getTypeName($nb=0) {
return _n('Process case task', 'Process case tasks', $nb);
return _n('Process case task', 'Process case tasks', $nb, 'processmaker');
}
function getItilObjectItemType() {
@@ -71,7 +70,7 @@ class PluginProcessmakerTask extends CommonITILTask
$query = "SELECT glpi_tickettasks.id as taskID from $itemTypeTaskTable
INNER JOIN $selfTable on $selfTable.items_id=$itemTypeTaskTable.id
WHERE $itemTypeTaskTable.state=1 and $selfTable.case_id='$case_id';";
WHERE $itemTypeTaskTable.state=1 and $selfTable.plugin_processmaker_cases_id='$case_id';";
foreach ($DB->request($query) as $row) {
$ret[$row['taskID']]=$row['taskID'];
}
@@ -130,7 +129,9 @@ class PluginProcessmakerTask extends CommonITILTask
function getTabNameForItem(CommonGLPI $case, $withtemplate = 0){
global $DB, $LANG;
global $DB;
$tab = [];
$caseInfo = $case->getCaseInfo();
@@ -156,7 +157,6 @@ class PluginProcessmakerTask extends CommonITILTask
$caseInfo->currentUsers = $case->sortTasks($caseInfo->currentUsers, $GLPICurrentPMUserId);
$tab = [];
foreach ($caseInfo->currentUsers as $key => $caseUser) {
$title = $caseUser->taskName;
if (isset($tasks[$caseUser->delIndex])) {

View File

@@ -18,26 +18,24 @@ class PluginProcessmakerTaskCategory extends CommonDBTM
{
function getTabNameForItem( CommonGLPI $item, $withtemplate=0) {
global $LANG;
return $LANG['processmaker']['title'][3];
return __('Task List', 'processmaker');
}
static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) {
global $LANG, $DB, $CFG_GLPI;
global $DB, $CFG_GLPI;
self::title($item);
echo "<div class='center'><br><table class='tab_cadre_fixehov'>";
echo "<tr><th colspan='7'>".$LANG['processmaker']['title'][3]."</th></tr>";
echo "<tr><th>".$LANG['processmaker']['process']['taskcategories']['name']."</th>".
"<th>".$LANG['processmaker']['process']['taskcategories']['completename']."</th>" .
"<th>".$LANG['processmaker']['process']['taskcategories']['is_start']."</th>" .
"<th>".$LANG['processmaker']['process']['taskcategories']['guid']."</th>" .
"<th>".$LANG['processmaker']['process']['taskcategories']['comment']."</th>" .
"<th>".$LANG['processmaker']['process']['taskcategories']['is_active']."</th>" .
"<th>".$LANG['processmaker']['process']['taskcategories']['is_subprocess']."</th>" .
echo "<tr><th colspan='7'>".__('Task List', 'processmaker')."</th></tr>";
echo "<tr><th>".__('Task name', 'processmaker')."</th>".
"<th>".__('Complete name')."</th>" .
"<th>".__('Start', 'processmaker')."</th>" .
"<th>".__('Task GUID', 'processmaker')."</th>" .
"<th>".__('Comments')."</th>" .
"<th>".__('Active')."</th>" .
"<th>".__('Sub-process', 'processmaker')."</th>" .
"</tr>";
$query = "SELECT pm.pm_task_guid, pm.taskcategories_id, pm.`is_start`, gl.name, gl.completename, gl.`comment`, pm.is_active, pm.is_subprocess FROM glpi_plugin_processmaker_taskcategories AS pm
@@ -48,18 +46,18 @@ class PluginProcessmakerTaskCategory extends CommonDBTM
echo "<tr class='tab_bg_1'>";
echo "<td class='b'><a href='".
Toolbox::getItemTypeFormURL('TaskCategory') . "?id=" . $taskCat['taskcategories_id'] . "'>" . $taskCat['name'];
Toolbox::getItemTypeFormURL('TaskCategory') . "?id=" . $taskCat['taskcategories_id'] . "'>" . $taskCat['name'];
if ($_SESSION["glpiis_ids_visible"]) {
echo " (" . $taskCat['taskcategories_id'] . ")";
}
echo "</a></td>";
echo "<td>" . $taskCat['completename'] . "</td>";
echo "<td>" . $taskCat['completename'] . "</td>";
echo "<td class='center'>";
if ($taskCat['is_start']) {
echo "<img src='".$CFG_GLPI["root_doc"]."/pics/ok.png' width='14' height='14' alt=\"".
$LANG['processmaker']['process']['taskcategories']['is_start']."\">";
__('Start', 'processmaker')."\">";
}
echo "</td>";
@@ -70,14 +68,14 @@ class PluginProcessmakerTaskCategory extends CommonDBTM
echo "<td class='center'>";
if ($taskCat['is_active']) {
echo "<img src='".$CFG_GLPI["root_doc"]."/pics/ok.png' width='14' height='14' alt=\"".
$LANG['processmaker']['process']['taskcategories']['is_active']."\">";
__('Active')."\">";
}
echo "</td>";
echo "<td class='center'>";
if ($taskCat['is_subprocess']) {
echo "<img src='".$CFG_GLPI["root_doc"]."/pics/ok.png' width='14' height='14' alt=\"".
$LANG['processmaker']['process']['taskcategories']['is_subprocess']."\">";
__('Sub-process', 'processmaker')."\">";
}
echo "</td>";
@@ -94,15 +92,14 @@ class PluginProcessmakerTaskCategory extends CommonDBTM
* @return nothing (display)
**/
static function title(CommonGLPI $item) {
global $LANG, $CFG_GLPI;
global $CFG_GLPI;
$buttons = array();
$title = $LANG['processmaker']['config']['refreshtasklist'];
$title = __('Synchronize Task List', 'processmaker');
if (Session::haveRight('plugin_processmaker_config', UPDATE)) {
$buttons["process.form.php?refreshtask=1&id=".$item->getID()] = $LANG['processmaker']['config']['refreshtasklist'];
$title = "";
Html::displayTitle($CFG_GLPI["root_doc"] . "/plugins/processmaker/pics/gears.png", $LANG['processmaker']['config']['refreshtasklist'], $title,
$buttons["process.form.php?refreshtask=1&id=".$item->getID()] = $title;
Html::displayTitle($CFG_GLPI["root_doc"] . "/plugins/processmaker/pics/gears.png", $title, "",
$buttons);
}
}

View File

@@ -1,122 +0,0 @@
<?php
$LANG['processmaker']['title'][1]="ProcessMaker";
$LANG['processmaker']['title'][2]="Proces";
$LANG['processmaker']['title'][3]="Seznam úkolů";
$LANG['processmaker']['title'][4]="Pověření";
$LANG['processmaker']['title'][5]="Procesy";
$LANG['processmaker']['title'][6]="Propojení případu";
$LANG['processmaker']['title'][7]="Propojení případů";
$LANG['processmaker']['profile']['rightmgt']="Správa oprávnění";
$LANG['processmaker']['profile']['process_config']="Nastavení procesu";
$LANG['processmaker']['profile']['case_delete']="Smazat případy";
$LANG['processmaker']['process']['process_guid']="Nikde se neopakující identifikátor procesu";
$LANG['processmaker']['process']['project_type_short']="Typ projektu" ;
$LANG['processmaker']['process']['project_type']="Typ projektu (pokud není aktuální, bude změněno)" ;
$LANG['processmaker']['process']['project_type_bpmn']='bpmn';
$LANG['processmaker']['process']['project_type_classic']='klasické' ;
$LANG['processmaker']['process']['hide_case_num_title_short']="Skrýt číslo a titulek případu";
$LANG['processmaker']['process']['hide_case_num_title']="V popisech úkolů skrýt číslo a titulek";
$LANG['processmaker']['process']['insert_task_comment_short']="Vložit kategorii úkolu";
$LANG['processmaker']['process']['insert_task_comment']="Vložit komentáře kategorie úkolu do jeho popisu";
$LANG['processmaker']['process']['type']="Typ požadavku (samoobslužné)";
$LANG['processmaker']['process']['itilcategory']="ITIL kategorie (samoobslužné)";
$LANG['processmaker']['process']['taskcategories']['guid']="Nikde se neopakující identifikátor úkolu";
$LANG['processmaker']['process']['taskcategories']['name']="Název úkolu";
$LANG['processmaker']['process']['taskcategories']['completename']="Úplný název";
$LANG['processmaker']['process']['taskcategories']['start']="Spustit";
$LANG['processmaker']['process']['taskcategories']['comment']="Komentář";
$LANG['processmaker']['process']['taskcategories']['is_active']="Aktivní";
$LANG['processmaker']['process']['profile']="Trvale smazat";
$LANG['processmaker']['config']['name']="Název";
$LANG['processmaker']['config']['setup']="Nastavení ProcessMaker";
$LANG['processmaker']['config']['mysql']="Nastavení SQL serveru";
$LANG['processmaker']['config']['URL']="URL adresa serveru (je třeba, aby byla ze stejné domény jako GLPI)";
$LANG['processmaker']['config']['workspace']="Název pracovního prostoru";
$LANG['processmaker']['config']['admin']['user']="Uživatelské jméno správce serveru";
$LANG['processmaker']['config']['admin']['password']="Heslo správce serveru";
$LANG['processmaker']['config']['theme']="Název motivu vzhledu";
$LANG['processmaker']['config']['comments']="Komentáře";
$LANG['processmaker']['config']['refreshprocesslist']="Synchronizovat seznam procesů";
$LANG['processmaker']['config']['refreshtasklist']="Synchronizovat seznam úkolů";
$LANG['processmaker']['config']['main_task_category']="Hlavní kategorie úkolu (pro změnu názvu upravte)";
$LANG['processmaker']['config']['taskwriter']="Úkol zapsal (pro změnu jména upravte)";
$LANG['processmaker']['config']['pm_group_name']="Skupina v ProcessMaker která bude obsahovat všechny uživatele z GLPI";
$LANG['processmaker']['config']['maintenance']="Režim údržby" ;
$LANG['processmaker']['config']['undermaintenance']="Probíhá údržba, zkuste to prosím později." ;
$LANG['processmaker']['config']['empty_pm_group_name']="Aby bylo možné vybrat skupinu, je třeba nejprve zadat nastavení pro ProcessMaker!";
$LANG['processmaker']['config']['test']="Vyzkoušet";
$LANG['processmaker']['config']['connectionstatus']="Stav spojení";
$LANG['processmaker']['config']['domain']="Společná doména s GLPI";
$LANG['processmaker']['config']['domain-error']="Žádná!";
$LANG['processmaker']['item']['tab']="Proces případ";
$LANG['processmaker']['item']['cancelledcase']="Stav: Zrušeno";
$LANG['processmaker']['item']['pausedtask']="Stav: Úkol je pozastaven pokračovat v něm?";
$LANG['processmaker']['item']['completedcase']="Stav: Dokončeno";
$LANG['processmaker']['item']['nocase']="Žádný případ pro tuto položku!";
$LANG['processmaker']['item']['startone']="Zahájit nějaký?";
$LANG['processmaker']['item']['selectprocess']="Vyberte proces který chcete spustit:";
$LANG['processmaker']['item']['start']="Spustit";
$LANG['processmaker']['item']['unpause']="Pokračovat";
$LANG['processmaker']['item']['deletecase']="Smazat případ?" ;
$LANG['processmaker']['item']['buttondeletecase']="Smazat" ;
$LANG['processmaker']['item']['reassigncase']="Znovu přiřadit úkol:";
$LANG['processmaker']['item']['buttonreassigncase']="Znovu přiřadit";
$LANG['processmaker']['item']['cancelcase']="Zrušit případ?" ;
$LANG['processmaker']['item']['buttoncancelcase']="Storno" ;
$LANG['processmaker']['item']['buttondeletecaseconfirmation']="Smazat tento případ?" ;
$LANG['processmaker']['item']['buttoncancelcaseconfirmation']="Zrušit tento případ?" ;
$LANG['processmaker']['item']['case']['deleted']="Případ byl smazán!";
$LANG['processmaker']['item']['case']['errordeleted']="Případ se nedaří smazat!";
$LANG['processmaker']['item']['case']['cancelled']="Případ byl zrušen!";
$LANG['processmaker']['item']['case']['errorcancelled']="Případ se nedaří zrušit!";
$LANG['processmaker']['item']['case']['notreassigned']="Chyba při opětovném přiřazování úkolu: ";
$LANG['processmaker']['item']['case']['assignedtoyou']="Úkol už je této osobě přiřazen!";
$LANG['processmaker']['item']['case']['reassigned']="Úkol znovu přiřazen!";
$LANG['processmaker']['item']['case']['casemap']="Mapa případu";
$LANG['processmaker']['item']['case']['casehistory']='Historie případu' ;
$LANG['processmaker']['item']['case']['dynaforms']='Dynamické formuláře';
$LANG['processmaker']['item']['case']['changelog']='Protokol změn';
$LANG['processmaker']['item']['case']['caseinfo']='Informace o případu';
$LANG['processmaker']['item']['case']['viewcasemap']='Zobrazit: mapa případu';
$LANG['processmaker']['item']['case']['viewcasehistory']='Zobrazit: historie případu';
$LANG['processmaker']['item']['case']['viewdynaforms']='Zobrazit: dynamické formuláře';
$LANG['processmaker']['item']['case']['viewcasechangeloghistory']='Zobrazit: záznam změn' ;
$LANG['processmaker']['item']['case']['casechangeloghistory']='Historie protokolu změn' ;
$LANG['processmaker']['item']['error'][11]="Chyba při vytváření případu!";
$LANG['processmaker']['item']['error'][14]="Není možné vytvořit případ: nemáte k tomu oprávnění!";
$LANG['processmaker']['item']['error'][100]= $LANG['processmaker']['item']['error'][11];
$LANG['processmaker']['item']['preventsolution'][1]="Případ je v běhu!";
$LANG['processmaker']['item']['preventsolution'][2]="Nejprve je třeba toto spravovat (viz panel „Proces případ“)
!";
$LANG['processmaker']['item']['task']['process']="Spojit s procesem: ";
$LANG['processmaker']['item']['task']['case']="Titulek případu: ";
$LANG['processmaker']['item']['task']['task']="Úkol: ";
$LANG['processmaker']['item']['task']['comment']="##processmaker.taskcomment##" ;
$LANG['processmaker']['item']['task']['manage']="##ticket.url##_PluginProcessmakerCase\$processmakercases" ;
$LANG['processmaker']['item']['task']['manage_text']= "" ; //"Process - Case tab";
$LANG['processmaker']['case']['statuses']['TO_DO'] = "Zpracovává se";
$LANG['processmaker']['case']['statuses']['CANCELLED'] = "Zrušeno";
$LANG['processmaker']['case']['statuses']['DRAFT'] = "Nové";
$LANG['processmaker']['case']['statuses']['COMPLETED'] = "Uzavřeno";
$LANG['processmaker']['search']['case']="Případ";
$LANG['processmaker']['search']['status']="Stav";
$LANG['processmaker']['search']['processtitle']="Titulek procesu";
$LANG['processmaker']['search']['casetitle']="Titulek případu";
$LANG['processmaker']['search']['hascase']="Probíhající případ?";
$LANG['processmaker']['cron']['pmusers']="Synchronizuje uživatele a skupiny z GLPI do ProcessMaker." ;
$LANG['processmaker']['cron']['pmtaskactions']="Pro uplatnění akcí úkolu mezi případy." ;
$LANG['processmaker']['cron']['pmorphancases']['description']="Čištění osiřelých případů." ;
$LANG['processmaker']['cron']['pmorphancases']['parameter']="Po kolik dnů ponechávat osiřelé případy";

548
locales/cs_CZ.po Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,122 +0,0 @@
<?php
$LANG['processmaker']['title'][1]="ProcessMaker";
$LANG['processmaker']['title'][2]="Process";
$LANG['processmaker']['title'][3]="Task List";
$LANG['processmaker']['title'][4]="Authorizations";
$LANG['processmaker']['title'][5]="Processes";
$LANG['processmaker']['title'][6]="Case-link";
$LANG['processmaker']['title'][7]="Case-links";
$LANG['processmaker']['profile']['rightmgt']="Rights Management";
$LANG['processmaker']['profile']['process_config']="Process configuration";
$LANG['processmaker']['profile']['case']="Cases";
$LANG['processmaker']['process']['process_guid']="Process GUID";
$LANG['processmaker']['process']['project_type_short']="Project type" ;
$LANG['processmaker']['process']['project_type']="Project type (to be changed if not up-to-date)" ;
$LANG['processmaker']['process']['project_type_bpmn']='BPMN';
$LANG['processmaker']['process']['project_type_classic']='Classic' ;
$LANG['processmaker']['process']['hide_case_num_title_short']="Hide case number and title";
$LANG['processmaker']['process']['hide_case_num_title']="Hide case number and title in task descriptions";
$LANG['processmaker']['process']['insert_task_comment_short']="Insert Task Category";
$LANG['processmaker']['process']['insert_task_comment']="Insert Task Category comments in Task Description";
$LANG['processmaker']['process']['type']="Ticket type (self-service)";
$LANG['processmaker']['process']['itilcategory']="ITIL Category (self-service)";
$LANG['processmaker']['process']['taskcategories']['guid']="Task GUID";
$LANG['processmaker']['process']['taskcategories']['name']="Task name";
$LANG['processmaker']['process']['taskcategories']['completename']="Complete name";
$LANG['processmaker']['process']['taskcategories']['is_start']="Start";
$LANG['processmaker']['process']['taskcategories']['comment']="Comment";
$LANG['processmaker']['process']['taskcategories']['is_active']="Active";
$LANG['processmaker']['process']['taskcategories']['is_subprocess']="Sub-process";
$LANG['processmaker']['process']['profile']="Delete permanently";
$LANG['processmaker']['config']['name']="Name";
$LANG['processmaker']['config']['setup']="ProcessMaker setup";
$LANG['processmaker']['config']['mysql']="SQL server setup";
$LANG['processmaker']['config']['URL']="Server URL (must be in same domain than GLPI)";
$LANG['processmaker']['config']['workspace']="Workspace Name";
$LANG['processmaker']['config']['admin']['user']="Server administrator name";
$LANG['processmaker']['config']['admin']['password']="Server administrator password";
$LANG['processmaker']['config']['theme']="Theme Name";
$LANG['processmaker']['config']['comments']="Comments";
$LANG['processmaker']['config']['refreshprocesslist']="Synchronize Process List";
$LANG['processmaker']['config']['refreshtasklist']="Synchronize Task List";
$LANG['processmaker']['config']['main_task_category']="Main Task Category (edit to change name)";
$LANG['processmaker']['config']['taskwriter']="Task Writer (edit to change name)";
$LANG['processmaker']['config']['pm_group_name']="Group in ProcessMaker which will contain all GLPI users";
$LANG['processmaker']['config']['maintenance']="Maintenance mode" ;
$LANG['processmaker']['config']['undermaintenance']="Under maintenance, please try again later." ;
$LANG['processmaker']['config']['empty_pm_group_name']="To select group, input ProcessMaker config first!";
$LANG['processmaker']['config']['test']="Test";
$LANG['processmaker']['config']['connectionstatus']="Connection status";
$LANG['processmaker']['config']['domain']="Common domain with GLPI";
$LANG['processmaker']['config']['domain-error']="None!";
$LANG['processmaker']['item']['tab']="Process - Case";
$LANG['processmaker']['item']['cancelledcase']="Status: Cancelled";
$LANG['processmaker']['item']['pausedtask']="Status: Task is paused - unpause it?";
$LANG['processmaker']['item']['completedcase']="Status: Completed";
$LANG['processmaker']['item']['nocase']="No case for this item!";
$LANG['processmaker']['item']['startone']="Start one?";
$LANG['processmaker']['item']['selectprocess']="Select the process you want to add:";
$LANG['processmaker']['item']['start']="Start";
$LANG['processmaker']['item']['unpause']="Unpause";
$LANG['processmaker']['item']['deletecase']="Delete case?" ;
$LANG['processmaker']['item']['buttondeletecase']="Delete" ;
$LANG['processmaker']['item']['reassigncase']="Re-assign task to:";
$LANG['processmaker']['item']['buttonreassigncase']="Re-assign";
$LANG['processmaker']['item']['cancelcase']="Cancel case?" ;
$LANG['processmaker']['item']['buttoncancelcase']="Cancel" ;
$LANG['processmaker']['item']['buttondeletecaseconfirmation']="Delete this case?" ;
$LANG['processmaker']['item']['buttoncancelcaseconfirmation']="Cancel this case?" ;
$LANG['processmaker']['item']['case']['deleted']="Case has been deleted!";
$LANG['processmaker']['item']['case']['errordeleted']="Unable to delete case!";
$LANG['processmaker']['item']['case']['cancelled']="Case has been cancelled!";
$LANG['processmaker']['item']['case']['errorcancelled']="Unable to cancel case!";
$LANG['processmaker']['item']['case']['notreassigned']="Error re-assigning task: ";
$LANG['processmaker']['item']['case']['assignedtoyou']="Task already assigned to this person!";
$LANG['processmaker']['item']['case']['reassigned']="Task re-assigned!";
$LANG['processmaker']['item']['case']['casemap']="Case map";
$LANG['processmaker']['item']['case']['casehistory']='Case history' ;
$LANG['processmaker']['item']['case']['dynaforms']='Dynaforms';
$LANG['processmaker']['item']['case']['changelog']='Change log';
$LANG['processmaker']['item']['case']['caseinfo']='Case';
$LANG['processmaker']['item']['case']['viewcasemap']='Map';
$LANG['processmaker']['item']['case']['viewcasehistory']='History';
$LANG['processmaker']['item']['case']['viewdynaforms']='Dynaforms';
$LANG['processmaker']['item']['case']['viewcasechangeloghistory']='Change log' ;
$LANG['processmaker']['item']['case']['casechangeloghistory']='Change log history' ;
$LANG['processmaker']['item']['error'][11]="Error creating case!";
$LANG['processmaker']['item']['error'][14]="Can't create case: no rights for it!";
$LANG['processmaker']['item']['error'][100]=$LANG['processmaker']['item']['error'][11];
$LANG['processmaker']['item']['preventsolution'][1]="A 'Case' is running!";
$LANG['processmaker']['item']['preventsolution'][2]="You must manage it first (see 'Process - Case' tab)!";
$LANG['processmaker']['item']['task']['process']="Bound to process: ";
$LANG['processmaker']['item']['task']['case']="Case title: ";
$LANG['processmaker']['item']['task']['task']="Task: ";
$LANG['processmaker']['item']['task']['comment']="##processmaker.taskcomment##" ;
$LANG['processmaker']['item']['task']['manage']="##processmakercase.url##" ;
$LANG['processmaker']['item']['task']['manage_text']= "" ; //"Process - Case tab";
$LANG['processmaker']['case']['statuses']['TO_DO'] = "To do";
$LANG['processmaker']['case']['statuses']['CANCELLED'] = "Cancelled";
$LANG['processmaker']['case']['statuses']['DRAFT'] = "Draft";
$LANG['processmaker']['case']['statuses']['COMPLETED'] = "Completed";
$LANG['processmaker']['search']['case']="Case";
$LANG['processmaker']['search']['status']="Status";
$LANG['processmaker']['search']['processtitle']="Process Title";
$LANG['processmaker']['search']['casetitle']="Case Title";
$LANG['processmaker']['search']['hascase']="Running Case?";
$LANG['processmaker']['cron']['pmusers']="Syncs GLPI users and groups into ProcessMaker." ;
$LANG['processmaker']['cron']['pmtaskactions']="To apply task actions between cases." ;
$LANG['processmaker']['cron']['pmorphancases']['description']="Cleaning of orphan cases." ;
$LANG['processmaker']['cron']['pmorphancases']['parameter']="Number of days to keep orphan cases";

547
locales/en_GB.po Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,122 +0,0 @@
<?php
$LANG['processmaker']['title'][1]="ProcessMaker";
$LANG['processmaker']['title'][2]="Processus";
$LANG['processmaker']['title'][3]="Liste des tâches";
$LANG['processmaker']['title'][4]="Autorisations";
$LANG['processmaker']['title'][5]="Processus";
$LANG['processmaker']['title'][6]="Lien-cas";
$LANG['processmaker']['title'][7]="Liens-cas";
$LANG['processmaker']['profile']['rightmgt']="Gestion des droits";
$LANG['processmaker']['profile']['process_config']="Configuration des Processus";
$LANG['processmaker']['profile']['case_delete']="Supprimer cas";
$LANG['processmaker']['process']['process_guid']="GUID du Processus";
$LANG['processmaker']['process']['project_type_short']="Type de projet" ;
$LANG['processmaker']['process']['project_type']="Type de projet (à modifier si pas à jour)" ;
$LANG['processmaker']['process']['project_type_bpmn']='BPMN' ;
$LANG['processmaker']['process']['project_type_classic']='Classique' ;
$LANG['processmaker']['process']['taskcategories']['guid']="GUID de la Tâche";
$LANG['processmaker']['process']['hide_case_num_title_short']="Masquer numéro et titre des Cas";
$LANG['processmaker']['process']['hide_case_num_title']="Masquer numéro et titre des Cas dans les descriptions des tâches";
$LANG['processmaker']['process']['insert_task_comment_short']="Insérer Catégories de Tâches";
$LANG['processmaker']['process']['insert_task_comment']="Insérer les commentaires des Catégories de Tâches dans les descriptions des Tâches";
$LANG['processmaker']['process']['type']="Type de ticket (self-service)";
$LANG['processmaker']['process']['itilcategory']="Catégorie ITIL (self-service)";
$LANG['processmaker']['process']['taskcategories']['name']="Nom de la Tâche";
$LANG['processmaker']['process']['taskcategories']['completename']="Nom complet";
$LANG['processmaker']['process']['taskcategories']['is_start']="Début";
$LANG['processmaker']['process']['taskcategories']['comment']="Commentaire";
$LANG['processmaker']['process']['taskcategories']['is_active']="Active";
$LANG['processmaker']['process']['taskcategories']['is_subprocess']="Sous-process";
$LANG['processmaker']['process']['profile']="Effacer définitivement";
$LANG['processmaker']['config']['name']="Nom";
$LANG['processmaker']['config']['setup']="Configuration du serveur ProcessMaker";
$LANG['processmaker']['config']['mysql']="Configuration du serveur SQL";
$LANG['processmaker']['config']['URL']="URL du serveur (doit être dans le même domaine que GLPI)";
$LANG['processmaker']['config']['workspace']="Nom du Workspace";
$LANG['processmaker']['config']['admin']['user']="Non de l'administreur du server ProcessMaker";
$LANG['processmaker']['config']['admin']['password']="Mot de passe de l'administrateur du serveur ProcessMaker";
$LANG['processmaker']['config']['theme']="Nom du Theme";
$LANG['processmaker']['config']['comments']="Commentaires";
$LANG['processmaker']['config']['refreshprocesslist']="Synchroniser la liste des processus";
$LANG['processmaker']['config']['refreshtasklist']="Synchroniser la liste des Tâches";
$LANG['processmaker']['config']['main_task_category']="Categorie principale des tâches (editer pour changer le nom)";
$LANG['processmaker']['config']['taskwriter']="Auteur des tâches (editer pour changer le nom)";
$LANG['processmaker']['config']['pm_group_name']="Groupe dans ProcessMaker qui contiendra les utilisateurs de GLPI";
$LANG['processmaker']['config']['maintenance']="Mode maintenance" ;
$LANG['processmaker']['config']['undermaintenance']="En maintenance, veuillez réessayer plus tard." ;
$LANG['processmaker']['config']['empty_pm_group_name']="Pour sélectionner un groupe, renseigner d'abord la config de ProcessMaker !";
$LANG['processmaker']['config']['test']="Test";
$LANG['processmaker']['config']['connectionstatus']="Status de la connexion";
$LANG['processmaker']['config']['domain']="Domaine utilisé";
$LANG['processmaker']['config']['domain-error']="Aucun !";
$LANG['processmaker']['item']['tab']="Processus - Cas";
$LANG['processmaker']['item']['cancelledcase']="Statut : Annulé";
$LANG['processmaker']['item']['pausedtask']="Statut : Tâche en pause - la relancer ?";
$LANG['processmaker']['item']['completedcase']="Statut : Terminé";
$LANG['processmaker']['item']['nocase']="Pas de cas en cours pour cet item!";
$LANG['processmaker']['item']['startone']="Démarrer un nouveau cas ?";
$LANG['processmaker']['item']['selectprocess']="Choisir le processus à démarrer :";
$LANG['processmaker']['item']['start']="Démarrer";
$LANG['processmaker']['item']['unpause']="Relancer";
$LANG['processmaker']['item']['deletecase']="Effacer cas ?" ;
$LANG['processmaker']['item']['buttondeletecase']="Effacer" ;
$LANG['processmaker']['item']['reassigncase']="Ré-affecter tâche à :";
$LANG['processmaker']['item']['buttonreassigncase']="Ré-affecter";
$LANG['processmaker']['item']['cancelcase']="Annuler cas ?" ;
$LANG['processmaker']['item']['buttoncancelcase']="Annuler" ;
$LANG['processmaker']['item']['buttondeletecaseconfirmation']="Effacer ce cas ?" ;
$LANG['processmaker']['item']['buttoncancelcaseconfirmation']="Annuler ce cas ?" ;
$LANG['processmaker']['item']['case']['deleted']="Le cas a été effacé !";
$LANG['processmaker']['item']['case']['errordeleted']="Impossible d'effacer le cas !";
$LANG['processmaker']['item']['case']['cancelled']="Le cas a été annulé !";
$LANG['processmaker']['item']['case']['errorcancelled']="Impossible d'annuler le cas !";
$LANG['processmaker']['item']['case']['notreassigned']="Impossible de re-assigner cette tâche : ";
$LANG['processmaker']['item']['case']['assignedtoyou']="Tâche déjà assignée à cette personne !";
$LANG['processmaker']['item']['case']['reassigned']="Tâche ré-assignée !";
$LANG['processmaker']['item']['case']['casemap']="Carte du cas";
$LANG['processmaker']['item']['case']['casehistory']='Historique du cas' ;
$LANG['processmaker']['item']['case']['dynaforms']='Dynaforms';
$LANG['processmaker']['item']['case']['changelog']='Historique des modifications';
$LANG['processmaker']['item']['case']['caseinfo']='Infos du cas';
$LANG['processmaker']['item']['case']['viewcasemap']='Voir: carte du cas';
$LANG['processmaker']['item']['case']['viewcasehistory']='Voir: historique du cas';
$LANG['processmaker']['item']['case']['viewdynaforms']='Voir: dynaforms';
$LANG['processmaker']['item']['case']['viewcasechangeloghistory']='Voir: historique évolutions' ;
$LANG['processmaker']['item']['case']['casechangeloghistory']='Historique évolutions' ;
$LANG['processmaker']['item']['error'][11]="Erreur à la création du cas !";
$LANG['processmaker']['item']['error'][14]="Impossible de créer le cas : pas de droits pour cela !";
$LANG['processmaker']['item']['error'][100]=$LANG['processmaker']['item']['error'][11];
$LANG['processmaker']['item']['preventsolution'][1]="Un 'Cas' est en cours !";
$LANG['processmaker']['item']['preventsolution'][2]="Vous devez d'abord le terminer (voir onglet 'Processus - Cas') !";
$LANG['processmaker']['item']['task']['process']="Lié au processus : ";
$LANG['processmaker']['item']['task']['case']="Titre du cas : ";
$LANG['processmaker']['item']['task']['task']="Tâche : ";
$LANG['processmaker']['item']['task']['comment']="##processmaker.taskcomment##" ;
$LANG['processmaker']['item']['task']['manage']="##processmakercase.url##" ;
$LANG['processmaker']['item']['task']['manage_text']=""; //"l'onglet Processus - Cas";
$LANG['processmaker']['case']['statuses']['TO_DO'] = "A faire";
$LANG['processmaker']['case']['statuses']['CANCELLED'] = "Annulé";
$LANG['processmaker']['case']['statuses']['DRAFT'] = "Brouillon";
$LANG['processmaker']['case']['statuses']['COMPLETED'] = "Achevé";
$LANG['processmaker']['search']['case']="Cas";
$LANG['processmaker']['search']['status']="Statut";
$LANG['processmaker']['search']['processtitle']="Nom du processus";
$LANG['processmaker']['search']['casetitle']="Titre du cas";
$LANG['processmaker']['search']['hascase']="Cas en cours ?";
$LANG['processmaker']['cron']['pmusers']="Synchro des utilisateurs GLPI et des groups avec ProcessMaker." ;
//$LANG['processmaker']['cron']['pmnotifications']="Notifications des tâches GLPI liées à des tâches de ProcessMaker." ;
$LANG['processmaker']['cron']['pmtaskactions']="Pour appliquer les actions de tâches entre cas." ;
$LANG['processmaker']['cron']['pmorphancases']['description']="Nettoyage des cas orphelins." ;
$LANG['processmaker']['cron']['pmorphancases']['parameter']="Nombre de jours avant nettoyage des cas orphelins.";

Some files were not shown because too many files have changed in this diff Show More