From 2b668dd0556fb34a2812f55a5a793020f3111d38 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Wed, 27 Mar 2024 13:17:51 +0100 Subject: [PATCH] Add missing tanslations --- application/forms/BpConfigForm.php | 6 +++--- application/forms/BpUploadForm.php | 2 +- application/forms/ProcessForm.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/application/forms/BpConfigForm.php b/application/forms/BpConfigForm.php index 8a0bc95d..1abd9872 100644 --- a/application/forms/BpConfigForm.php +++ b/application/forms/BpConfigForm.php @@ -165,7 +165,7 @@ protected function onRequest() $this->bp->clearAppliedChanges(); $this->storage->deleteProcess($name); $this->setSuccessUrl('businessprocess'); - $this->redirectOnSuccess(sprintf('Process %s has been deleted', $name)); + $this->redirectOnSuccess(sprintf($this->translate('Process %s has been deleted'), $name)); } } } @@ -197,10 +197,10 @@ public function onSuccess() array('config' => $name, 'unlocked' => true) ) ); - $this->setSuccessMessage(sprintf('Process %s has been created', $name)); + $this->setSuccessMessage(sprintf($this->translate('Process %s has been created'), $name)); } else { $config = $this->bp; - $this->setSuccessMessage(sprintf('Process %s has been stored', $name)); + $this->setSuccessMessage(sprintf($this->translate('Process %s has been stored'), $name)); } $meta = $config->getMetadata(); foreach ($this->getValues() as $key => $value) { diff --git a/application/forms/BpUploadForm.php b/application/forms/BpUploadForm.php index a7467408..9327981f 100644 --- a/application/forms/BpUploadForm.php +++ b/application/forms/BpUploadForm.php @@ -198,7 +198,7 @@ public function onSuccess() } $this->storage->storeProcess($config); - Notification::success(sprintf('Process %s has been stored', $name)); + Notification::success(sprintf($this->translate('Process %s has been stored'), $name)); $this->getSuccessUrl()->setParam('config', $name); diff --git a/application/forms/ProcessForm.php b/application/forms/ProcessForm.php index 126fe9ba..1fa40ec2 100644 --- a/application/forms/ProcessForm.php +++ b/application/forms/ProcessForm.php @@ -143,7 +143,7 @@ public function onSuccess() Notification::success( sprintf( - 'Process %s has been modified', + $this->translate('Process %s has been modified'), $this->bp->getName() ) );