prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  #2151 contact form field labels
  In EN: 
  
  It should say „Your name“ instead of „your first and last name“
  It should say „I want to receive a copy of my message“ instead of „
  I want to receicve a copy of my message as email“
  
  in DE:
  
  It should say „Ihr Name” instead of „Ihr Vor- und Nachname“
  
  It should say „Eine Kopie der Nachricht an mich senden“ instead of „Eine Kopie der Anfrage an mich senden“
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `apps/cms/contacts/models.py`
  Content:
  ```
  1 import json
  2 
  3 from django.contrib import messages
  4 from django.core.serializers.json import DjangoJSONEncoder
  5 from django.db import models
  6 from django.shortcuts import redirect
  7 from django.utils.translation import ugettext_lazy as _
  8 from modelcluster.fields import ParentalKey
  9 from wagtail.admin.edit_handlers import FieldPanel
  10 from wagtail.admin.edit_handlers import FieldRowPanel
  11 from wagtail.admin.edit_handlers import MultiFieldPanel
  12 from wagtail.admin.edit_handlers import ObjectList
  13 from wagtail.admin.edit_handlers import TabbedInterface
  14 from wagtail.contrib.forms.models import AbstractEmailForm
  15 from wagtail.contrib.forms.models import AbstractFormField
  16 from wagtail.contrib.forms.models import AbstractFormSubmission
  17 from wagtail.core.fields import RichTextField
  18 from wagtail.images.edit_handlers import ImageChooserPanel
  19 
  20 from apps.cms.emails import AnswerToContactFormEmail
  21 from apps.contrib.translations import TranslatedField
  22 
  23 
  24 class FormField(AbstractFormField):
  25     page = ParentalKey('FormPage',
  26                        on_delete=models.CASCADE,
  27                        related_name='form_fields')
  28 
  29 
  30 class CustomFormSubmission(AbstractFormSubmission):
  31     email = models.EmailField()
  32     message = models.TextField()
  33     telephone_number = models.CharField(max_length=100, blank=True)
  34     name = models.CharField(max_length=100, blank=True)
  35 
  36     def get_data(self):
  37         form_data = super().get_data()
  38         form_data.update({
  39             'email': self.email,
  40             'message': self.message,
  41             'telephone_number': self.telephone_number,
  42             'name': self.name
  43         })
  44 
  45         return form_data
  46 
  47 
  48 class FormPage(AbstractEmailForm):
  49     header_de = models.CharField(
  50         max_length=500, blank=True, verbose_name="Header")
  51     header_en = models.CharField(
  52         max_length=500, blank=True, verbose_name="Header")
  53 
  54     intro_en = RichTextField(blank=True)
  55     intro_de = RichTextField(blank=True)
  56 
  57     thank_you_text_en = models.TextField(blank=True)
  58     thank_you_text_de = models.TextField(blank=True)
  59 
  60     contact_person_name = models.CharField(max_length=100, blank=True)
  61     contact_person_image = models.ForeignKey(
  62         'wagtailimages.Image',
  63         null=True,
  64         blank=True,
  65         on_delete=models.SET_NULL,
  66         related_name='+',
  67         verbose_name="Image of contact person",
  68         help_text="The Image will be shown "
  69                   "besides the name of the contact person"
  70     )
  71 
  72     header = TranslatedField(
  73         'header_de',
  74         'header_en'
  75     )
  76 
  77     intro = TranslatedField(
  78         'intro_de',
  79         'intro_en'
  80     )
  81 
  82     thank_you_text = TranslatedField(
  83         'thank_you_text_de',
  84         'thank_you_text_en'
  85     )
  86 
  87     def get_submission_class(self):
  88         return CustomFormSubmission
  89 
  90     def process_form_submission(self, form):
  91         data = form.cleaned_data
  92         submission = self.get_submission_class().objects.create(
  93             form_data=json.dumps(form.cleaned_data, cls=DjangoJSONEncoder),
  94             page=self, email=data['email'], message=data['message'],
  95             telephone_number=data['telephone_number'], name=data['name']
  96         )
  97         if self.to_address:
  98             self.send_mail(form)
  99         if form.cleaned_data['receive_copy']:
  100             AnswerToContactFormEmail.send(submission)
  101         return submission
  102 
  103     def render_landing_page(
  104             self, request, form_submission=None, *args, **kwargs):
  105         if 'HTTP_REFERER' in request.META \
  106                 and request.META.get('HTTP_REFERER'):
  107             messages.add_message(request, messages.SUCCESS,
  108                                  self.thank_you_text)
  109             return redirect(request.META['HTTP_REFERER'])
  110         return super().render_landing_page(
  111             request, form_submission, *args, **kwargs)
  112 
  113     def get_form_fields(self):
  114         fields = list(super().get_form_fields())
  115         fields.insert(0, FormField(
  116             label='receive_copy',
  117             field_type='checkbox',
  118             help_text=_('I want to receicve a copy of my message as email'),
  119             required=False))
  120 
  121         fields.insert(0, FormField(
  122             label='message',
  123             help_text=_('Your message'),
  124             field_type='multiline',
  125             required=True))
  126 
  127         fields.insert(0, FormField(
  128             label='email',
  129             help_text=_('Your email address'),
  130             field_type='email',
  131             required=True))
  132 
  133         fields.insert(0, FormField(
  134             label='telephone_number',
  135             help_text=_('Your telephone number'),
  136             field_type='singleline',
  137             required=False))
  138 
  139         fields.insert(0, FormField(
  140             label='name',
  141             help_text=_('Your first and last name'),
  142             field_type='singleline',
  143             required=False))
  144         return fields
  145 
  146     en_content_panels = [
  147         FieldPanel('header_en'),
  148         FieldPanel('intro_en'),
  149         FieldPanel('thank_you_text_en'),
  150     ]
  151 
  152     de_content_panels = [
  153         FieldPanel('header_de'),
  154         FieldPanel('intro_de'),
  155         FieldPanel('thank_you_text_de'),
  156     ]
  157 
  158     common_panels = [
  159         FieldPanel('title'),
  160         FieldPanel('slug'),
  161         MultiFieldPanel([
  162             FieldRowPanel([
  163                 FieldPanel('from_address', classname="col6"),
  164                 FieldPanel('to_address', classname="col6"),
  165             ]),
  166             FieldPanel('subject'),
  167         ], "Email"),
  168         MultiFieldPanel([
  169             FieldRowPanel([
  170                 FieldPanel('contact_person_name', classname="col6"),
  171                 ImageChooserPanel('contact_person_image', classname="col6"),
  172             ]),
  173         ], "Contact Person"),
  174 
  175     ]
  176 
  177     edit_handler = TabbedInterface([
  178         ObjectList(common_panels, heading='Common'),
  179         ObjectList(en_content_panels, heading='English'),
  180         ObjectList(de_content_panels, heading='German')
  181     ])
  182
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/apps/cms/contacts/models.py b/apps/cms/contacts/models.py
  --- a/apps/cms/contacts/models.py
  +++ b/apps/cms/contacts/models.py
  @@ -115,7 +115,7 @@
           fields.insert(0, FormField(
               label='receive_copy',
               field_type='checkbox',
  -            help_text=_('I want to receicve a copy of my message as email'),
  +            help_text=_('I want to receive a copy of my message'),
               required=False))
   
           fields.insert(0, FormField(
  @@ -138,7 +138,7 @@
   
           fields.insert(0, FormField(
               label='name',
  -            help_text=_('Your first and last name'),
  +            help_text=_('Your name'),
               field_type='singleline',
               required=False))
           return fields
  
verification_info: {"golden_diff": "diff --git a/apps/cms/contacts/models.py b/apps/cms/contacts/models.py\n--- a/apps/cms/contacts/models.py\n+++ b/apps/cms/contacts/models.py\n@@ -115,7 +115,7 @@\n         fields.insert(0, FormField(\n             label='receive_copy',\n             field_type='checkbox',\n-            help_text=_('I want to receicve a copy of my message as email'),\n+            help_text=_('I want to receive a copy of my message'),\n             required=False))\n \n         fields.insert(0, FormField(\n@@ -138,7 +138,7 @@\n \n         fields.insert(0, FormField(\n             label='name',\n-            help_text=_('Your first and last name'),\n+            help_text=_('Your name'),\n             field_type='singleline',\n             required=False))\n         return fields\n", "issue": "#2151 contact form field labels\nIn EN: \r\n\r\nIt should say \u201eYour name\u201c instead of \u201eyour first and last name\u201c\r\nIt should say \u201eI want to receive a copy of my message\u201c instead of \u201e\r\nI want to receicve a copy of my message as email\u201c\r\n\r\nin DE:\r\n\r\nIt should say \u201eIhr Name\u201d instead of \u201eIhr Vor- und Nachname\u201c\r\n\r\nIt should say \u201eEine Kopie der Nachricht an mich senden\u201c instead of \u201eEine Kopie der Anfrage an mich senden\u201c\r\n\n", "before_files": [{"content": "import json\n\nfrom django.contrib import messages\nfrom django.core.serializers.json import DjangoJSONEncoder\nfrom django.db import models\nfrom django.shortcuts import redirect\nfrom django.utils.translation import ugettext_lazy as _\nfrom modelcluster.fields import ParentalKey\nfrom wagtail.admin.edit_handlers import FieldPanel\nfrom wagtail.admin.edit_handlers import FieldRowPanel\nfrom wagtail.admin.edit_handlers import MultiFieldPanel\nfrom wagtail.admin.edit_handlers import ObjectList\nfrom wagtail.admin.edit_handlers import TabbedInterface\nfrom wagtail.contrib.forms.models import AbstractEmailForm\nfrom wagtail.contrib.forms.models import AbstractFormField\nfrom wagtail.contrib.forms.models import AbstractFormSubmission\nfrom wagtail.core.fields import RichTextField\nfrom wagtail.images.edit_handlers import ImageChooserPanel\n\nfrom apps.cms.emails import AnswerToContactFormEmail\nfrom apps.contrib.translations import TranslatedField\n\n\nclass FormField(AbstractFormField):\n    page = ParentalKey('FormPage',\n                       on_delete=models.CASCADE,\n                       related_name='form_fields')\n\n\nclass CustomFormSubmission(AbstractFormSubmission):\n    email = models.EmailField()\n    message = models.TextField()\n    telephone_number = models.CharField(max_length=100, blank=True)\n    name = models.CharField(max_length=100, blank=True)\n\n    def get_data(self):\n        form_data = super().get_data()\n        form_data.update({\n            'email': self.email,\n            'message': self.message,\n            'telephone_number': self.telephone_number,\n            'name': self.name\n        })\n\n        return form_data\n\n\nclass FormPage(AbstractEmailForm):\n    header_de = models.CharField(\n        max_length=500, blank=True, verbose_name=\"Header\")\n    header_en = models.CharField(\n        max_length=500, blank=True, verbose_name=\"Header\")\n\n    intro_en = RichTextField(blank=True)\n    intro_de = RichTextField(blank=True)\n\n    thank_you_text_en = models.TextField(blank=True)\n    thank_you_text_de = models.TextField(blank=True)\n\n    contact_person_name = models.CharField(max_length=100, blank=True)\n    contact_person_image = models.ForeignKey(\n        'wagtailimages.Image',\n        null=True,\n        blank=True,\n        on_delete=models.SET_NULL,\n        related_name='+',\n        verbose_name=\"Image of contact person\",\n        help_text=\"The Image will be shown \"\n                  \"besides the name of the contact person\"\n    )\n\n    header = TranslatedField(\n        'header_de',\n        'header_en'\n    )\n\n    intro = TranslatedField(\n        'intro_de',\n        'intro_en'\n    )\n\n    thank_you_text = TranslatedField(\n        'thank_you_text_de',\n        'thank_you_text_en'\n    )\n\n    def get_submission_class(self):\n        return CustomFormSubmission\n\n    def process_form_submission(self, form):\n        data = form.cleaned_data\n        submission = self.get_submission_class().objects.create(\n            form_data=json.dumps(form.cleaned_data, cls=DjangoJSONEncoder),\n            page=self, email=data['email'], message=data['message'],\n            telephone_number=data['telephone_number'], name=data['name']\n        )\n        if self.to_address:\n            self.send_mail(form)\n        if form.cleaned_data['receive_copy']:\n            AnswerToContactFormEmail.send(submission)\n        return submission\n\n    def render_landing_page(\n            self, request, form_submission=None, *args, **kwargs):\n        if 'HTTP_REFERER' in request.META \\\n                and request.META.get('HTTP_REFERER'):\n            messages.add_message(request, messages.SUCCESS,\n                                 self.thank_you_text)\n            return redirect(request.META['HTTP_REFERER'])\n        return super().render_landing_page(\n            request, form_submission, *args, **kwargs)\n\n    def get_form_fields(self):\n        fields = list(super().get_form_fields())\n        fields.insert(0, FormField(\n            label='receive_copy',\n            field_type='checkbox',\n            help_text=_('I want to receicve a copy of my message as email'),\n            required=False))\n\n        fields.insert(0, FormField(\n            label='message',\n            help_text=_('Your message'),\n            field_type='multiline',\n            required=True))\n\n        fields.insert(0, FormField(\n            label='email',\n            help_text=_('Your email address'),\n            field_type='email',\n            required=True))\n\n        fields.insert(0, FormField(\n            label='telephone_number',\n            help_text=_('Your telephone number'),\n            field_type='singleline',\n            required=False))\n\n        fields.insert(0, FormField(\n            label='name',\n            help_text=_('Your first and last name'),\n            field_type='singleline',\n            required=False))\n        return fields\n\n    en_content_panels = [\n        FieldPanel('header_en'),\n        FieldPanel('intro_en'),\n        FieldPanel('thank_you_text_en'),\n    ]\n\n    de_content_panels = [\n        FieldPanel('header_de'),\n        FieldPanel('intro_de'),\n        FieldPanel('thank_you_text_de'),\n    ]\n\n    common_panels = [\n        FieldPanel('title'),\n        FieldPanel('slug'),\n        MultiFieldPanel([\n            FieldRowPanel([\n                FieldPanel('from_address', classname=\"col6\"),\n                FieldPanel('to_address', classname=\"col6\"),\n            ]),\n            FieldPanel('subject'),\n        ], \"Email\"),\n        MultiFieldPanel([\n            FieldRowPanel([\n                FieldPanel('contact_person_name', classname=\"col6\"),\n                ImageChooserPanel('contact_person_image', classname=\"col6\"),\n            ]),\n        ], \"Contact Person\"),\n\n    ]\n\n    edit_handler = TabbedInterface([\n        ObjectList(common_panels, heading='Common'),\n        ObjectList(en_content_panels, heading='English'),\n        ObjectList(de_content_panels, heading='German')\n    ])\n", "path": "apps/cms/contacts/models.py"}], "after_files": [{"content": "import json\n\nfrom django.contrib import messages\nfrom django.core.serializers.json import DjangoJSONEncoder\nfrom django.db import models\nfrom django.shortcuts import redirect\nfrom django.utils.translation import ugettext_lazy as _\nfrom modelcluster.fields import ParentalKey\nfrom wagtail.admin.edit_handlers import FieldPanel\nfrom wagtail.admin.edit_handlers import FieldRowPanel\nfrom wagtail.admin.edit_handlers import MultiFieldPanel\nfrom wagtail.admin.edit_handlers import ObjectList\nfrom wagtail.admin.edit_handlers import TabbedInterface\nfrom wagtail.contrib.forms.models import AbstractEmailForm\nfrom wagtail.contrib.forms.models import AbstractFormField\nfrom wagtail.contrib.forms.models import AbstractFormSubmission\nfrom wagtail.core.fields import RichTextField\nfrom wagtail.images.edit_handlers import ImageChooserPanel\n\nfrom apps.cms.emails import AnswerToContactFormEmail\nfrom apps.contrib.translations import TranslatedField\n\n\nclass FormField(AbstractFormField):\n    page = ParentalKey('FormPage',\n                       on_delete=models.CASCADE,\n                       related_name='form_fields')\n\n\nclass CustomFormSubmission(AbstractFormSubmission):\n    email = models.EmailField()\n    message = models.TextField()\n    telephone_number = models.CharField(max_length=100, blank=True)\n    name = models.CharField(max_length=100, blank=True)\n\n    def get_data(self):\n        form_data = super().get_data()\n        form_data.update({\n            'email': self.email,\n            'message': self.message,\n            'telephone_number': self.telephone_number,\n            'name': self.name\n        })\n\n        return form_data\n\n\nclass FormPage(AbstractEmailForm):\n    header_de = models.CharField(\n        max_length=500, blank=True, verbose_name=\"Header\")\n    header_en = models.CharField(\n        max_length=500, blank=True, verbose_name=\"Header\")\n\n    intro_en = RichTextField(blank=True)\n    intro_de = RichTextField(blank=True)\n\n    thank_you_text_en = models.TextField(blank=True)\n    thank_you_text_de = models.TextField(blank=True)\n\n    contact_person_name = models.CharField(max_length=100, blank=True)\n    contact_person_image = models.ForeignKey(\n        'wagtailimages.Image',\n        null=True,\n        blank=True,\n        on_delete=models.SET_NULL,\n        related_name='+',\n        verbose_name=\"Image of contact person\",\n        help_text=\"The Image will be shown \"\n                  \"besides the name of the contact person\"\n    )\n\n    header = TranslatedField(\n        'header_de',\n        'header_en'\n    )\n\n    intro = TranslatedField(\n        'intro_de',\n        'intro_en'\n    )\n\n    thank_you_text = TranslatedField(\n        'thank_you_text_de',\n        'thank_you_text_en'\n    )\n\n    def get_submission_class(self):\n        return CustomFormSubmission\n\n    def process_form_submission(self, form):\n        data = form.cleaned_data\n        submission = self.get_submission_class().objects.create(\n            form_data=json.dumps(form.cleaned_data, cls=DjangoJSONEncoder),\n            page=self, email=data['email'], message=data['message'],\n            telephone_number=data['telephone_number'], name=data['name']\n        )\n        if self.to_address:\n            self.send_mail(form)\n        if form.cleaned_data['receive_copy']:\n            AnswerToContactFormEmail.send(submission)\n        return submission\n\n    def render_landing_page(\n            self, request, form_submission=None, *args, **kwargs):\n        if 'HTTP_REFERER' in request.META \\\n                and request.META.get('HTTP_REFERER'):\n            messages.add_message(request, messages.SUCCESS,\n                                 self.thank_you_text)\n            return redirect(request.META['HTTP_REFERER'])\n        return super().render_landing_page(\n            request, form_submission, *args, **kwargs)\n\n    def get_form_fields(self):\n        fields = list(super().get_form_fields())\n        fields.insert(0, FormField(\n            label='receive_copy',\n            field_type='checkbox',\n            help_text=_('I want to receive a copy of my message'),\n            required=False))\n\n        fields.insert(0, FormField(\n            label='message',\n            help_text=_('Your message'),\n            field_type='multiline',\n            required=True))\n\n        fields.insert(0, FormField(\n            label='email',\n            help_text=_('Your email address'),\n            field_type='email',\n            required=True))\n\n        fields.insert(0, FormField(\n            label='telephone_number',\n            help_text=_('Your telephone number'),\n            field_type='singleline',\n            required=False))\n\n        fields.insert(0, FormField(\n            label='name',\n            help_text=_('Your name'),\n            field_type='singleline',\n            required=False))\n        return fields\n\n    en_content_panels = [\n        FieldPanel('header_en'),\n        FieldPanel('intro_en'),\n        FieldPanel('thank_you_text_en'),\n    ]\n\n    de_content_panels = [\n        FieldPanel('header_de'),\n        FieldPanel('intro_de'),\n        FieldPanel('thank_you_text_de'),\n    ]\n\n    common_panels = [\n        FieldPanel('title'),\n        FieldPanel('slug'),\n        MultiFieldPanel([\n            FieldRowPanel([\n                FieldPanel('from_address', classname=\"col6\"),\n                FieldPanel('to_address', classname=\"col6\"),\n            ]),\n            FieldPanel('subject'),\n        ], \"Email\"),\n        MultiFieldPanel([\n            FieldRowPanel([\n                FieldPanel('contact_person_name', classname=\"col6\"),\n                ImageChooserPanel('contact_person_image', classname=\"col6\"),\n            ]),\n        ], \"Contact Person\"),\n\n    ]\n\n    edit_handler = TabbedInterface([\n        ObjectList(common_panels, heading='Common'),\n        ObjectList(en_content_panels, heading='English'),\n        ObjectList(de_content_panels, heading='German')\n    ])\n", "path": "apps/cms/contacts/models.py"}]}