mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
Review backend translations
This commit is contained in:
parent
6d970a7925
commit
050dce5805
4 changed files with 8 additions and 8 deletions
|
|
@ -22,7 +22,7 @@
|
|||
</dependencies>
|
||||
<navigations>
|
||||
<navigation>
|
||||
<name>Libresign</name>
|
||||
<name>LibreSign</name>
|
||||
<route>libresign.page.index</route>
|
||||
</navigation>
|
||||
</navigations>
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ class LibresignController extends Controller {
|
|||
$originalFile = $originalFile[0];
|
||||
$signedFilePath = preg_replace(
|
||||
'/' . $originalFile->getExtension() . '$/',
|
||||
$this->l10n->t('signed').'.'.$originalFile->getExtension(),
|
||||
$this->l10n->t('signed.%s', $originalFile->getExtension()),
|
||||
$originalFile->getPath()
|
||||
);
|
||||
|
||||
|
|
@ -221,7 +221,7 @@ class LibresignController extends Controller {
|
|||
$pdf->SetXY(5, -10);
|
||||
|
||||
$pdf->Write(8, $this->l10n->t(
|
||||
'Digital signed by LibreSign. Validate in http://validador.lt.coop.br'
|
||||
'Digital signed by LibreSign. Validate in %s', 'http://validador.lt.coop.br'
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class JSConfigHelper {
|
|||
$fileUser = $this->fileUserMapper->getByUuid($uuid);
|
||||
} catch (\Throwable $th) {
|
||||
$return['action'] = JSActions::ACTION_DO_NOTHING;
|
||||
$return['errors'][] = $this->l10n->t('Invalid uuid');
|
||||
$return['errors'][] = $this->l10n->t('Invalid UUID');
|
||||
return $return;
|
||||
}
|
||||
$fileUserId = $fileUser->getUserId();
|
||||
|
|
|
|||
|
|
@ -189,16 +189,16 @@ class WebhookService {
|
|||
|
||||
private function validateUser($user, $index) {
|
||||
if (!is_array($user)) {
|
||||
throw new \Exception($this->l10n->t('User collection need to be an array: user ' . $index));
|
||||
throw new \Exception($this->l10n->t('User collection need to be an array: user %s', $index));
|
||||
}
|
||||
if (!$user) {
|
||||
throw new \Exception($this->l10n->t('User collection need to be an array with values: user ' . $index));
|
||||
throw new \Exception($this->l10n->t('User collection need to be an array with values: user %s', $index));
|
||||
}
|
||||
if (empty($user['email'])) {
|
||||
throw new \Exception($this->l10n->t('User need to be email: user ' . $index));
|
||||
throw new \Exception($this->l10n->t('User need to be email: user %s', $index));
|
||||
}
|
||||
if (!filter_var($user['email'], FILTER_VALIDATE_EMAIL)) {
|
||||
throw new \Exception($this->l10n->t('Invalid email: user ' . $index));
|
||||
throw new \Exception($this->l10n->t('Invalid email: user %s', $index));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue