From f5a2db4f127049f89ecc3222426321a98660dcae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 1 Mar 2011 09:46:34 +0000 Subject: [PATCH] Workflow is empty by default but can be modified with module workflow --- htdocs/admin/workflow.php | 3 ++- .../interface_modWorkflow_WorkflowManager.class.php | 2 +- htdocs/langs/en_US/workflow.lang | 6 ++++++ htdocs/langs/fr_FR/workflow.lang | 6 ++++++ 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 htdocs/langs/en_US/workflow.lang create mode 100755 htdocs/langs/fr_FR/workflow.lang diff --git a/htdocs/admin/workflow.php b/htdocs/admin/workflow.php index 1862313625c..52262405376 100755 --- a/htdocs/admin/workflow.php +++ b/htdocs/admin/workflow.php @@ -30,6 +30,7 @@ require("../main.inc.php"); require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php"); $langs->load("admin"); +$langs->load("workflow"); if (!$user->admin) accessforbidden(); @@ -101,7 +102,7 @@ if (sizeof($workflowcodes) > 0) { $var = !$var; print "\n"; - print "".$langs->trans($code)."\n"; + print "".$langs->trans('desc'.$code)."\n"; if (! empty($conf->global->$code)) { print ''; diff --git a/htdocs/includes/triggers/interface_modWorkflow_WorkflowManager.class.php b/htdocs/includes/triggers/interface_modWorkflow_WorkflowManager.class.php index 512f0948b54..0d247afb34b 100755 --- a/htdocs/includes/triggers/interface_modWorkflow_WorkflowManager.class.php +++ b/htdocs/includes/triggers/interface_modWorkflow_WorkflowManager.class.php @@ -44,7 +44,7 @@ class InterfaceWorkflowManager $this->name = preg_replace('/^Interface/i','',get_class($this)); $this->family = "core"; $this->description = "Triggers of this module allows to manage workflows"; - $this->version = 'experimental'; // 'development', 'experimental', 'dolibarr' or version + $this->version = 'dolibarr'; // 'development', 'experimental', 'dolibarr' or version } diff --git a/htdocs/langs/en_US/workflow.lang b/htdocs/langs/en_US/workflow.lang new file mode 100755 index 00000000000..b0105dd7e03 --- /dev/null +++ b/htdocs/langs/en_US/workflow.lang @@ -0,0 +1,6 @@ +# Dolibarr language file - fr_FR - admin +CHARSET= UTF-8 +WorkflowSetup=Workflow module setup +WorkflowDesc=This module is desinged to modify the behaviour of automatic actions into application. By default, workflow is opened (you make thing in order you want). You can enabled automatic actions that you are interesting in. +ThereIsNoWorkflowToModify=There is no workflow you can modify for module you have activated. +descWORKFLOW_PROPAL_AUTOCREATE_ORDER=Create a customer order automatically after a commercial proposal is signed diff --git a/htdocs/langs/fr_FR/workflow.lang b/htdocs/langs/fr_FR/workflow.lang new file mode 100755 index 00000000000..ce3143c7f3e --- /dev/null +++ b/htdocs/langs/fr_FR/workflow.lang @@ -0,0 +1,6 @@ +# Dolibarr language file - fr_FR - admin +CHARSET= UTF-8 +WorkflowSetup=Configuration du module workflow +WorkflowDesc=Ce module vous permet de modifier le comportement d'enchainement automatisé. Par défaut, le workflow est ouvert et non imposé. A vous d'activer les liens automatiques qui vous intéressent. +ThereIsNoWorkflowToModify=Il n'y a pas de flux workflow modifiable pour les modules que vous avez activés. +descWORKFLOW_PROPAL_AUTOCREATE_ORDER=Créer une commande client automatiquement à la signature d'une proposition commerciale