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' ) )) {

View File

@@ -20,7 +20,7 @@ class PluginProcessmakerCase extends CommonDBTM {
const CANCELLED = 'CANCELLED';
static function getTypeName($nb=0) {
return _n('Process case', 'Process cases', $nb);
return _n('Process case', 'Process cases', $nb, 'processmaker');
}
//static function canCreate() {
@@ -72,10 +72,9 @@ class PluginProcessmakerCase extends CommonDBTM {
* @return array os strings
*/
function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {
global $LANG;
if ($item->getType() == __CLASS__) {
// get tab name for a case itself
return [ __CLASS__ => __('Case')."<sup class='tab_nb'> ".$LANG['processmaker']['case']['statuses'][$item->fields['case_status']]."</sup>"];
return [ __CLASS__ => __('Case', 'processmaker')."<sup class='tab_nb'> ".self::getStatus($item->fields['case_status'])."</sup>"];
} else {
$items_id = $item->getID();
$itemtype = $item->getType();
@@ -323,12 +322,12 @@ class PluginProcessmakerCase extends CommonDBTM {
echo "<tr><th colspan=4>".__('Current task(s) properties', 'processmaker')."</th></tr>";
if (count($caseInfo->currentUsers) > 0) {
if (property_exists($caseInfo, 'currentUsers') && count($caseInfo->currentUsers) > 0) {
echo "<tr style='font-weight: bold;'>
<td>".__('Task', 'processmaker')."</td>
<td>".__('Task guid', 'processmaker')."</td>
<td>".__('Current user', 'processmaker')."</td>
<td>".__('Task delegation date', 'processmaker')."</td>
<th>".__('Task', 'processmaker')."</th>
<th>".__('Task guid', 'processmaker')."</th>
<th>".__('Current user', 'processmaker')."</th>
<th>".__('Task delegation date', 'processmaker')."</th>
</tr>";
foreach($caseInfo->currentUsers as $currentTask) {
@@ -354,6 +353,10 @@ class PluginProcessmakerCase extends CommonDBTM {
}
static private function localSortTasks ($a, $b) {
return $a->delIndex - $b->delIndex;
}
/**
* Summary of sortTasks
* @param mixed $tasks is the array of tasks from a getCaseInfo->currentUsers
@@ -362,10 +365,6 @@ class PluginProcessmakerCase extends CommonDBTM {
*/
public function sortTasks($tasks, $GLPICurrentPMUserId) {
function localSortTasks ($a, $b) {
return $a->delIndex - $b->delIndex;
};
$tbctasks = [];
$utasks = [];
$infotasks = [];
@@ -383,9 +382,9 @@ class PluginProcessmakerCase extends CommonDBTM {
// order task by "current user", then by "to be claimed", and then push to end "tasks assigned to another user"
// then by delindex ASC in these three parts
usort($utasks, 'localSortTasks');
usort($tbctasks, 'localSortTasks');
usort($infotasks, 'localSortTasks');
usort($utasks, 'self::localSortTasks');
usort($tbctasks, 'self::localSortTasks');
usort($infotasks, 'self::localSortTasks');
return array_merge($utasks, $tbctasks, $infotasks);
}
@@ -403,19 +402,16 @@ class PluginProcessmakerCase extends CommonDBTM {
echo "<table style='margin-bottom: 0px' class='tab_cadre_fixe'>";
echo "<tr><th colspan=2>".__('Case item', 'processmaker')."</th></tr>";
$itemtype = $case->fields['itemtype'];
$item = new $itemtype;
$item->getFromDB($case->fields['items_id']);
echo "<tr><td class='tab_bg_2' style='font-weight: bold;'>".$itemtype::getTypeName(1)."</td>";
// echo "<td class='tab_bg_2' >".$item->getID()."</td>";
echo "<td class='tab_bg_2'>".$item->getLink(['forceid' => 1])."</td></tr>";
echo "<tr><th colspan=12>".__('Case item', 'processmaker')." > ".$itemtype::getTypeName(1)."</th></tr>";
Ticket::commonListHeader(Search::HTML_OUTPUT);
$itemtype::showShort($case->fields['items_id']);
echo "</table>";
//echo "</div>";
// show case properties
$case->showCaseProperties();
@@ -435,7 +431,7 @@ class PluginProcessmakerCase extends CommonDBTM {
echo "<td class='tab_bg_2' >";
echo "<input type='hidden' name='action' value='cancel'>";
echo "<input type='hidden' name='cases_id' value='".$case->getID()."'>";
echo "<input onclick='return confirm(\"".__('Confirm cancellation?')."\");' type='submit' name='cancel' value='".__('Cancel')."' class='submit' >";
echo "<input onclick='return confirm(\"".__('Confirm cancellation?', 'processmaker')."\");' type='submit' name='cancel' value='".__('Cancel', 'processmaker')."' class='submit' >";
echo "</td></tr></table>";
Html::closeForm();
@@ -477,7 +473,7 @@ class PluginProcessmakerCase extends CommonDBTM {
* @param CommonITILObject $item
*/
static function showForItem(CommonITILObject $item) {
global $DB, $CFG_GLPI, $LANG;
global $DB, $CFG_GLPI;
$items_id = $item->getField('id');
$itemtype = $item->getType();
@@ -508,10 +504,10 @@ class PluginProcessmakerCase extends CommonDBTM {
}
}
$columns = array('pname' => 'Process',
'name' => 'Name',
'status' => 'Status',
'sub' => 'Subcase of'
$columns = array('pname' => __('Process', 'processmaker'),
'name' => __('Title', 'processmaker'),
'status' => __('Status', 'processmaker'),
'sub' => __('Subcase of', 'processmaker')
);
// check if item is not solved nor closed
@@ -526,10 +522,10 @@ class PluginProcessmakerCase extends CommonDBTM {
echo "<input type='hidden' name='itemtype' value='$itemtype'>";
echo "<table class='tab_cadre_fixe'>";
echo "<tr class='tab_bg_2'><th colspan='3'>".__('Add a new case')."</th></tr>";
echo "<tr class='tab_bg_2'><th colspan='3'>".__('Add a new case', 'processmaker')."</th></tr>";
echo "<tr class='tab_bg_2'><td class='tab_bg_2'>";
echo $LANG['processmaker']['item']['selectprocess']."&nbsp;";
_e('Select the process you want to add', 'processmaker');
echo "</td><td class='tab_bg_2'>";
PluginProcessmakerProcess::dropdown(array( 'value' => 0, 'entity' => $item->fields['entities_id'], 'name' => 'plugin_processmaker_processes_id', 'condition' => "is_active=1"));
echo "</td><td class='tab_bg_2'>";
@@ -632,7 +628,7 @@ class PluginProcessmakerCase extends CommonDBTM {
* @param mixed $withtemplate
*/
static function displayTabContentForItem(CommonGLPI $item, $tabnum=1, $withtemplate=0) {
global $LANG, $DB, $CFG_GLPI, $PM_SOAP;
global $PM_SOAP;
if ($item->getType() == __CLASS__) {
// we are in a case viewing the main tab
@@ -641,398 +637,16 @@ class PluginProcessmakerCase extends CommonDBTM {
} else {
// the idea is to show a list of cases attached to the $item ITIL object
// TODO give possibility to start a new case if needed
self::showForItem($item);
}
}
/**
* Summary of displayTabContentForItem
* @param CommonGLPI $item is the item
* @param mixed $tabnum is the tab num
* @param mixed $withtemplate has template
* @return mixed
*/
static function displayTabContentForItem_old(CommonGLPI $item, $tabnum=1, $withtemplate=0) {
global $LANG, $DB, $CFG_GLPI, $PM_SOAP;
$config = $PM_SOAP->config; //PluginProcessmakerConfig::getInstance();
if ($config->fields['maintenance'] == 0) {
$items_id = $item->getID();
$itemtype = $item->getType();
$rand = rand();
echo "<form style='margin-bottom: 0px' name='processmaker_form$rand' id='processmaker_form$rand' method='post' action='".Toolbox::getItemTypeFormURL("PluginProcessmakerProcessmaker")."'>";
echo "<div class='center'> <table id='processmakercasemenu' style='margin-bottom: 0px' class='tab_cadre_fixe'>";
echo Html::scriptBlock("$('#processmakercasemenu').css('max-width', 'none');");
echo "<tr><th colspan='4'>".$LANG['processmaker']['item']['tab']."</th></tr>";
$pmCaseUser = false; // initial value: no user
// first search for the case
$locCase = new self;
if ($locCase->getFromItem($itemtype, $items_id)) {
$GLPICurrentPMUserId=0;
$paramsURL='';
$caseInfo = $locCase->getCaseInfo();
if ($caseInfo->caseStatus != 'CANCELLED' && $caseInfo->caseStatus != 'COMPLETED') {
// need to get info on the thread of the GLPI current user
// we must retreive currentGLPI user from this array
$GLPICurrentPMUserId = PluginProcessmakerUser::getPMUserId(Session::getLoginUserID());
$pmCaseUser = $caseInfo->currentUsers[0]; // by default currently manage only one task at a time, must define tab management for several tasks
foreach ($caseInfo->currentUsers as $caseUser) {
if ($caseUser->userId == $GLPICurrentPMUserId) {
$pmCaseUser = $caseUser;
break;
}
}
}
$locDelIndex = 1; // by default
switch ($caseInfo->caseStatus) {
case "CANCELLED" :
echo "<tr><th colspan='4'>".$LANG['processmaker']['item']['cancelledcase']."</th></tr>";
$paramsURL = "DEL_INDEX=1";
// echo "<tr class='tab_bg_1' ><td id='GLPI-PM-DEL_INDEX' ><script>var GLPI_DEL_INDEX = 1; </script></td></tr>" ;
break;
case "DRAFT" :
case "TO_DO" :
$paramsURL = "DEL_INDEX=".$pmCaseUser->delIndex."&action=".$caseInfo->caseStatus;
$locDelIndex = $pmCaseUser->delIndex;
if ($pmCaseUser->userId != '') {
echo "<tr class='tab_bg_1'>";
if ($GLPICurrentPMUserId == $pmCaseUser->userId) {
// then propose a button to cancel case only when assigned user is == to glpi current user
echo "<td class='tab_bg_2' >";
echo $LANG['processmaker']['item']['cancelcase'];
echo "</td><td class='tab_bg_2'>";
echo "<input type='hidden' name='action' value='unpausecase_or_reassign_or_delete'>";
echo "<input type='hidden' name='cases_id' value='".$locCase->getID()."'>";
//echo "<input type='hidden' name='plugin_processmaker_cases_guid' value='".$caseInfo->caseId."'>";
//echo "<input type='hidden' name='plugin_processmaker_del_index' value='".$pmCaseUser->delIndex."'>";
//echo "<input type='hidden' name='plugin_processmaker_users_id' value='".$pmCaseUser->userId."'>";
echo "<input onclick='ret = confirm(\"".$LANG['processmaker']['item']['buttoncancelcaseconfirmation']."\") ; cancelMyMask = !ret ; return ret;' type='submit' name='cancel' value='".$LANG['processmaker']['item']['buttoncancelcase']."' class='submit'>";
echo "</td>";
}
if ($caseInfo->caseStatus == "DRAFT" || (plugin_processmaker_haveRight("case", DELETE) && $_SESSION['glpiactiveprofile']['interface'] == 'central')) {
// then propose a button to delete case
echo "<td class='tab_bg_2'>";
echo $LANG['processmaker']['item']['deletecase'];
echo "</td><td class='tab_bg_2'>";
echo "<input type='hidden' name='action' value='unpausecase_or_reassign_or_delete'>";
//echo "<input type='hidden' name='plugin_processmaker_cases_guid' value='".$caseInfo->caseId."'>";
echo "<input type='hidden' name='cases_id' value='".$locCase->getID()."'>";
echo "<input onclick='ret = confirm(\"".$LANG['processmaker']['item']['buttondeletecaseconfirmation']."\"); cancelMyMask = !ret ; return ret;' type='submit' name='delete' value='".$LANG['processmaker']['item']['buttondeletecase']."' class='submit' >";
echo "</td>";
}
echo "</form>";
echo "</td></tr>";
}
break;
case "COMPLETED" :
echo "<tr><th colspan='4'>".$LANG['processmaker']['item']['completedcase']."</th></tr>";
$paramsURL = "DEL_INDEX="; // DEL_INDEX is not set to tell PM to show the current task i.e.: the last one
break;
}
$proj = new PluginProcessmakerProcess;
$proj->getFromGUID( $caseInfo->processId );
$project_type = $proj->fields['project_type'];
echo "</table>";
echo "<script type='text/javascript' src='".$CFG_GLPI["root_doc"]."/plugins/processmaker/js/cases.js'></script>"; //?rand=$rand'
// processmakertabpaneltable is used to align the tabs
echo "<table id=processmakertabpaneltable style='margin-bottom: 0px; width:100%;' class='tab_cadre_fixe'>";
echo Html::scriptBlock("$('#processmakertabpaneltable').css('max-width', 'none');");
echo "<tr><td>";
//////////////////////////
// Processmaker tab panels
// need to have a global variable which contains tab id
// used only one time for activated panel
//////////////////////////
$arrayProcessmakerTabPanel = array();
echo "<div id=processmakertabpanel >";
//////////////
// Define tabs
//////////////
echo " <ul>";
//echo " <li><a href='#tabs-1'>Nunc tincidunt</a></li>";
//$arrayProcessmakerTabPanel[] = "tabs-1";
$arrayProcessmakerTabPanel = [];
if ($pmCaseUser) {
foreach ($caseInfo->currentUsers as $caseUser) {
$title = $LANG['processmaker']['item']['task']['task'].$caseUser->taskName;
echo "<li><a href='#task-".$caseUser->delIndex."' title='$title'>". ($caseUser->userId != $GLPICurrentPMUserId ? "<i><sub>$title</sub></i>" : $title) ."</a></li>";
$arrayProcessmakerTabPanel[] = "task-".$caseUser->delIndex;
}
} else {
// no user means CANCELLED or COMPLETED
// then create artificial panel to host case infos
echo "<li><a href='#caseInfo' title='".$LANG['processmaker']['item']['case']['caseinfo']."'>".$LANG['processmaker']['item']['case']['caseinfo']."</a></li>";
$arrayProcessmakerTabPanel[] = "caseInfo";
}
// add default panels: map, history, log and dynaforms
$defaultTabs = ['caseMap' => 'viewcasemap', 'caseHistory' => 'viewcasehistory', 'caseChangeLogHistory' => 'viewcasechangeloghistory', 'historyDynaformPage' => 'viewdynaforms' ];
foreach ($defaultTabs as $tab => $tabText) {
echo "<li><a href='#$tab' onclick=\"javascript:Actions.tabFrame('$tab');return false;\" title='".$LANG['processmaker']['item']['case'][$tabText]."'>".$LANG['processmaker']['item']['case'][$tabText]."</a></li>";
}
echo "</ul>";
////////////////
// Define panels
////////////////
if ($pmCaseUser) {
$csrf = Session::getNewCSRFToken();
foreach ($caseInfo->currentUsers as $caseUser) {
// for each task, if task is to be claimed, we need to verify that current user can claim it by checking if he/she is in the group assigned to the task
$hide_claim_button=false; // by default
if (!$caseUser->userId) {
// current task is to claimed
// get task user list
$query = "SELECT items_id, itemtype FROM glpi_plugin_processmaker_tasks WHERE plugin_processmaker_cases_id = '".$locCase->getID()."' AND del_index =".$caseUser->delIndex;
foreach ($DB->request($query) as $row) {
// normally there is only one task
$task = getItemForItemtype( $row['itemtype'] );
$task->getFromDB( $row['items_id'] );
// check if this group can be found in the current user's groups
if (!isset($_SESSION['glpigroups']) || !in_array( $task->fields['groups_id_tech'], $_SESSION['glpigroups'] )) {
$hide_claim_button=true;
}
}
}
echo "<div id='task-".$caseUser->delIndex."'>";
// to load users for task re-assign only when task is not to be 'claimed'
if ($caseUser->userId) {
echo "<div class='tab_bg_2' id='divUsers-".$caseUser->delIndex."' >Loading...</div>";
echo "<script>$('#divUsers-".$caseUser->delIndex."').load( '".$CFG_GLPI["root_doc"]."/plugins/processmaker/ajax/task_users.php?cases_id=".$locCase->getID()."&items_id=".$items_id."&itemtype=".$itemtype."&users_id=".PluginProcessmakerUser::getGLPIUserId($caseUser->userId)."&taskGuid=".$caseUser->taskId."&delIndex=".$caseUser->delIndex."&delThread=".$caseUser->delThread."&rand=$rand' ); </script>";
}
echo "<iframe id='caseiframe-task-".$caseUser->delIndex."' onload='onTaskFrameLoad( event, ".$caseUser->delIndex.", ".($hide_claim_button?"true":"false").", \"$csrf\" );' style='border:none;' class='tab_bg_2' width='100%' src='";
echo $PM_SOAP->serverURL."/cases/cases_Open?sid=".$PM_SOAP->getPMSessionID()."&APP_UID=".$caseInfo->caseId."&DEL_INDEX=".$caseUser->delIndex."&action=TO_DO";
echo "&rand=$rand&glpi_domain={$config->fields['domain']}'></iframe></div>";
}
} else {
// no user means CANCELLED or COMPLETED
// then create artificial panel to host case infos
echo "<div id='caseInfo'>";
$url = $PM_SOAP->serverURL."/cases/cases_Open?sid=".$PM_SOAP->getPMSessionID()."&APP_UID=".$caseInfo->caseId."&".$paramsURL."&action=TO_DO";
echo "<iframe id=\"caseiframe-caseInfo\" onload=\"onOtherFrameLoad( 'caseInfo', 'caseiframe-caseInfo', 'body' );\" style=\"border:none;\" class=\"tab_bg_2\" width=\"100%\" src=\"$url&rand=$rand&glpi_domain={$config->fields['domain']}\"></iframe></div>";
}
// default panels
// map, history, log and dynaforms
// will be added dynamically by the addTabPanel function
echo "</div>";
// end of tabs/panels
echo "</td></tr>";
echo "<tr class='tab_bg_1' ><td colspan=4 >";
if ($pmCaseUser) {
$activePanel = 'task-'.$pmCaseUser->delIndex;
} else {
$activePanel = 'caseInfo';
}
$caseMapUrl = $PM_SOAP->serverURL.($project_type=='bpmn' ? "/designer?prj_uid=".$caseInfo->processId."&prj_readonly=true&app_uid=".$caseInfo->caseId : "/cases/ajaxListener?action=processMap&rand=$rand")."&glpi_domain={$config->fields['domain']}";
echo "<script>
function addTabPanel( name, title, html ){
//debugger ;
if( !$('#processmakertabpanel')[0].children[name] ) { // panel is not yet existing, create one
//var num_tabs = $('#processmakertabpanel ul li').length ;
if( $('#processmakertabpanel a[href=\"#'+name+'\"]').length == 0 ) {
$('#processmakertabpanel ul').append( '<li><a href=\'#' + name + '\'>' + title + '</a></li>' );
}
//debugger ;
$('#processmakertabpanel').append( '<div id=\'' + name + '\'>' + html + '</div>');
$('#processmakertabpanel').tabs('refresh'); // to show the panel
}
var tabIndex = $('#processmakertabpanel a[href=\"#'+name+'\"]').parent().index();
$('#processmakertabpanel').tabs( 'option', 'active', tabIndex) ; // to activate it
//$('#processmakertabpanel').tabs( 'option', 'collapsible', true );
}
var historyGridListChangeLogGlobal = { viewIdHistory: '', viewIdDin: '', viewDynaformName: '', idHistory: '' } ;
var ActionTabFrameGlobal = { tabData: '', tabName: '', tabTitle: '' } ;
var Actions = { tabFrame: function( actionToDo ) {
// debugger ;
if( actionToDo == 'caseMap' ) {
addTabPanel( actionToDo,
'".$LANG['processmaker']['item']['case']['casemap']."',
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"body\", ".($project_type=='bpmn' ? "true" : "false" )." );\' width=\'100%\' src=\'$caseMapUrl\' ></iframe>'
);
} else
if( actionToDo == 'caseHistory' ) {
addTabPanel( actionToDo,
'".$LANG['processmaker']['item']['case']['casehistory']."',
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"body\", 0 );\' height=\'600px\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/ajaxListener?action=caseHistory&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
} else
if( actionToDo == 'caseChangeLogHistory' ) {
addTabPanel( actionToDo,
'".$LANG['processmaker']['item']['case']['casechangeloghistory']."',
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"body\", 0 );\' height=\'600px\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/ajaxListener?action=changeLogHistory&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
} else
if( actionToDo == 'dynaformViewFromHistory' ) {
actionToDo = 'dynaformChangeLogViewHistory_' + historyGridListChangeLogGlobal.viewIdDin + historyGridListChangeLogGlobal.dynDate.replace(/ /g, '_').replace(/:/g, '-') ;
ajaxResponse = $.parseJSON(historyGridListChangeLogGlobal.viewDynaformName);
addTabPanel( actionToDo,
ajaxResponse.dynTitle + ' <sup>(' + historyGridListChangeLogGlobal.dynDate + ')</sup>',
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"body\", 0 );\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/ajaxListener?action=dynaformViewFromHistory&DYN_UID=' + historyGridListChangeLogGlobal.viewIdDin + \"&HISTORY_ID=\" + historyGridListChangeLogGlobal.viewIdHistory + '&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
} else
if( actionToDo == 'historyDynaformPage' ) {
addTabPanel( actionToDo,
'".$LANG['processmaker']['item']['case']['dynaforms']."',
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"body\", 0 );\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/casesHistoryDynaformPage_Ajax?actionAjax=historyDynaformPage&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
} else
if( actionToDo.search( '^changeLog' ) == 0 ) {
actionToDo = 'changeLog' ;
addTabPanel( actionToDo,
'".$LANG['processmaker']['item']['case']['changelog']."',
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"body\", 0 );\' height=\'600px\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/ajaxListener?action=changeLogTab&idHistory=' + historyGridListChangeLogGlobal.idHistory + '&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
} else
if( actionToDo.search( '^historyDynaformGridPreview' ) == 0 ) {
actionToDo = actionToDo.replace('_', '$') ;
var act = actionToDo.replace( '$', '&DYN_UID=') ;
addTabPanel( actionToDo,
ActionTabFrameGlobal.tabTitle,
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"form\", 0 );\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/casesHistoryDynaformPage_Ajax?actionAjax=' + act + '&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
} else
if( actionToDo.search( '^historyDynaformGridHistory' ) == 0) {
var ajaxResponse = $.parseJSON(ActionTabFrameGlobal.tabData);
var act = 'showDynaformListHistory&PRO_UID=' + ajaxResponse.PRO_UID + '&APP_UID=' + ajaxResponse.APP_UID + '&TAS_UID=-1&DYN_UID=' + ajaxResponse.DYN_UID;
addTabPanel( actionToDo,
ActionTabFrameGlobal.tabTitle,
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"body\", 0 );\' height=\'600px\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/casesHistoryDynaformPage_Ajax?actionAjax=' + act + '&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
} else
if( actionToDo.search( '^dynaformChangeLogViewHistory' ) == 0) {
var ajaxResponse = $.parseJSON(ActionTabFrameGlobal.tabData);
actionToDo='dynaformChangeLogViewHistory' + ajaxResponse.dynUID + ajaxResponse.dynDate ;
//actionToDo = actionToDo.replace(' ', '_').replace(':', '-');
var act = 'dynaformChangeLogViewHistory&DYN_UID=' + ajaxResponse.dynUID + '&HISTORY_ID=' + ajaxResponse.tablename;
addTabPanel( actionToDo,
ActionTabFrameGlobal.tabTitle,
'<iframe id=\'caseiframe-' + actionToDo + '\' style=\'border: none;\' onload=\'onOtherFrameLoad( \"'+actionToDo+'\", \"caseiframe-' + actionToDo + '\", \"form\", 0 );\' width=\'100%\' src=\'".$PM_SOAP->serverURL."/cases/casesHistoryDynaformPage_Ajax?actionAjax=' + act + '&rand=$rand&glpi_domain={$config->fields['domain']}\' ></iframe>'
);
}
}
} ;
$(function() {
//debugger;
$('#processmakertabpanel').tabs( {active: ".array_search( $activePanel, $arrayProcessmakerTabPanel )."});
//$('#processmakertabpanel').scrollabletabs();
//$('#processmakertabpanel').position({
// my: 'left top',
// at: 'left top',
// of: '#processmakertabpaneltable'
//});
$('#processmakertabpanel').removeClass( 'ui-tabs' ) ;
//debugger ;
$('#processmakertabpanel').tabs({activate: function (event, ui) {
try {
//debugger;
if( typeof onOtherFrameLoad == 'function' )
var newPanel = ui.newPanel.selector.replace('#', '') ;
var panelType = newPanel.split( '-' )[ 0 ].split( '$' )[ 0 ].split( '_' ) ;
var searchTag = '' ;
switch( panelType[0] ) {
case 'task' :
searchTag = 'table' ;
break ;
case 'historyDynaformGridPreview' :
case 'dynaformChangeLogViewHistory' :
searchTag = 'form' ;
break ;
case 'caseInfo' :
case 'caseMap' :
case 'caseHistory' :
case 'changeLog' :
case 'historyDynaformPage' :
case 'dynaformChangeLogViewHistory' :
case 'historyDynaformGridHistory' :
default :
searchTag = 'body' ;
break ;
}
onOtherFrameLoad( newPanel, 'caseiframe-' + newPanel, searchTag, ".($project_type=='bpmn' ? "true" : "false" )." ) ;
} catch( evt ) {
//debugger;
}
}
});
";
echo "});
";
echo "</script>";
echo "</td></tr>";
// show the list of cases attached to the $item ITIL object
if (!$PM_SOAP->config->fields['maintenance']) {
self::showForItem($item);
} else {
//********************************
// no running case for this ticket
// propose to start one
//********************************
echo "<tr><th colspan='4'>".$LANG['processmaker']['item']['nocase'];
// check if item is not solved nor closed
if ($item->fields['status'] != 'solved' && $item->fields['status'] != 'closed' && $_SESSION['glpiactiveprofile']['interface'] != 'helpdesk') {
// propose case start
echo "&nbsp;-&nbsp;".$LANG['processmaker']['item']['startone'];
echo "</th></tr>";
echo "<tr class='tab_bg_2'><td class='tab_bg_2' colspan='1'>";
echo $LANG['processmaker']['item']['selectprocess']."&nbsp;";
echo "<input type='hidden' name='action' value='newcase'>";
echo "<input type='hidden' name='items_id' value='$items_id'>";
echo "<input type='hidden' name='itemtype' value='$itemtype'>";
PluginProcessmakerProcess::dropdown(array( 'value' => 0, 'entity' => $item->fields['entities_id'], 'name' => 'plugin_processmaker_processes_id', 'condition' => "is_active=1"));
echo "</td><td class='tab_bg_2'>";
echo "<input type='submit' name='additem' value='".$LANG['processmaker']['item']['start']."' class='submit'>";
echo "</td></tr>";
} else {
echo "</th></tr>";
}
PluginProcessmakerProcessmaker::showUnderMaintenance();
}
echo "</table>";
Html::closeForm(true );
//echo "</form>";
} else {
// under maintenance
echo $LANG['processmaker']['config']['undermaintenance'];
}
return true;
}
/**
* Summary of deleteTasks
* will delete all tasks associated with this case from the item
@@ -1053,22 +667,22 @@ class PluginProcessmakerCase extends CommonDBTM {
}
/**
* Summary of deleteCase
* will delete case and all tasks associated with this case from the item
* @return true if case and tasks have been deleted from associated item and from case table
*/
/**
* Summary of deleteCase
* will delete case and all tasks associated with this case from the item
* @return true if case and tasks have been deleted from associated item and from case table
*/
function deleteCase( ) {
return $this->delete(['id' => $this->getID()]);
}
/**
* Summary of cancelTasks
* will mark as information all to_do tasks
* BEWARE that this will only be done when case is in TO_DO status
* @return true if tasks have been deleted from associated item and from case table
*/
/**
* Summary of cancelTasks
* will mark as information all to_do tasks
* BEWARE that this will only be done when case is in TO_DO status
* @return true if tasks have been deleted from associated item and from case table
*/
private function cancelTasks( ) {
global $DB;
$ret = false;
@@ -1117,7 +731,7 @@ class PluginProcessmakerCase extends CommonDBTM {
if ($myCase->getFromItem( $item['item']->getType(), $item['item']->getID() )) {
$pmVar = $myCase->getVariables(['GLPI_ITEM_CAN_BE_SOLVED']);
// TODO also manage sub-cases
if ($myCase->fields['case_status'] != 'COMPLETED' && $myCase->fields['case_status'] != 'CANCELLED' && (!isset($pmVar['GLPI_ITEM_CAN_BE_SOLVED']) || $pmVar['GLPI_ITEM_CAN_BE_SOLVED'] != 1)) {
if ($myCase->fields['case_status'] != self::COMPLETED && $myCase->fields['case_status'] != self::CANCELLED && (!isset($pmVar['GLPI_ITEM_CAN_BE_SOLVED']) || $pmVar['GLPI_ITEM_CAN_BE_SOLVED'] != 1)) {
// then item can't be solved
return false;
}
@@ -1185,9 +799,14 @@ class PluginProcessmakerCase extends CommonDBTM {
return $menu;
}
/**
* Summary of getSpecificValueToDisplay
* @param mixed $field
* @param mixed $values
* @param array $options
* @return mixed
*/
static function getSpecificValueToDisplay($field, $values, array $options=array()) {
global $LANG;
if (!is_array($values)) {
$values = array($field => $values);
}
@@ -1217,7 +836,7 @@ class PluginProcessmakerCase extends CommonDBTM {
}
case 'case_status':
return $LANG['processmaker']['case']['statuses'][$values['case_status']];
return self::getStatus($values['case_status']);
default:
return parent::getSpecificValueToDisplay($field, $values, $options);
@@ -1277,18 +896,11 @@ class PluginProcessmakerCase extends CommonDBTM {
static function getAllStatusArray($withmetaforsearch=false) {
$tab = array(self::DRAFT => _x('case_status', 'Draft'),
self::TO_DO => _x('case_status', 'To do'),
self::COMPLETED => _x('case_status', 'Completed'),
self::CANCELLED => _x('case_status', 'Cancelled'));
$tab = array(self::DRAFT => _x('case_status', 'Draft', 'processmaker'),
self::TO_DO => _x('case_status', 'To do', 'processmaker'),
self::COMPLETED => _x('case_status', 'Completed', 'processmaker'),
self::CANCELLED => _x('case_status', 'Cancelled', 'processmaker'));
//if ($withmetaforsearch) {
// $tab['notold'] = _x('status', 'Not solved');
// $tab['notclosed'] = _x('status', 'Not closed');
// $tab['process'] = __('Processing');
// $tab['old'] = _x('status', 'Solved + Closed');
// $tab['all'] = __('All');
//}
return $tab;
}
@@ -1305,11 +917,9 @@ class PluginProcessmakerCase extends CommonDBTM {
* @return mixed
*/
function getSearchOptions() {
global $LANG;
$tab = array();
$tab['common'] = __('Process cases', 'processmaker'); //$LANG['processmaker']['title'][1];
$tab['common'] = __('Process cases', 'processmaker');
$tab[1]['table'] = self::getTable();
$tab[1]['field'] = 'id';
@@ -1365,13 +975,12 @@ class PluginProcessmakerCase extends CommonDBTM {
$tab[14]['datatype'] = 'itemlink';
$tab[14]['massiveaction'] = false;
return $tab;
}
function showForm ($ID, $options=array('candel'=>false)) {
global $DB, $CFG_GLPI, $LANG;
//global $DB, $CFG_GLPI, $LANG;
$options['candel'] = true;
@@ -1449,6 +1058,12 @@ class PluginProcessmakerCase extends CommonDBTM {
}
/**
* Summary of defineTabs
* @param mixed $options
* @return array
*/
function defineTabs($options=array()) {
// $ong = array('empty' => $this->getTypeName(1));
@@ -1467,11 +1082,6 @@ class PluginProcessmakerCase extends CommonDBTM {
$this->addStandardTab('PluginProcessmakerCasedynaform', $ong, $options);
//$this->addStandardTab('Ticket', $ong, $options);
//$this->addStandardTab('Log', $ong, $options);
//TODO we are going to add tabs like tasks, map, history, dynaform...
return $ong;
}

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
View File

@@ -0,0 +1,548 @@
msgid ""
msgstr ""
"Project-Id-Version: processmaker-plugin\n"
"POT-Creation-Date: 2018-08-02 14:42+0200\n"
"PO-Revision-Date: 2018-08-02 16:54+0200\n"
"Last-Translator: tomolimo\n"
"Language-Team: Czech\n"
"Language: cs_CZ\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.1.1\n"
"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 3;\n"
"X-Poedit-KeywordsList: ;__:1,2t;_e:1,2t;_x:1c,2,3t;_n:1,2,4t;__s:1,2t;_ex:1c,2,3t;_sx:1c,2,3t;_nx:1c,2,3,5t\n"
"X-Crowdin-Project: processmaker-plugin\n"
"X-Crowdin-Language: cs\n"
"X-Crowdin-File: /3.3.0/source.po\n"
"X-Poedit-SearchPath-0: ajax\n"
"X-Poedit-SearchPath-1: front\n"
"X-Poedit-SearchPath-2: inc\n"
"X-Poedit-SearchPath-3: install\n"
"X-Poedit-SearchPath-4: js\n"
"X-Poedit-SearchPath-5: hook.php\n"
"X-Poedit-SearchPath-6: setup.php\n"
#: ajax/task_users.php:25
msgid "Re-assign task to"
msgstr "Znovu přiřadit úkol"
#: ajax/task_users.php:45
msgid "Re-assign"
msgstr "Znovu přiřadit"
#: front/case.form.php:35
msgid "Case has been deleted!"
msgstr "Případ byl smazán!"
#: front/case.form.php:37
msgid "Unable to delete case!"
msgstr "Případ se nedaří smazat!"
#: front/case.form.php:50
msgid "Case has been cancelled!"
msgstr "Případ byl zrušen!"
#: front/case.form.php:52 front/case.form.php:55
msgid "Unable to cancel case!"
msgstr "Případ se nedaří zrušit!"
#: front/case.form.php:76 front/case.form.php:78 inc/case.class.php:922
msgid "Process cases"
msgstr ""
#: front/case.php:5 front/caselink.form.php:27 front/caselink.php:5
#: front/process.form.php:25 front/process.php:5 inc/caselink.class.php:143
#: inc/config.class.php:50 inc/config.class.php:347 inc/process.class.php:393
#: inc/profile.class.php:52 inc/profile.class.php:83
msgid "ProcessMaker"
msgstr "ProcessMaker"
#: front/case.php:14 inc/case.class.php:644
msgid "ProcessMaker plugin is under maintenance, please retry later, thank you."
msgstr ""
#: front/processmaker.form.php:85
msgid "Task re-assigned!"
msgstr "Úkol znovu přiřazen!"
#: front/processmaker.form.php:87
msgid "Error re-assigning task: "
msgstr "Chyba při opětovném přiřazování úkolu: "
#: front/processmaker.form.php:90
msgid "Task already assigned to this person!"
msgstr "Úkol už je této osobě přiřazen!"
#: front/processmaker.helpdesk.form.php:21
msgid "Process - Case"
msgstr "Proces případ"
#: front/processmaker.helpdesk.form.php:24 inc/case.class.php:528
msgid "Select the process you want to add"
msgstr "Vyberte proces který chcete spustit"
#: hook.php:31 inc/taskcategory.class.php:98
msgid "Synchronize Task List"
msgstr "Synchronizovat seznam úkolů"
#: hook.php:158 inc/case.class.php:77
msgid "Case"
msgstr "Případ"
#: hook.php:158 inc/case.class.php:509 inc/case.class.php:966
msgid "Status"
msgstr "Stav"
#: inc/case.class.php:23 inc/case.class.php:85 inc/case.class.php:87
msgid "Process case"
msgid_plural "Process cases"
msgstr[0] "Process case"
msgstr[1] "Process cases"
msgstr[2] ""
msgstr[3] ""
#: inc/case.class.php:285
msgid "Case properties"
msgstr ""
#: inc/case.class.php:287 inc/case.class.php:507 inc/case.class.php:940
#: inc/process.class.php:524
msgid "Process"
msgstr "Proces"
#: inc/case.class.php:290
msgid "Case title"
msgstr ""
#: inc/case.class.php:293
msgid "Case number"
msgstr ""
#: inc/case.class.php:296
msgid "Case status"
msgstr ""
#: inc/case.class.php:299
msgid "Case guid"
msgstr ""
#: inc/case.class.php:302
msgid "Creator"
msgstr ""
#: inc/case.class.php:305
msgid "Creation date"
msgstr ""
#: inc/case.class.php:308
msgid "Last update"
msgstr ""
#: inc/case.class.php:323
msgid "Current task(s) properties"
msgstr ""
#: inc/case.class.php:327
msgid "Task"
msgstr ""
#: inc/case.class.php:328
msgid "Task guid"
msgstr ""
#: inc/case.class.php:329
msgid "Current user"
msgstr ""
#: inc/case.class.php:330
msgid "Task delegation date"
msgstr ""
#: inc/case.class.php:338
msgid "To be claimed"
msgstr ""
#: inc/case.class.php:407
msgid "Case item"
msgstr ""
#: inc/case.class.php:429
msgid "Case cancellation"
msgstr ""
#: inc/case.class.php:430
msgid "Cancel case"
msgstr ""
#: inc/case.class.php:434
msgid "Confirm cancellation?"
msgstr ""
#: inc/case.class.php:434 inc/profile.class.php:23
msgid "Cancel"
msgstr "Storno"
#: inc/case.class.php:455
msgid "Case deletion"
msgstr ""
#: inc/case.class.php:456
msgid "Delete case"
msgstr ""
#: inc/case.class.php:508 inc/case.class.php:933
msgid "Title"
msgstr ""
#: inc/case.class.php:510 inc/case.class.php:974
msgid "Subcase of"
msgstr ""
#: inc/case.class.php:525
msgid "Add a new case"
msgstr ""
#: inc/case.class.php:899
msgctxt "case_status"
msgid "Draft"
msgstr "Koncept"
#: inc/case.class.php:900
msgctxt "case_status"
msgid "To do"
msgstr "Dodělat"
#: inc/case.class.php:901
msgctxt "case_status"
msgid "Completed"
msgstr "Dokončeno"
#: inc/case.class.php:902
msgctxt "case_status"
msgid "Cancelled"
msgstr "Zrušeno"
#: inc/case.class.php:926
msgid "ID"
msgstr ""
#: inc/case.class.php:953
msgid "Item"
msgstr ""
#: inc/case.class.php:960
msgid "Item entity"
msgstr ""
#: inc/casechangelog.class.php:35
msgid "Change log"
msgstr "Zobrazit: záznam změn"
#: inc/casedynaform.class.php:80
msgid "Dynaforms"
msgstr "Zobrazit: dynamické formuláře"
#: inc/casehistory.class.php:35
msgid "History"
msgstr "Zobrazit: historie případu"
#: inc/caselink.class.php:51
msgid "Case-links"
msgstr "Propojení případů"
#: inc/caselink.class.php:53
msgid "Case-link"
msgstr "Propojení případu"
#: inc/caselink.class.php:75 inc/caselink.class.php:165
msgid "External data"
msgstr ""
#: inc/caselink.class.php:80 inc/caselink.class.php:171
msgid "Self"
msgstr ""
#: inc/caselink.class.php:85 inc/caselink.class.php:189
msgid "Source task GUID"
msgstr ""
#: inc/caselink.class.php:93 inc/caselink.class.php:195
msgid "Target task GUID"
msgstr ""
#: inc/caselink.class.php:101 inc/caselink.class.php:207
msgid "Target process GUID"
msgstr ""
#: inc/caselink.class.php:110 inc/caselink.class.php:201
msgid "Target dynaform GUID"
msgstr ""
#: inc/caselink.class.php:115 inc/caselink.class.php:213
msgid "Source condition"
msgstr ""
#: inc/caselink.class.php:121 inc/caselink.class.php:177
msgid "Claim target task"
msgstr ""
#: inc/caselink.class.php:126 inc/caselink.class.php:183
msgid "External application JSON config"
msgstr ""
#: inc/casemap.class.php:43
msgid "Map"
msgstr "Zobrazit: mapa případu"
#: inc/config.class.php:41
msgid "ProcessMaker setup"
msgstr "Nastavení ProcessMaker"
#: inc/config.class.php:156
msgid "Server URL (must be in same domain than GLPI)"
msgstr "URL adresa serveru (je třeba, aby byla ze stejné domény jako GLPI)"
#: inc/config.class.php:161
msgid "Common domain with GLPI"
msgstr "Společná doména s GLPI"
#: inc/config.class.php:190
msgid "None!"
msgstr "Žádná!"
#: inc/config.class.php:199
msgid "Workspace Name"
msgstr "Název pracovního prostoru"
#: inc/config.class.php:204
msgid "Server administrator name"
msgstr "Uživatelské jméno správce serveru"
#: inc/config.class.php:209
msgid "Server administrator password"
msgstr "Heslo správce serveru"
#: inc/config.class.php:215 inc/config.class.php:255
msgid "Connection status"
msgstr "Stav spojení"
#: inc/config.class.php:231
msgid "SQL server setup"
msgstr "Nastavení SQL serveru"
#: inc/config.class.php:234
msgid "SQL server (MariaDB or MySQL)"
msgstr ""
#: inc/config.class.php:239
msgid "Database name"
msgstr ""
#: inc/config.class.php:244
msgid "SQL user"
msgstr ""
#: inc/config.class.php:249
msgid "SQL password"
msgstr ""
#: inc/config.class.php:266
msgid "Theme Name"
msgstr "Název motivu vzhledu"
#: inc/config.class.php:272
msgid "Main Task Category (edit to change name)"
msgstr "Hlavní kategorie úkolu (pro změnu názvu upravte)"
#: inc/config.class.php:279
msgid "Task Writer (edit to change name)"
msgstr "Úkol zapsal (pro změnu jména upravte)"
#: inc/config.class.php:299
msgid "Group in ProcessMaker which will contain all GLPI users"
msgstr "Skupina v ProcessMaker která bude obsahovat všechny uživatele z GLPI"
#: inc/config.class.php:323
msgid "Processmaker system information"
msgstr ""
#: inc/config.class.php:327 inc/config.class.php:337
msgid "Version"
msgstr ""
#: inc/config.class.php:328
msgid "Web server"
msgstr ""
#: inc/config.class.php:329
msgid "Server name"
msgstr ""
#: inc/config.class.php:330
msgid "PHP version"
msgstr ""
#: inc/config.class.php:331
msgid "DB version"
msgstr ""
#: inc/config.class.php:332
msgid "DB server IP"
msgstr ""
#: inc/config.class.php:333
msgid "DB name"
msgstr ""
#: inc/config.class.php:334
msgid "User browser"
msgstr ""
#: inc/config.class.php:335
msgid "User IP"
msgstr ""
#: inc/config.class.php:337
msgid "Not yet!"
msgstr ""
#: inc/process.class.php:350
msgid "Synchronize Process List"
msgstr "Synchronizovat seznam procesů"
#: inc/process.class.php:427 inc/process.class.php:565
msgid "Process GUID"
msgstr "Nikde se neopakující identifikátor procesu"
#: inc/process.class.php:433
msgid "Project type"
msgstr "Typ projektu"
#: inc/process.class.php:439
msgid "Hide case number and title"
msgstr "Skrýt číslo a titulek případu"
#: inc/process.class.php:445
msgid "Insert Task Category"
msgstr "Vložit kategorii úkolu"
#: inc/process.class.php:457 inc/process.class.php:585
msgid "Ticket type (self-service)"
msgstr "Typ požadavku (samoobslužné)"
#: inc/process.class.php:495
msgctxt "process_type"
msgid "Classic"
msgstr "Klasický"
#: inc/process.class.php:496
msgctxt "process_type"
msgid "BPMN"
msgstr "BPMN"
#: inc/process.class.php:522
msgid "Processes"
msgstr "Procesy"
#: inc/process.class.php:575
msgid "Hide case number and title in task descriptions"
msgstr "V popisech úkolů skrýt číslo a titulek"
#: inc/process.class.php:580
msgid "Insert Task Category comments in Task Description"
msgstr "Vložit komentáře kategorie úkolu do jeho popisu"
#: inc/process.class.php:603
msgid "ITIL Category (self-service)"
msgstr "ITIL kategorie (samoobslužné)"
#: inc/process.class.php:632
msgid "Project type (to be changed if not up-to-date)"
msgstr "Typ projektu (pokud není aktuální, bude změněno)"
#: inc/process_profile.class.php:26 inc/process_profile.class.php:45
msgid "Authorizations"
msgstr "Pověření"
#: inc/process_profile.class.php:179
msgid "Authorization not added: already existing!"
msgstr ""
#: inc/processmaker.class.php:116 inc/processmaker.class.php:118
msgctxt "errors"
msgid "Error creating case!"
msgstr "Chyba při vytváření případu!"
#: inc/processmaker.class.php:117
msgctxt "errors"
msgid "Can't create case: no rights for it!"
msgstr "Případ se nedaří vytvořit: nedostatečná oprávnění!"
#: inc/processmaker.class.php:984
msgid "Syncs GLPI users and groups into ProcessMaker."
msgstr "Synchronizuje uživatele a skupiny z GLPI do ProcessMaker."
#: inc/processmaker.class.php:986
msgid "Cleaning of orphan cases."
msgstr "Čištění osiřelých případů."
#: inc/processmaker.class.php:986
msgid "Number of days to keep orphan cases"
msgstr "Po kolik dnů ponechávat osiřelé případy"
#: inc/processmaker.class.php:988
msgid "To apply task actions between cases."
msgstr "Pro uplatnění akcí úkolu mezi případy."
#: inc/processmaker.class.php:1696
msgid "Case title: "
msgstr "Titulek případu: "
#: inc/processmaker.class.php:2178
msgid "A 'Case' is running!"
msgstr "Případ je v běhu!"
#: inc/processmaker.class.php:2179
msgid "You must manage it first (see 'Process - Case' tab)!"
msgstr "Nejprve je třeba toto spravovat (viz panel „Proces případ“)!"
#: inc/profile.class.php:17
msgid "Process configuration"
msgstr "Nastavení procesu"
#: inc/profile.class.php:21
msgid "Cases"
msgstr ""
#: inc/task.class.php:25
msgid "Process case task"
msgid_plural "Process case tasks"
msgstr[0] "Process case task"
msgstr[1] "Process case tasks"
msgstr[2] ""
msgstr[3] ""
#: inc/taskcategory.class.php:21 inc/taskcategory.class.php:31
msgid "Task List"
msgstr "Seznam úkolů"
#: inc/taskcategory.class.php:32
msgid "Task name"
msgstr "Název úkolu"
#: inc/taskcategory.class.php:34 inc/taskcategory.class.php:60
msgid "Start"
msgstr "Spustit"
#: inc/taskcategory.class.php:35
msgid "Task GUID"
msgstr "Nikde se neopakující identifikátor úkolu"
#: inc/taskcategory.class.php:38 inc/taskcategory.class.php:78
msgid "Sub-process"
msgstr ""
#~ msgid "Plugin is under maintenance, please retry later, thank you."
#~ msgstr "Plugin is under maintenance, please retry later, thank you."

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
View File

@@ -0,0 +1,547 @@
msgid ""
msgstr ""
"Project-Id-Version: processmaker-plugin\n"
"POT-Creation-Date: 2018-08-02 14:42+0200\n"
"PO-Revision-Date: 2018-08-02 16:55+0200\n"
"Last-Translator: tomolimo\n"
"Language-Team: English, United Kingdom\n"
"Language: en_GB\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.1.1\n"
"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-KeywordsList: ;__:1,2t;_e:1,2t;_x:1c,2,3t;_n:1,2,4t;__s:1,2t;"
"_ex:1c,2,3t;_sx:1c,2,3t;_nx:1c,2,3,5t\n"
"X-Crowdin-Project: processmaker-plugin\n"
"X-Crowdin-Language: en-GB\n"
"X-Crowdin-File: /3.3.0/source.po\n"
"X-Poedit-SearchPath-0: ajax\n"
"X-Poedit-SearchPath-1: front\n"
"X-Poedit-SearchPath-2: inc\n"
"X-Poedit-SearchPath-3: install\n"
"X-Poedit-SearchPath-4: js\n"
"X-Poedit-SearchPath-5: hook.php\n"
"X-Poedit-SearchPath-6: setup.php\n"
#: ajax/task_users.php:25
msgid "Re-assign task to"
msgstr "Re-assign task to"
#: ajax/task_users.php:45
msgid "Re-assign"
msgstr "Re-assign"
#: front/case.form.php:35
msgid "Case has been deleted!"
msgstr "Case has been deleted!"
#: front/case.form.php:37
msgid "Unable to delete case!"
msgstr "Unable to delete case!"
#: front/case.form.php:50
msgid "Case has been cancelled!"
msgstr "Case has been cancelled!"
#: front/case.form.php:52 front/case.form.php:55
msgid "Unable to cancel case!"
msgstr "Unable to cancel case!"
#: front/case.form.php:76 front/case.form.php:78 inc/case.class.php:922
msgid "Process cases"
msgstr "Process cases"
#: front/case.php:5 front/caselink.form.php:27 front/caselink.php:5
#: front/process.form.php:25 front/process.php:5 inc/caselink.class.php:143
#: inc/config.class.php:50 inc/config.class.php:347 inc/process.class.php:393
#: inc/profile.class.php:52 inc/profile.class.php:83
msgid "ProcessMaker"
msgstr "ProcessMaker"
#: front/case.php:14 inc/case.class.php:644
msgid ""
"ProcessMaker plugin is under maintenance, please retry later, thank you."
msgstr ""
"ProcessMaker plugin is under maintenance, please retry later, thank you."
#: front/processmaker.form.php:85
msgid "Task re-assigned!"
msgstr "Task re-assigned!"
#: front/processmaker.form.php:87
msgid "Error re-assigning task: "
msgstr "Error re-assigning task: "
#: front/processmaker.form.php:90
msgid "Task already assigned to this person!"
msgstr "Task already assigned to this person!"
#: front/processmaker.helpdesk.form.php:21
msgid "Process - Case"
msgstr "Process - Case"
#: front/processmaker.helpdesk.form.php:24 inc/case.class.php:528
msgid "Select the process you want to add"
msgstr "Select the process you want to add"
#: hook.php:31 inc/taskcategory.class.php:98
msgid "Synchronize Task List"
msgstr "Synchronize Task List"
#: hook.php:158 inc/case.class.php:77
msgid "Case"
msgstr "Case"
#: hook.php:158 inc/case.class.php:509 inc/case.class.php:966
msgid "Status"
msgstr "Status"
#: inc/case.class.php:23 inc/case.class.php:85 inc/case.class.php:87
msgid "Process case"
msgid_plural "Process cases"
msgstr[0] "Process case"
msgstr[1] "Process cases"
#: inc/case.class.php:285
msgid "Case properties"
msgstr "Case properties"
#: inc/case.class.php:287 inc/case.class.php:507 inc/case.class.php:940
#: inc/process.class.php:524
msgid "Process"
msgstr "Process"
#: inc/case.class.php:290
msgid "Case title"
msgstr "Case title"
#: inc/case.class.php:293
msgid "Case number"
msgstr "Case number"
#: inc/case.class.php:296
msgid "Case status"
msgstr "Case status"
#: inc/case.class.php:299
msgid "Case guid"
msgstr "Case guid"
#: inc/case.class.php:302
msgid "Creator"
msgstr "Creator"
#: inc/case.class.php:305
msgid "Creation date"
msgstr "Creation date"
#: inc/case.class.php:308
msgid "Last update"
msgstr "Last update"
#: inc/case.class.php:323
msgid "Current task(s) properties"
msgstr "Current task properties"
#: inc/case.class.php:327
msgid "Task"
msgstr "Task"
#: inc/case.class.php:328
msgid "Task guid"
msgstr "Task guid"
#: inc/case.class.php:329
msgid "Current user"
msgstr "Current user"
#: inc/case.class.php:330
msgid "Task delegation date"
msgstr "Task delegation date"
#: inc/case.class.php:338
msgid "To be claimed"
msgstr "To be claimed"
#: inc/case.class.php:407
msgid "Case item"
msgstr "Case item"
#: inc/case.class.php:429
msgid "Case cancellation"
msgstr "Case cancellation"
#: inc/case.class.php:430
msgid "Cancel case"
msgstr "Cancel case"
#: inc/case.class.php:434
msgid "Confirm cancellation?"
msgstr "Confirm cancellation?"
#: inc/case.class.php:434 inc/profile.class.php:23
msgid "Cancel"
msgstr "Cancel"
#: inc/case.class.php:455
msgid "Case deletion"
msgstr "Case deletion"
#: inc/case.class.php:456
msgid "Delete case"
msgstr "Delete case"
#: inc/case.class.php:508 inc/case.class.php:933
msgid "Title"
msgstr "Title"
#: inc/case.class.php:510 inc/case.class.php:974
msgid "Subcase of"
msgstr "Subcase of"
#: inc/case.class.php:525
msgid "Add a new case"
msgstr "Add a new case"
#: inc/case.class.php:899
msgctxt "case_status"
msgid "Draft"
msgstr "Draft"
#: inc/case.class.php:900
msgctxt "case_status"
msgid "To do"
msgstr "To do"
#: inc/case.class.php:901
msgctxt "case_status"
msgid "Completed"
msgstr "Completed"
#: inc/case.class.php:902
msgctxt "case_status"
msgid "Cancelled"
msgstr "Cancelled"
#: inc/case.class.php:926
msgid "ID"
msgstr "ID"
#: inc/case.class.php:953
msgid "Item"
msgstr "Item"
#: inc/case.class.php:960
msgid "Item entity"
msgstr "Item entity"
#: inc/casechangelog.class.php:35
msgid "Change log"
msgstr "Change log"
#: inc/casedynaform.class.php:80
msgid "Dynaforms"
msgstr "Dynaforms"
#: inc/casehistory.class.php:35
msgid "History"
msgstr "History"
#: inc/caselink.class.php:51
msgid "Case-links"
msgstr "Case-links"
#: inc/caselink.class.php:53
msgid "Case-link"
msgstr "Case-link"
#: inc/caselink.class.php:75 inc/caselink.class.php:165
msgid "External data"
msgstr "External data"
#: inc/caselink.class.php:80 inc/caselink.class.php:171
msgid "Self"
msgstr "Self"
#: inc/caselink.class.php:85 inc/caselink.class.php:189
msgid "Source task GUID"
msgstr "Source task GUID"
#: inc/caselink.class.php:93 inc/caselink.class.php:195
msgid "Target task GUID"
msgstr "Target task GUID"
#: inc/caselink.class.php:101 inc/caselink.class.php:207
msgid "Target process GUID"
msgstr "Target process GUID"
#: inc/caselink.class.php:110 inc/caselink.class.php:201
msgid "Target dynaform GUID"
msgstr "Target dynaform GUID"
#: inc/caselink.class.php:115 inc/caselink.class.php:213
msgid "Source condition"
msgstr "Source condition"
#: inc/caselink.class.php:121 inc/caselink.class.php:177
msgid "Claim target task"
msgstr "Claim target task"
#: inc/caselink.class.php:126 inc/caselink.class.php:183
msgid "External application JSON config"
msgstr "External application JSON config"
#: inc/casemap.class.php:43
msgid "Map"
msgstr "Map"
#: inc/config.class.php:41
msgid "ProcessMaker setup"
msgstr "ProcessMaker setup"
#: inc/config.class.php:156
msgid "Server URL (must be in same domain than GLPI)"
msgstr "Server URL (must be in same domain than GLPI)"
#: inc/config.class.php:161
msgid "Common domain with GLPI"
msgstr "Common domain with GLPI"
#: inc/config.class.php:190
msgid "None!"
msgstr "None!"
#: inc/config.class.php:199
msgid "Workspace Name"
msgstr "Workspace Name"
#: inc/config.class.php:204
msgid "Server administrator name"
msgstr "Server administrator name"
#: inc/config.class.php:209
msgid "Server administrator password"
msgstr "Server administrator password"
#: inc/config.class.php:215 inc/config.class.php:255
msgid "Connection status"
msgstr "Connection status"
#: inc/config.class.php:231
msgid "SQL server setup"
msgstr "SQL server setup"
#: inc/config.class.php:234
msgid "SQL server (MariaDB or MySQL)"
msgstr "SQL server (MariaDB or MySQL)"
#: inc/config.class.php:239
msgid "Database name"
msgstr "Database name"
#: inc/config.class.php:244
msgid "SQL user"
msgstr "SQL user"
#: inc/config.class.php:249
msgid "SQL password"
msgstr "SQL password"
#: inc/config.class.php:266
msgid "Theme Name"
msgstr "Theme Name"
#: inc/config.class.php:272
msgid "Main Task Category (edit to change name)"
msgstr "Main Task Category (edit to change name)"
#: inc/config.class.php:279
msgid "Task Writer (edit to change name)"
msgstr "Task Writer (edit to change name)"
#: inc/config.class.php:299
msgid "Group in ProcessMaker which will contain all GLPI users"
msgstr "Group in ProcessMaker which will contain all GLPI users"
#: inc/config.class.php:323
msgid "Processmaker system information"
msgstr "Processmaker system information"
#: inc/config.class.php:327 inc/config.class.php:337
msgid "Version"
msgstr "Version"
#: inc/config.class.php:328
msgid "Web server"
msgstr "Web server"
#: inc/config.class.php:329
msgid "Server name"
msgstr "Server name"
#: inc/config.class.php:330
msgid "PHP version"
msgstr "PHP version"
#: inc/config.class.php:331
msgid "DB version"
msgstr "DB version"
#: inc/config.class.php:332
msgid "DB server IP"
msgstr "DB server IP"
#: inc/config.class.php:333
msgid "DB name"
msgstr "DB name"
#: inc/config.class.php:334
msgid "User browser"
msgstr "User browser"
#: inc/config.class.php:335
msgid "User IP"
msgstr "User IP"
#: inc/config.class.php:337
msgid "Not yet!"
msgstr "Not yet!"
#: inc/process.class.php:350
msgid "Synchronize Process List"
msgstr "Synchronize Process List"
#: inc/process.class.php:427 inc/process.class.php:565
msgid "Process GUID"
msgstr "Process GUID"
#: inc/process.class.php:433
msgid "Project type"
msgstr "Project type"
#: inc/process.class.php:439
msgid "Hide case number and title"
msgstr "Hide case number and title"
#: inc/process.class.php:445
msgid "Insert Task Category"
msgstr "Insert Task Category"
#: inc/process.class.php:457 inc/process.class.php:585
msgid "Ticket type (self-service)"
msgstr "Ticket type (self-service)"
#: inc/process.class.php:495
msgctxt "process_type"
msgid "Classic"
msgstr "Classic"
#: inc/process.class.php:496
msgctxt "process_type"
msgid "BPMN"
msgstr "BPMN"
#: inc/process.class.php:522
msgid "Processes"
msgstr "Processes"
#: inc/process.class.php:575
msgid "Hide case number and title in task descriptions"
msgstr "Hide case number and title in task descriptions"
#: inc/process.class.php:580
msgid "Insert Task Category comments in Task Description"
msgstr "Insert Task Category comments in Task Description"
#: inc/process.class.php:603
msgid "ITIL Category (self-service)"
msgstr "ITIL Category (self-service)"
#: inc/process.class.php:632
msgid "Project type (to be changed if not up-to-date)"
msgstr "Project type (to be changed if not up-to-date)"
#: inc/process_profile.class.php:26 inc/process_profile.class.php:45
msgid "Authorizations"
msgstr "Authorizations"
#: inc/process_profile.class.php:179
msgid "Authorization not added: already existing!"
msgstr "Authorization not added: already existing!"
#: inc/processmaker.class.php:116 inc/processmaker.class.php:118
msgctxt "errors"
msgid "Error creating case!"
msgstr "Error creating case!"
#: inc/processmaker.class.php:117
msgctxt "errors"
msgid "Can't create case: no rights for it!"
msgstr "Can't create case: no rights for it!"
#: inc/processmaker.class.php:984
msgid "Syncs GLPI users and groups into ProcessMaker."
msgstr "Syncs GLPI users and groups into ProcessMaker."
#: inc/processmaker.class.php:986
msgid "Cleaning of orphan cases."
msgstr "Cleaning of orphan cases."
#: inc/processmaker.class.php:986
msgid "Number of days to keep orphan cases"
msgstr "Number of days to keep orphan cases"
#: inc/processmaker.class.php:988
msgid "To apply task actions between cases."
msgstr "To apply task actions between cases."
#: inc/processmaker.class.php:1696
msgid "Case title: "
msgstr "Case title: "
#: inc/processmaker.class.php:2178
msgid "A 'Case' is running!"
msgstr "A 'Case' is running!"
#: inc/processmaker.class.php:2179
msgid "You must manage it first (see 'Process - Case' tab)!"
msgstr "You must manage it first (see 'Process - Case' tab)!"
#: inc/profile.class.php:17
msgid "Process configuration"
msgstr "Process configuration"
#: inc/profile.class.php:21
msgid "Cases"
msgstr "Cases"
#: inc/task.class.php:25
msgid "Process case task"
msgid_plural "Process case tasks"
msgstr[0] "Process case task"
msgstr[1] "Process case tasks"
#: inc/taskcategory.class.php:21 inc/taskcategory.class.php:31
msgid "Task List"
msgstr "Task List"
#: inc/taskcategory.class.php:32
msgid "Task name"
msgstr "Task name"
#: inc/taskcategory.class.php:34 inc/taskcategory.class.php:60
msgid "Start"
msgstr "Start"
#: inc/taskcategory.class.php:35
msgid "Task GUID"
msgstr "Task GUID"
#: inc/taskcategory.class.php:38 inc/taskcategory.class.php:78
msgid "Sub-process"
msgstr "Sub-process"
#~ msgid "Plugin is under maintenance, please retry later, thank you."
#~ msgstr "Plugin is under maintenance, please retry later, thank you."

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.";

550
locales/fr_FR.po Normal file
View File

@@ -0,0 +1,550 @@
msgid ""
msgstr ""
"Project-Id-Version: processmaker-plugin\n"
"POT-Creation-Date: 2018-08-02 14:42+0200\n"
"PO-Revision-Date: 2018-08-02 16:55+0200\n"
"Last-Translator: tomolimo\n"
"Language-Team: French\n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.1.1\n"
"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Poedit-KeywordsList: ;__:1,2t;_e:1,2t;_x:1c,2,3t;_n:1,2,4t;__s:1,2t;"
"_ex:1c,2,3t;_sx:1c,2,3t;_nx:1c,2,3,5t\n"
"X-Crowdin-Project: processmaker-plugin\n"
"X-Crowdin-Language: fr\n"
"X-Crowdin-File: /3.3.0/source.po\n"
"X-Poedit-SearchPath-0: ajax\n"
"X-Poedit-SearchPath-1: front\n"
"X-Poedit-SearchPath-2: inc\n"
"X-Poedit-SearchPath-3: install\n"
"X-Poedit-SearchPath-4: js\n"
"X-Poedit-SearchPath-5: hook.php\n"
"X-Poedit-SearchPath-6: setup.php\n"
#: ajax/task_users.php:25
msgid "Re-assign task to"
msgstr "Ré-affecter tâche à"
#: ajax/task_users.php:45
msgid "Re-assign"
msgstr "Ré-affecter"
#: front/case.form.php:35
msgid "Case has been deleted!"
msgstr "Le cas a été effacé !"
#: front/case.form.php:37
msgid "Unable to delete case!"
msgstr "Impossible d'effacer le cas !"
#: front/case.form.php:50
msgid "Case has been cancelled!"
msgstr "Le cas a été annulé !"
#: front/case.form.php:52 front/case.form.php:55
msgid "Unable to cancel case!"
msgstr "Impossible d'annuler le cas !"
#: front/case.form.php:76 front/case.form.php:78 inc/case.class.php:922
msgid "Process cases"
msgstr "Cas des processus"
#: front/case.php:5 front/caselink.form.php:27 front/caselink.php:5
#: front/process.form.php:25 front/process.php:5 inc/caselink.class.php:143
#: inc/config.class.php:50 inc/config.class.php:347 inc/process.class.php:393
#: inc/profile.class.php:52 inc/profile.class.php:83
msgid "ProcessMaker"
msgstr "ProcessMaker"
#: front/case.php:14 inc/case.class.php:644
msgid ""
"ProcessMaker plugin is under maintenance, please retry later, thank you."
msgstr ""
"Le plugin ProcessMaker est en maintenance, veuillez ré-essayer plus tard, "
"merci."
#: front/processmaker.form.php:85
msgid "Task re-assigned!"
msgstr "Tâche ré-affectée !"
#: front/processmaker.form.php:87
msgid "Error re-assigning task: "
msgstr "Impossible de re-affecter cette tâche : "
#: front/processmaker.form.php:90
msgid "Task already assigned to this person!"
msgstr "Tâche déjà affectée à cette personne !"
#: front/processmaker.helpdesk.form.php:21
msgid "Process - Case"
msgstr "Processus - Cas"
#: front/processmaker.helpdesk.form.php:24 inc/case.class.php:528
msgid "Select the process you want to add"
msgstr "Choisir le processus à démarrer"
#: hook.php:31 inc/taskcategory.class.php:98
msgid "Synchronize Task List"
msgstr "Synchroniser la liste des Tâches"
#: hook.php:158 inc/case.class.php:77
msgid "Case"
msgstr "Cas"
#: hook.php:158 inc/case.class.php:509 inc/case.class.php:966
msgid "Status"
msgstr "Statut"
#: inc/case.class.php:23 inc/case.class.php:85 inc/case.class.php:87
msgid "Process case"
msgid_plural "Process cases"
msgstr[0] "Cas du processus"
msgstr[1] "Cas des processus"
#: inc/case.class.php:285
msgid "Case properties"
msgstr "Propriétés du cas"
#: inc/case.class.php:287 inc/case.class.php:507 inc/case.class.php:940
#: inc/process.class.php:524
msgid "Process"
msgstr "Processus"
#: inc/case.class.php:290
msgid "Case title"
msgstr "Titre du cas"
#: inc/case.class.php:293
msgid "Case number"
msgstr "Numéro du cas"
#: inc/case.class.php:296
msgid "Case status"
msgstr "Statut du cas"
#: inc/case.class.php:299
msgid "Case guid"
msgstr "Guid du cas"
#: inc/case.class.php:302
msgid "Creator"
msgstr "Créateur"
#: inc/case.class.php:305
msgid "Creation date"
msgstr "Date de création"
#: inc/case.class.php:308
msgid "Last update"
msgstr "Dernière mise à jour"
#: inc/case.class.php:323
msgid "Current task(s) properties"
msgstr "Propriétés des tâches en cours"
#: inc/case.class.php:327
msgid "Task"
msgstr "Tâche"
#: inc/case.class.php:328
msgid "Task guid"
msgstr "Guid de la tâche"
#: inc/case.class.php:329
msgid "Current user"
msgstr "Utilisateur actuel"
#: inc/case.class.php:330
msgid "Task delegation date"
msgstr "Date de délégation de tâche"
#: inc/case.class.php:338
msgid "To be claimed"
msgstr "A réclamer"
#: inc/case.class.php:407
msgid "Case item"
msgstr "Item du cas"
#: inc/case.class.php:429
msgid "Case cancellation"
msgstr "Annulation du cas"
#: inc/case.class.php:430
msgid "Cancel case"
msgstr "Annuler cas"
#: inc/case.class.php:434
msgid "Confirm cancellation?"
msgstr "Confirmer lannulation ?"
#: inc/case.class.php:434 inc/profile.class.php:23
msgid "Cancel"
msgstr "Annuler"
#: inc/case.class.php:455
msgid "Case deletion"
msgstr "Suppression du cas"
#: inc/case.class.php:456
msgid "Delete case"
msgstr "Supprimer le cas"
#: inc/case.class.php:508 inc/case.class.php:933
msgid "Title"
msgstr "Titre"
#: inc/case.class.php:510 inc/case.class.php:974
msgid "Subcase of"
msgstr "Sous-cas de"
#: inc/case.class.php:525
msgid "Add a new case"
msgstr "Ajouter un nouveau cas"
#: inc/case.class.php:899
msgctxt "case_status"
msgid "Draft"
msgstr "Brouillon"
#: inc/case.class.php:900
msgctxt "case_status"
msgid "To do"
msgstr "A faire"
#: inc/case.class.php:901
msgctxt "case_status"
msgid "Completed"
msgstr "Terminé"
#: inc/case.class.php:902
msgctxt "case_status"
msgid "Cancelled"
msgstr "Annulé"
#: inc/case.class.php:926
msgid "ID"
msgstr "ID"
#: inc/case.class.php:953
msgid "Item"
msgstr "Item"
#: inc/case.class.php:960
msgid "Item entity"
msgstr "Entité de l'item"
#: inc/casechangelog.class.php:35
msgid "Change log"
msgstr "Evolution"
#: inc/casedynaform.class.php:80
msgid "Dynaforms"
msgstr "DynaForms"
#: inc/casehistory.class.php:35
msgid "History"
msgstr "Historique"
#: inc/caselink.class.php:51
msgid "Case-links"
msgstr "Liens-cas"
#: inc/caselink.class.php:53
msgid "Case-link"
msgstr "Lien-cas"
#: inc/caselink.class.php:75 inc/caselink.class.php:165
msgid "External data"
msgstr "Données externes"
#: inc/caselink.class.php:80 inc/caselink.class.php:171
msgid "Self"
msgstr "Self"
#: inc/caselink.class.php:85 inc/caselink.class.php:189
msgid "Source task GUID"
msgstr "GUID de la tâche source"
#: inc/caselink.class.php:93 inc/caselink.class.php:195
msgid "Target task GUID"
msgstr "GUID de la tâche cible"
#: inc/caselink.class.php:101 inc/caselink.class.php:207
msgid "Target process GUID"
msgstr "GUID du Processus cible"
#: inc/caselink.class.php:110 inc/caselink.class.php:201
msgid "Target dynaform GUID"
msgstr "GUID du dynaform cible"
#: inc/caselink.class.php:115 inc/caselink.class.php:213
msgid "Source condition"
msgstr "Condition d'activation du lien"
#: inc/caselink.class.php:121 inc/caselink.class.php:177
msgid "Claim target task"
msgstr "Tâche cible 'à réclamer'"
#: inc/caselink.class.php:126 inc/caselink.class.php:183
msgid "External application JSON config"
msgstr "Configuration JSON de l'application externe"
#: inc/casemap.class.php:43
msgid "Map"
msgstr "Carte"
#: inc/config.class.php:41
msgid "ProcessMaker setup"
msgstr "Configuration du serveur ProcessMaker"
#: inc/config.class.php:156
msgid "Server URL (must be in same domain than GLPI)"
msgstr "URL du serveur (doit être dans le même domaine que GLPI)"
#: inc/config.class.php:161
msgid "Common domain with GLPI"
msgstr "Domaine commun avec GLPI"
#: inc/config.class.php:190
msgid "None!"
msgstr "Aucun !"
#: inc/config.class.php:199
msgid "Workspace Name"
msgstr "Nom du Workspace"
#: inc/config.class.php:204
msgid "Server administrator name"
msgstr "Non de l'administreur du server ProcessMaker"
#: inc/config.class.php:209
msgid "Server administrator password"
msgstr "Mot de passe de l'administrateur du serveur ProcessMaker"
#: inc/config.class.php:215 inc/config.class.php:255
msgid "Connection status"
msgstr "Status de la connexion"
#: inc/config.class.php:231
msgid "SQL server setup"
msgstr "Configuration du serveur SQL"
#: inc/config.class.php:234
msgid "SQL server (MariaDB or MySQL)"
msgstr "SQL server (MariaDB ou MySQL)"
#: inc/config.class.php:239
msgid "Database name"
msgstr "Nom de la base de données"
#: inc/config.class.php:244
msgid "SQL user"
msgstr "Utilisateur SQL"
#: inc/config.class.php:249
msgid "SQL password"
msgstr "Mot de passe SQL"
#: inc/config.class.php:266
msgid "Theme Name"
msgstr "Nom du thème"
#: inc/config.class.php:272
msgid "Main Task Category (edit to change name)"
msgstr "Catégorie principale des tâches (éditer pour changer le nom)"
#: inc/config.class.php:279
msgid "Task Writer (edit to change name)"
msgstr "Auteur des tâches (éditer pour changer le nom)"
#: inc/config.class.php:299
msgid "Group in ProcessMaker which will contain all GLPI users"
msgstr "Groupe dans ProcessMaker qui contiendra les utilisateurs de GLPI"
#: inc/config.class.php:323
msgid "Processmaker system information"
msgstr "Informations système du serveur ProcessMaker"
#: inc/config.class.php:327 inc/config.class.php:337
msgid "Version"
msgstr "Version"
#: inc/config.class.php:328
msgid "Web server"
msgstr "Serveur web"
#: inc/config.class.php:329
msgid "Server name"
msgstr "Nom du serveur"
#: inc/config.class.php:330
msgid "PHP version"
msgstr "Version de PHP"
#: inc/config.class.php:331
msgid "DB version"
msgstr "Version de la Db"
#: inc/config.class.php:332
msgid "DB server IP"
msgstr "IP du serveur DB"
#: inc/config.class.php:333
msgid "DB name"
msgstr "Nom de la BD"
#: inc/config.class.php:334
msgid "User browser"
msgstr "Navigateur de lutilisateur"
#: inc/config.class.php:335
msgid "User IP"
msgstr "IP de l'utilisateur"
#: inc/config.class.php:337
msgid "Not yet!"
msgstr "Pas encore !"
#: inc/process.class.php:350
msgid "Synchronize Process List"
msgstr "Synchroniser la liste des processus"
#: inc/process.class.php:427 inc/process.class.php:565
msgid "Process GUID"
msgstr "GUID du Processus"
#: inc/process.class.php:433
msgid "Project type"
msgstr "Type de projet"
#: inc/process.class.php:439
msgid "Hide case number and title"
msgstr "Masquer numéro et titre des cas"
#: inc/process.class.php:445
msgid "Insert Task Category"
msgstr "Insérer la catégorie des tâches"
#: inc/process.class.php:457 inc/process.class.php:585
msgid "Ticket type (self-service)"
msgstr "Type de ticket (self-service)"
#: inc/process.class.php:495
msgctxt "process_type"
msgid "Classic"
msgstr "Classique"
#: inc/process.class.php:496
msgctxt "process_type"
msgid "BPMN"
msgstr "BPMN"
#: inc/process.class.php:522
msgid "Processes"
msgstr "Processus"
#: inc/process.class.php:575
msgid "Hide case number and title in task descriptions"
msgstr "Masquer numéro et titre des cas dans les descriptions des tâches"
#: inc/process.class.php:580
msgid "Insert Task Category comments in Task Description"
msgstr ""
"Insérer les commentaires des Catégories de Tâches dans les descriptions des "
"Tâches"
#: inc/process.class.php:603
msgid "ITIL Category (self-service)"
msgstr "Catégorie ITIL (self-service)"
#: inc/process.class.php:632
msgid "Project type (to be changed if not up-to-date)"
msgstr "Type de projet (à modifier si pas à jour)"
#: inc/process_profile.class.php:26 inc/process_profile.class.php:45
msgid "Authorizations"
msgstr "Autorisations"
#: inc/process_profile.class.php:179
msgid "Authorization not added: already existing!"
msgstr "Autorisation non ajoutée : déjà existante !"
#: inc/processmaker.class.php:116 inc/processmaker.class.php:118
msgctxt "errors"
msgid "Error creating case!"
msgstr "Erreur à la création du cas !"
#: inc/processmaker.class.php:117
msgctxt "errors"
msgid "Can't create case: no rights for it!"
msgstr "Impossible de créer le cas : pas de droits pour cela !"
#: inc/processmaker.class.php:984
msgid "Syncs GLPI users and groups into ProcessMaker."
msgstr "Synchronisation des utilisateurs GLPI et des groups avec ProcessMaker."
#: inc/processmaker.class.php:986
msgid "Cleaning of orphan cases."
msgstr "Nettoyage des cas orphelins."
#: inc/processmaker.class.php:986
msgid "Number of days to keep orphan cases"
msgstr "Nombre de jours avant nettoyage des cas orphelins"
#: inc/processmaker.class.php:988
msgid "To apply task actions between cases."
msgstr "Pour appliquer des actions de tâches entre cas."
#: inc/processmaker.class.php:1696
msgid "Case title: "
msgstr "Titre du cas : "
#: inc/processmaker.class.php:2178
msgid "A 'Case' is running!"
msgstr "Un 'Cas' est en cours !"
#: inc/processmaker.class.php:2179
msgid "You must manage it first (see 'Process - Case' tab)!"
msgstr "Vous devez d'abord le terminer (voir onglet 'Processus - Cas') !"
#: inc/profile.class.php:17
msgid "Process configuration"
msgstr "Configuration des Processus"
#: inc/profile.class.php:21
msgid "Cases"
msgstr "Cas"
#: inc/task.class.php:25
msgid "Process case task"
msgid_plural "Process case tasks"
msgstr[0] "Tâche d'un cas"
msgstr[1] "Tâches d'un cas"
#: inc/taskcategory.class.php:21 inc/taskcategory.class.php:31
msgid "Task List"
msgstr "Liste des tâches"
#: inc/taskcategory.class.php:32
msgid "Task name"
msgstr "Nom de la Tâche"
#: inc/taskcategory.class.php:34 inc/taskcategory.class.php:60
msgid "Start"
msgstr "Démarrer"
#: inc/taskcategory.class.php:35
msgid "Task GUID"
msgstr "GUID de la Tâche"
#: inc/taskcategory.class.php:38 inc/taskcategory.class.php:78
msgid "Sub-process"
msgstr "Sous-processus"
#~ msgid "Plugin is under maintenance, please retry later, thank you."
#~ msgstr "Plugin is under maintenance, please retry later, thank you."

544
locales/source.po Normal file
View File

@@ -0,0 +1,544 @@
msgid ""
msgstr ""
"Project-Id-Version: Processmaker plugin 3.3.0\n"
"POT-Creation-Date: 2018-08-02 14:42+0200\n"
"PO-Revision-Date: 2018-08-02 16:56+0200\n"
"Last-Translator: tomolimo\n"
"Language-Team: en_GB\n"
"Language: en_GB\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.1.1\n"
"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-KeywordsList: ;__:1,2t;_e:1,2t;_x:1c,2,3t;_n:1,2,4t;__s:1,2t;"
"_ex:1c,2,3t;_sx:1c,2,3t;_nx:1c,2,3,5t\n"
"X-Poedit-SearchPath-0: ajax\n"
"X-Poedit-SearchPath-1: front\n"
"X-Poedit-SearchPath-2: inc\n"
"X-Poedit-SearchPath-3: install\n"
"X-Poedit-SearchPath-4: js\n"
"X-Poedit-SearchPath-5: hook.php\n"
"X-Poedit-SearchPath-6: setup.php\n"
#: ajax/task_users.php:25
msgid "Re-assign task to"
msgstr "Re-assign task to"
#: ajax/task_users.php:45
msgid "Re-assign"
msgstr "Re-assign"
#: front/case.form.php:35
msgid "Case has been deleted!"
msgstr "Case has been deleted!"
#: front/case.form.php:37
msgid "Unable to delete case!"
msgstr "Unable to delete case!"
#: front/case.form.php:50
msgid "Case has been cancelled!"
msgstr "Case has been cancelled!"
#: front/case.form.php:52 front/case.form.php:55
msgid "Unable to cancel case!"
msgstr "Unable to cancel case!"
#: front/case.form.php:76 front/case.form.php:78 inc/case.class.php:922
msgid "Process cases"
msgstr "Process cases"
#: front/case.php:5 front/caselink.form.php:27 front/caselink.php:5
#: front/process.form.php:25 front/process.php:5 inc/caselink.class.php:143
#: inc/config.class.php:50 inc/config.class.php:347 inc/process.class.php:393
#: inc/profile.class.php:52 inc/profile.class.php:83
msgid "ProcessMaker"
msgstr "ProcessMaker"
#: front/case.php:14 inc/case.class.php:644
msgid ""
"ProcessMaker plugin is under maintenance, please retry later, thank you."
msgstr ""
"ProcessMaker plugin is under maintenance, please retry later, thank you."
#: front/processmaker.form.php:85
msgid "Task re-assigned!"
msgstr "Task re-assigned!"
#: front/processmaker.form.php:87
msgid "Error re-assigning task: "
msgstr "Error re-assigning task: "
#: front/processmaker.form.php:90
msgid "Task already assigned to this person!"
msgstr "Task already assigned to this person!"
#: front/processmaker.helpdesk.form.php:21
msgid "Process - Case"
msgstr "Process - Case"
#: front/processmaker.helpdesk.form.php:24 inc/case.class.php:528
msgid "Select the process you want to add"
msgstr "Select the process you want to add"
#: hook.php:31 inc/taskcategory.class.php:98
msgid "Synchronize Task List"
msgstr "Synchronize Task List"
#: hook.php:158 inc/case.class.php:77
msgid "Case"
msgstr "Case"
#: hook.php:158 inc/case.class.php:509 inc/case.class.php:966
msgid "Status"
msgstr "Status"
#: inc/case.class.php:23 inc/case.class.php:85 inc/case.class.php:87
msgid "Process case"
msgid_plural "Process cases"
msgstr[0] "Process case"
msgstr[1] "Process cases"
#: inc/case.class.php:285
msgid "Case properties"
msgstr "Case properties"
#: inc/case.class.php:287 inc/case.class.php:507 inc/case.class.php:940
#: inc/process.class.php:524
msgid "Process"
msgstr "Process"
#: inc/case.class.php:290
msgid "Case title"
msgstr "Case title"
#: inc/case.class.php:293
msgid "Case number"
msgstr "Case number"
#: inc/case.class.php:296
msgid "Case status"
msgstr "Case status"
#: inc/case.class.php:299
msgid "Case guid"
msgstr "Case guid"
#: inc/case.class.php:302
msgid "Creator"
msgstr "Creator"
#: inc/case.class.php:305
msgid "Creation date"
msgstr "Creation date"
#: inc/case.class.php:308
msgid "Last update"
msgstr "Last update"
#: inc/case.class.php:323
msgid "Current task(s) properties"
msgstr "Current task(s) properties"
#: inc/case.class.php:327
msgid "Task"
msgstr "Task"
#: inc/case.class.php:328
msgid "Task guid"
msgstr "Task guid"
#: inc/case.class.php:329
msgid "Current user"
msgstr "Current user"
#: inc/case.class.php:330
msgid "Task delegation date"
msgstr "Task delegation date"
#: inc/case.class.php:338
msgid "To be claimed"
msgstr "To be claimed"
#: inc/case.class.php:407
msgid "Case item"
msgstr "Case item"
#: inc/case.class.php:429
msgid "Case cancellation"
msgstr "Case cancellation"
#: inc/case.class.php:430
msgid "Cancel case"
msgstr "Cancel case"
#: inc/case.class.php:434
msgid "Confirm cancellation?"
msgstr "Confirm cancellation?"
#: inc/case.class.php:434 inc/profile.class.php:23
msgid "Cancel"
msgstr "Cancel"
#: inc/case.class.php:455
msgid "Case deletion"
msgstr "Case deletion"
#: inc/case.class.php:456
msgid "Delete case"
msgstr "Delete case"
#: inc/case.class.php:508 inc/case.class.php:933
msgid "Title"
msgstr "Title"
#: inc/case.class.php:510 inc/case.class.php:974
msgid "Subcase of"
msgstr "Subcase of"
#: inc/case.class.php:525
msgid "Add a new case"
msgstr "Add a new case"
#: inc/case.class.php:899
msgctxt "case_status"
msgid "Draft"
msgstr "Draft"
#: inc/case.class.php:900
msgctxt "case_status"
msgid "To do"
msgstr "To do"
#: inc/case.class.php:901
msgctxt "case_status"
msgid "Completed"
msgstr "Completed"
#: inc/case.class.php:902
msgctxt "case_status"
msgid "Cancelled"
msgstr "Cancelled"
#: inc/case.class.php:926
msgid "ID"
msgstr "ID"
#: inc/case.class.php:953
msgid "Item"
msgstr "Item"
#: inc/case.class.php:960
msgid "Item entity"
msgstr "Item entity"
#: inc/casechangelog.class.php:35
msgid "Change log"
msgstr "Change log"
#: inc/casedynaform.class.php:80
msgid "Dynaforms"
msgstr "Dynaforms"
#: inc/casehistory.class.php:35
msgid "History"
msgstr "History"
#: inc/caselink.class.php:51
msgid "Case-links"
msgstr "Case-links"
#: inc/caselink.class.php:53
msgid "Case-link"
msgstr "Case-link"
#: inc/caselink.class.php:75 inc/caselink.class.php:165
msgid "External data"
msgstr "External data"
#: inc/caselink.class.php:80 inc/caselink.class.php:171
msgid "Self"
msgstr "Self"
#: inc/caselink.class.php:85 inc/caselink.class.php:189
msgid "Source task GUID"
msgstr "Source task GUID"
#: inc/caselink.class.php:93 inc/caselink.class.php:195
msgid "Target task GUID"
msgstr "Target task GUID"
#: inc/caselink.class.php:101 inc/caselink.class.php:207
msgid "Target process GUID"
msgstr "Target process GUID"
#: inc/caselink.class.php:110 inc/caselink.class.php:201
msgid "Target dynaform GUID"
msgstr "Target dynaform GUID"
#: inc/caselink.class.php:115 inc/caselink.class.php:213
msgid "Source condition"
msgstr "Source condition"
#: inc/caselink.class.php:121 inc/caselink.class.php:177
msgid "Claim target task"
msgstr "Claim target task"
#: inc/caselink.class.php:126 inc/caselink.class.php:183
msgid "External application JSON config"
msgstr "External application JSON config"
#: inc/casemap.class.php:43
msgid "Map"
msgstr "Map"
#: inc/config.class.php:41
msgid "ProcessMaker setup"
msgstr "ProcessMaker setup"
#: inc/config.class.php:156
msgid "Server URL (must be in same domain than GLPI)"
msgstr "Server URL (must be in same domain than GLPI)"
#: inc/config.class.php:161
msgid "Common domain with GLPI"
msgstr "Common domain with GLPI"
#: inc/config.class.php:190
msgid "None!"
msgstr "None!"
#: inc/config.class.php:199
msgid "Workspace Name"
msgstr "Workspace Name"
#: inc/config.class.php:204
msgid "Server administrator name"
msgstr "Server administrator name"
#: inc/config.class.php:209
msgid "Server administrator password"
msgstr "Server administrator password"
#: inc/config.class.php:215 inc/config.class.php:255
msgid "Connection status"
msgstr "Connection status"
#: inc/config.class.php:231
msgid "SQL server setup"
msgstr "SQL server setup"
#: inc/config.class.php:234
msgid "SQL server (MariaDB or MySQL)"
msgstr "SQL server (MariaDB or MySQL)"
#: inc/config.class.php:239
msgid "Database name"
msgstr "Database name"
#: inc/config.class.php:244
msgid "SQL user"
msgstr "SQL user"
#: inc/config.class.php:249
msgid "SQL password"
msgstr "SQL password"
#: inc/config.class.php:266
msgid "Theme Name"
msgstr "Theme Name"
#: inc/config.class.php:272
msgid "Main Task Category (edit to change name)"
msgstr "Main Task Category (edit to change name)"
#: inc/config.class.php:279
msgid "Task Writer (edit to change name)"
msgstr "Task Writer (edit to change name)"
#: inc/config.class.php:299
msgid "Group in ProcessMaker which will contain all GLPI users"
msgstr "Group in ProcessMaker which will contain all GLPI users"
#: inc/config.class.php:323
msgid "Processmaker system information"
msgstr "Processmaker system information"
#: inc/config.class.php:327 inc/config.class.php:337
msgid "Version"
msgstr "Version"
#: inc/config.class.php:328
msgid "Web server"
msgstr "Web server"
#: inc/config.class.php:329
msgid "Server name"
msgstr "Server name"
#: inc/config.class.php:330
msgid "PHP version"
msgstr "PHP version"
#: inc/config.class.php:331
msgid "DB version"
msgstr "DB version"
#: inc/config.class.php:332
msgid "DB server IP"
msgstr "DB server IP"
#: inc/config.class.php:333
msgid "DB name"
msgstr "DB name"
#: inc/config.class.php:334
msgid "User browser"
msgstr "User browser"
#: inc/config.class.php:335
msgid "User IP"
msgstr "User IP"
#: inc/config.class.php:337
msgid "Not yet!"
msgstr "Not yet!"
#: inc/process.class.php:350
msgid "Synchronize Process List"
msgstr "Synchronize Process List"
#: inc/process.class.php:427 inc/process.class.php:565
msgid "Process GUID"
msgstr "Process GUID"
#: inc/process.class.php:433
msgid "Project type"
msgstr "Project type"
#: inc/process.class.php:439
msgid "Hide case number and title"
msgstr "Hide case number and title"
#: inc/process.class.php:445
msgid "Insert Task Category"
msgstr "Insert Task Category"
#: inc/process.class.php:457 inc/process.class.php:585
msgid "Ticket type (self-service)"
msgstr "Ticket type (self-service)"
#: inc/process.class.php:495
msgctxt "process_type"
msgid "Classic"
msgstr "Classic"
#: inc/process.class.php:496
msgctxt "process_type"
msgid "BPMN"
msgstr "BPMN"
#: inc/process.class.php:522
msgid "Processes"
msgstr "Processes"
#: inc/process.class.php:575
msgid "Hide case number and title in task descriptions"
msgstr "Hide case number and title in task descriptions"
#: inc/process.class.php:580
msgid "Insert Task Category comments in Task Description"
msgstr "Insert Task Category comments in Task Description"
#: inc/process.class.php:603
msgid "ITIL Category (self-service)"
msgstr "ITIL Category (self-service)"
#: inc/process.class.php:632
msgid "Project type (to be changed if not up-to-date)"
msgstr "Project type (to be changed if not up-to-date)"
#: inc/process_profile.class.php:26 inc/process_profile.class.php:45
msgid "Authorizations"
msgstr "Authorizations"
#: inc/process_profile.class.php:179
msgid "Authorization not added: already existing!"
msgstr "Authorization not added: already existing!"
#: inc/processmaker.class.php:116 inc/processmaker.class.php:118
msgctxt "errors"
msgid "Error creating case!"
msgstr "Error creating case!"
#: inc/processmaker.class.php:117
msgctxt "errors"
msgid "Can't create case: no rights for it!"
msgstr "Can't create case: no rights for it!"
#: inc/processmaker.class.php:984
msgid "Syncs GLPI users and groups into ProcessMaker."
msgstr "Syncs GLPI users and groups into ProcessMaker."
#: inc/processmaker.class.php:986
msgid "Cleaning of orphan cases."
msgstr "Cleaning of orphan cases."
#: inc/processmaker.class.php:986
msgid "Number of days to keep orphan cases"
msgstr "Number of days to keep orphan cases"
#: inc/processmaker.class.php:988
msgid "To apply task actions between cases."
msgstr "To apply task actions between cases."
#: inc/processmaker.class.php:1696
msgid "Case title: "
msgstr "Case title: "
#: inc/processmaker.class.php:2178
msgid "A 'Case' is running!"
msgstr "A 'Case' is running!"
#: inc/processmaker.class.php:2179
msgid "You must manage it first (see 'Process - Case' tab)!"
msgstr "You must manage it first (see 'Process - Case' tab)!"
#: inc/profile.class.php:17
msgid "Process configuration"
msgstr "Process configuration"
#: inc/profile.class.php:21
msgid "Cases"
msgstr "Cases"
#: inc/task.class.php:25
msgid "Process case task"
msgid_plural "Process case tasks"
msgstr[0] "Process case task"
msgstr[1] "Process case tasks"
#: inc/taskcategory.class.php:21 inc/taskcategory.class.php:31
msgid "Task List"
msgstr "Task List"
#: inc/taskcategory.class.php:32
msgid "Task name"
msgstr "Task name"
#: inc/taskcategory.class.php:34 inc/taskcategory.class.php:60
msgid "Start"
msgstr "Start"
#: inc/taskcategory.class.php:35
msgid "Task GUID"
msgstr "Task GUID"
#: inc/taskcategory.class.php:38 inc/taskcategory.class.php:78
msgid "Sub-process"
msgstr "Sub-process"
#~ msgid "Plugin is under maintenance, please retry later, thank you."
#~ msgstr "Plugin is under maintenance, please retry later, thank you."

BIN
pics/under_maintenance.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

View File

@@ -123,8 +123,6 @@ function plugin_init_processmaker() {
// Get the name and the version of the plugin - Needed
function plugin_version_processmaker() {
global $LANG;
return array ('name' => 'Process Maker',
'version' => '3.3.0',
'author' => 'Olivier Moron',