From e92069c8db31cb010dc0a0b81e9accb1a98b84d4 Mon Sep 17 00:00:00 2001 From: PoliEcho Date: Sat, 17 May 2025 16:47:55 +0200 Subject: [PATCH] =?UTF-8?q?Trestn=C3=AD=20ozn=C3=A1men=C3=AD=20edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor_easy.cpp | 44 ++++++++++++------------------ src/strings.cpp | 66 +++++++++++++++++++++------------------------ 2 files changed, 48 insertions(+), 62 deletions(-) diff --git a/src/editor_easy.cpp b/src/editor_easy.cpp index 3acf332..466886f 100644 --- a/src/editor_easy.cpp +++ b/src/editor_easy.cpp @@ -212,36 +212,26 @@ std::vector editor_easy_allocated; char date_str[100]; std::strftime(date_str, sizeof(date_str), "%d.%m.%Y", now); - auto name_thing_args = std::make_format_args(field_values[7]); - const std::string name_thing = - field_values[7].empty() - ? loc_strings->call_to_stop_illegal_activity - : std::vformat(loc_strings->call_to_stop_illegal_activity_with_name, - name_thing_args); + auto comp_args = + std::make_format_args(field_values[0], // Jméno a příjmení odesílatele + field_values[1], // Adresa odesílatele + field_values[2], // Telefon odesílatele + field_values[3], // Email odesílatele - auto comp_args = std::make_format_args( - field_values[4], // Místo - date_str, // Aktuální datum - field_values[7], // Jméno a příjmení adresáta - field_values[10], // Adresa adresáta (přidejte do pole) - field_values[11], // Telefon adresáta (přidejte do pole) - field_values[12], // Email adresáta (přidejte do pole) + field_values[7], // Jméno a příjmení adresáta + field_values[10], // Adresa adresáta + field_values[11], // Telefon adresáta + field_values[12], // Email adresáta - // Odesílatel - field_values[0], // Jméno a příjmení odesílatele - field_values[1], // Adresa odesílatele - field_values[2], // Telefon odesílatele - field_values[3], // Email odesílatele + date_str, // Aktuální datum + field_values[4], // Místo činu + field_values[5], // Datum činu - name_thing, - - field_values[5], // Datum činu - field_values[4], // Místo činu - field_values[6], // Popis činu - field_values[8], // Důkazy - field_values[9], // Další informace - field_values[0] // Jméno pro podpis - ); + field_values[6], // Popis činu + field_values[8], // Důkazy + field_values[9], // Další informace + field_values[0] // Jméno pro podpis + ); std::string complaint = std::vformat(loc_strings->criminal_complaint_template, comp_args); diff --git a/src/strings.cpp b/src/strings.cpp index 86b4523..0685304 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -36,33 +36,32 @@ To: Police of the Czech Republic Complainant: -Name and Surname: {} -Address: {} -Phone: {} -E-mail: {} +Name and Surname: {0} +Address: {1} +Phone: {2} +E-mail: {3} Accused: -Name and Surname: {} -Address: {} -Phone: {} -E-mail: {} +Name and Surname: {4} +Address: {5} +Phone: {6} +E-mail: {7} Subject: suspicion of committing a criminal offence -Place of submission of the complaint: {} -Date of submission of the complaint: {} +Date of submission of the complaint: {8} -On {} at {} {}. +On {9} at {10}. Factual circumstances: - {} + {11} Evidence: - {} + {12} Additional information: - {} + {13} I request the Police of the Czech Republic to: @@ -72,9 +71,7 @@ I request the Police of the Czech Republic to: submit a proposal to the public prosecutor. -In {} - -Signature of the complainant: {} +Signature of the complainant: {0} *This is not a legal document, but only a template for informational purposes. For legal advice, please consult a qualified attorney.* )"}; @@ -114,42 +111,41 @@ Komu: Policie ČR Oznamovatel: - Jméno a příjmení: {} - Adresa: {} - Telefon: {} - E-mail: {} + Jméno a příjmení: {0} + Adresa: {1} + Telefon: {2} + E-mail: {3} Obviněný: - Jméno a příjmení: {} - Adresa: {} - Telefon: {} - E-mail: {} + Jméno a příjmení: {4} + Adresa: {5} + Telefon: {6} + E-mail: {7} Věc: podezření ze spáchání trestného činu -Místo podání oznámení: {} -Datum podání oznámení: {} +Datum podání oznámení: {8} -Dne {} v místě {} {}. +Dne {9} v místě {10}. -1. Skutkové okolnosti: -{} + 1. Skutkové okolnosti: + {11} -2. Důkazy: -{} + 2. Důkazy: + {12} 3. Další informace: -{} +{13} Žádám Policii ČR: - přijmout veškerá opatření k objasnění a prošetření věci, - vyslechnout svědky a zajistit důkazní materiály, - podat podnět státnímu zástupci. -V {} -Podpis oznamovatele: {} + +Podpis oznamovatele: {0} *Toto není právní dokument, ale pouze vzor pro informativní účely. Pro právní poradenství se obraťte na kvalifikovaného právníka.* )"};