From c3fc040751c08d8d7b4db73d0f75d3c0f176df62 Mon Sep 17 00:00:00 2001 From: Dario <446-dario@users.noreply.gitlab.hamburg.ccc.de> Date: Fri, 28 Jul 2023 23:59:02 +0200 Subject: [PATCH] AES: patch code and l10n to add train drivers license --- playbooks/deploy_engelsystem.yaml | 8 ++++++++ playbooks/files/patches/engelsystem/code_en.patch | 8 ++++++++ playbooks/files/patches/engelsystem/lang_de.patch | 12 ++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 playbooks/files/patches/engelsystem/code_en.patch create mode 100644 playbooks/files/patches/engelsystem/lang_de.patch diff --git a/playbooks/deploy_engelsystem.yaml b/playbooks/deploy_engelsystem.yaml index f8442ca..80df811 100644 --- a/playbooks/deploy_engelsystem.yaml +++ b/playbooks/deploy_engelsystem.yaml @@ -18,3 +18,11 @@ version: main force: true update: false + - name: apply patch to code to add train drivers license + ansible.posix.patch: + src: patches/engelsystem/code_en.patch + dest: "{{ ansible_user_dir }}/engelsystem/includes/view/UserDriverLicenses_view.php" + - name: apply patch to german locale add train drivers license + ansible.posix.patch: + src: patches/engelsystem/lang_de.patch + dest: "{{ ansible_user_dir }}/engelsystem/resources/lang/de_DE/default.po" \ No newline at end of file diff --git a/playbooks/files/patches/engelsystem/code_en.patch b/playbooks/files/patches/engelsystem/code_en.patch new file mode 100644 index 0000000..cdb613e --- /dev/null +++ b/playbooks/files/patches/engelsystem/code_en.patch @@ -0,0 +1,8 @@ +22c22 +< form_checkbox('wants_to_drive', __('I am willing to drive a car for the event'), $user_driver_license->wantsToDrive()), +--- +> form_checkbox('wants_to_drive', __('I am willing to drive a vehicle for the event'), $user_driver_license->wantsToDrive()), +48c48 +< __('Forklift'), +--- +> __('Train'), diff --git a/playbooks/files/patches/engelsystem/lang_de.patch b/playbooks/files/patches/engelsystem/lang_de.patch new file mode 100644 index 0000000..2983bfa --- /dev/null +++ b/playbooks/files/patches/engelsystem/lang_de.patch @@ -0,0 +1,12 @@ +1390,1391c1390,1391 +< msgid "Forklift" +< msgstr "Gabelstapler" +--- +> msgid "Train" +> msgstr "Lok" +1643,1644c1643,1644 +< msgid "I am willing to drive a car for the event" +< msgstr "Ich möchte für das Event Auto fahren" +--- +> msgid "I am willing to drive a vehicle for the event" +> msgstr "Ich möchte für das Event Fahrzeuge fahren"