Skip to content

Commit

Permalink
Add missing tanslations
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Mar 27, 2024
1 parent 3c997db commit 2b668dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions application/forms/BpConfigForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion application/forms/BpUploadForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion application/forms/ProcessForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
);
Expand Down

0 comments on commit 2b668dd

Please sign in to comment.