From e1d38e6487b353f82a8ffcc5f21d6f624c4516cb Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 1 Mar 2026 17:31:49 +0000 Subject: [PATCH] =?UTF-8?q?Wersja=20po=20sprz=C4=85taniu=20i=20t=C5=82umac?= =?UTF-8?q?zeniach?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WorkflowEngine.php | 4 +- _create_person.php | 8 +- _get_instance_details.php | 13 ++-- _header.php | 1 + _sidebar.php | 14 ++-- _update_person.php | 3 +- bni_groups.php | 52 ++++++------- calendar.php | 88 +++++++++++----------- event_types.php | 42 +++++------ functions.php | 48 ++++++------ index.php | 150 ++++++++++++++++++------------------- lang/pl.php | 146 ++++++++++++++++++++++++++++++++++++ lib/ErrorHandler.php | 1 + lib/WorkflowExceptions.php | 21 +++++- lib/i18n.php | 32 ++++++++ 15 files changed, 413 insertions(+), 210 deletions(-) create mode 100644 lang/pl.php create mode 100644 lib/i18n.php diff --git a/WorkflowEngine.php b/WorkflowEngine.php index 9a20ffe..c5185f5 100644 --- a/WorkflowEngine.php +++ b/WorkflowEngine.php @@ -778,8 +778,8 @@ class WorkflowEngine { $meetingId = $stmt->fetchColumn(); if (!$meetingId) { - $stmt = $this->pdo->prepare("INSERT INTO meetings (bni_group_id, meeting_date, meeting_datetime, meeting_key) VALUES (?, DATE(?), ?, ?)"); - $stmt->execute([$bniGroupId, $meetingDatetime, $meetingDatetime, $meetingKey]); + $stmt = $this->pdo->prepare("INSERT INTO meetings (bni_group_id, meeting_datetime, meeting_key) VALUES (?, ?, ?)"); + $stmt->execute([$bniGroupId, $meetingDatetime, $meetingKey]); $meetingId = $this->pdo->lastInsertId(); } diff --git a/_create_person.php b/_create_person.php index 821ff8b..67a5b26 100644 --- a/_create_person.php +++ b/_create_person.php @@ -1,12 +1,14 @@ ['message' => 'Method not allowed.'], 'correlation_id' => uniqid()]); + echo json_encode(['error' => ['message' => t('error.method_not_allowed', 'Niedozwolona metoda.')], 'correlation_id' => uniqid()]); exit; } @@ -27,7 +29,7 @@ $business_description = $_POST['business_description'] ?? null; if (empty($first_name) || empty($last_name) || empty($email) || empty($password)) { http_response_code(422); - echo json_encode(['error' => ['message' => 'First name, last name, email, and password are required.'], 'correlation_id' => uniqid()]); + echo json_encode(['error' => ['message' => t('error.missing_fields', 'Imię, nazwisko, email i hasło są wymagane.')], 'correlation_id' => uniqid()]); exit; } @@ -107,7 +109,7 @@ try { } if ($e->errorInfo[1] == 1062) { http_response_code(409); // Conflict - echo json_encode(['error' => ['message' => 'An account with this email address already exists.'], 'correlation_id' => uniqid()]); + echo json_encode(['error' => ['message' => t('error.email_exists', 'Konto z tym adresem email już istnieje.')], 'correlation_id' => uniqid()]); } else { throw $e; // Re-throw to be caught by the global error handler } diff --git a/_get_instance_details.php b/_get_instance_details.php index be19a97..d56441d 100644 --- a/_get_instance_details.php +++ b/_get_instance_details.php @@ -1,5 +1,6 @@ getInstanceByDefId($person_id, $process_definition_id);
-
Available Actions
+
getInstanceByDefId($person_id, $process_definition_id);
-
Dodaj notatkę
+
- +

-
Historia
+

Brak zdarzeń.

@@ -248,10 +249,10 @@ $instance = $engine->getInstanceByDefId($person_id, $process_definition_id);
-

Process Not Started

+

This process has not been started for this person.

Not Eligible

diff --git a/_header.php b/_header.php index 8deeb98..77328c8 100644 --- a/_header.php +++ b/_header.php @@ -1,5 +1,6 @@ - Pulpit procesów + diff --git a/_update_person.php b/_update_person.php index ec39c8a..3f55c8a 100644 --- a/_update_person.php +++ b/_update_person.php @@ -1,6 +1,7 @@ ['message' => 'First name, last name, and email are required.'], 'correlation_id' => uniqid()]); + echo json_encode(['error' => ['message' => t('error.missing_update_fields', 'Imię, nazwisko i email są wymagane.')], 'correlation_id' => uniqid()]); exit; } diff --git a/bni_groups.php b/bni_groups.php index 15477ee..645f4a5 100644 --- a/bni_groups.php +++ b/bni_groups.php @@ -13,7 +13,7 @@ $bni_groups = $stmt->fetchAll(PDO::FETCH_ASSOC);
-

BNI Groups

+