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"