From 9844b41381e66f713738e521c17d8f31b3d9b41d Mon Sep 17 00:00:00 2001 From: danloa Date: Tue, 3 Sep 2024 09:52:20 -0400 Subject: [PATCH] Add translation string --- .../Http/Controllers/Api/ProcessRequestFileController.php | 2 +- resources/lang/en.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ProcessMaker/Http/Controllers/Api/ProcessRequestFileController.php b/ProcessMaker/Http/Controllers/Api/ProcessRequestFileController.php index db2071f3c3..fd58eaa475 100644 --- a/ProcessMaker/Http/Controllers/Api/ProcessRequestFileController.php +++ b/ProcessMaker/Http/Controllers/Api/ProcessRequestFileController.php @@ -435,7 +435,7 @@ private function validatePDFFile(UploadedFile $file, &$errors) foreach ($jsKeywords as $keyword) { if (strpos($text, $keyword) !== false) { - $errors[] = __('Dangerous PDF file content.'); + $errors[] = __('Dangerous PDF file content'); break; } } diff --git a/resources/lang/en.json b/resources/lang/en.json index e5955d7a61..21a1f12184 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -429,6 +429,7 @@ "Cycle": "Cycle", "danger": "danger", "Danger": "Danger", + "Dangerous PDF file content": "Dangerous PDF file content", "dark": "dark", "Dark": "Dark", "DashboardCreated": "Dashboard Created",