We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Menu Translations
<!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se -->

### Description

Not all menu pages are using `translated_title` when being added to the menu.

<!-- Please select the appropriate "topic category"/blue and "issue type"/yellow label -->


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `website/website/templatetags/site_tags.py`
Content:
```
1 from django import template
2 
3 register = template.Library()
4 
5 
6 @register.simple_tag(takes_context=True)
7 def get_site_root(context):
8     # NB this returns a core.Page, not the implementation-specific model used
9     # so object-comparison to self will return false as objects would differ
10     return context['request'].site.root_page
11 
12 
13 def has_menu_children(page):
14     return page.get_children().live().in_menu().exists()
15 
16 
17 # Retrieves the top menu items - the immediate children of the parent page
18 # The has_menu_children method is necessary because the bootstrap menu requires
19 # a dropdown class to be applied to a parent
20 @register.inclusion_tag('tags/menu.html', takes_context=True)
21 def menu_items(context, parent, calling_page=None, sidenav=False):
22     menuitems = parent.get_children().live().in_menu()
23     for menuitem in menuitems:
24         menuitem.show_dropdown = has_menu_children(menuitem)
25         if hasattr(menuitem, 'recruitmentpage'):
26             menuitem.translated_title = menuitem.recruitmentpage\
27                 .translated_title
28         # We don't directly check if calling_page is None since the template
29         # engine can pass an empty string to calling_page
30         # if the variable passed as calling_page does not exist.
31         menuitem.active = (calling_page.url.startswith(menuitem.url)
32                            if calling_page else False)
33     return {
34         'calling_page': calling_page,
35         'menuitems': menuitems,
36         'sidenav': sidenav,
37         # required by the pageurl tag that we want to use within this template
38         'request': context['request'],
39     }
40 
41 
42 # Retrieves the children of the top menu items for the drop downs
43 @register.inclusion_tag('tags/menu_children.html', takes_context=True)
44 def menu_children(context, parent, sidenav=False):
45     children = parent.get_children()
46     children = children.live().in_menu()
47     return {
48         'parent': parent,
49         'children': children,
50         'sidenav': sidenav,
51         # required by the pageurl tag that we want to use within this template
52         'request': context['request'],
53     }
54
```
--- 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()

```

diff --git a/website/website/templatetags/site_tags.py b/website/website/templatetags/site_tags.py
--- a/website/website/templatetags/site_tags.py
+++ b/website/website/templatetags/site_tags.py
@@ -22,9 +22,24 @@
     menuitems = parent.get_children().live().in_menu()
     for menuitem in menuitems:
         menuitem.show_dropdown = has_menu_children(menuitem)
-        if hasattr(menuitem, 'recruitmentpage'):
+        # TODO: There has to be a better alternative!
+        if hasattr(menuitem, 'googleformindex'):
+            menuitem.translated_title = menuitem.googleformindex\
+                .translated_title
+        elif hasattr(menuitem, 'googleformpage'):
+            menuitem.translated_title = menuitem.googleformpage\
+                .translated_title
+        elif hasattr(menuitem, 'homepage'):
+            menuitem.translated_title = menuitem.homepage.translated_title
+        elif hasattr(menuitem, 'recruitmentpage'):
             menuitem.translated_title = menuitem.recruitmentpage\
                 .translated_title
+        elif hasattr(menuitem, 'newsindexpage'):
+            menuitem.translated_title = menuitem.newsindexpage.translated_title
+        elif hasattr(menuitem, 'newspage'):
+            menuitem.translated_title = menuitem.newspage.translated_title
+        elif hasattr(menuitem, 'webpage'):
+            menuitem.translated_title = menuitem.webpage.translated_title
         # We don't directly check if calling_page is None since the template
         # engine can pass an empty string to calling_page
         # if the variable passed as calling_page does not exist.

{"golden_diff": "diff --git a/website/website/templatetags/site_tags.py b/website/website/templatetags/site_tags.py\n--- a/website/website/templatetags/site_tags.py\n+++ b/website/website/templatetags/site_tags.py\n@@ -22,9 +22,24 @@\n     menuitems = parent.get_children().live().in_menu()\n     for menuitem in menuitems:\n         menuitem.show_dropdown = has_menu_children(menuitem)\n-        if hasattr(menuitem, 'recruitmentpage'):\n+        # TODO: There has to be a better alternative!\n+        if hasattr(menuitem, 'googleformindex'):\n+            menuitem.translated_title = menuitem.googleformindex\\\n+                .translated_title\n+        elif hasattr(menuitem, 'googleformpage'):\n+            menuitem.translated_title = menuitem.googleformpage\\\n+                .translated_title\n+        elif hasattr(menuitem, 'homepage'):\n+            menuitem.translated_title = menuitem.homepage.translated_title\n+        elif hasattr(menuitem, 'recruitmentpage'):\n             menuitem.translated_title = menuitem.recruitmentpage\\\n                 .translated_title\n+        elif hasattr(menuitem, 'newsindexpage'):\n+            menuitem.translated_title = menuitem.newsindexpage.translated_title\n+        elif hasattr(menuitem, 'newspage'):\n+            menuitem.translated_title = menuitem.newspage.translated_title\n+        elif hasattr(menuitem, 'webpage'):\n+            menuitem.translated_title = menuitem.webpage.translated_title\n         # We don't directly check if calling_page is None since the template\n         # engine can pass an empty string to calling_page\n         # if the variable passed as calling_page does not exist.\n", "issue": "Menu Translations\n<!-- Do you want to ask a question? Are you looking for support? The system administrator can help you: admin@utn.se -->\r\n\r\n### Description\r\n\r\nNot all menu pages are using `translated_title` when being added to the menu.\r\n\r\n<!-- Please select the appropriate \"topic category\"/blue and \"issue type\"/yellow label -->\r\n\n", "before_files": [{"content": "from django import template\n\nregister = template.Library()\n\n\n@register.simple_tag(takes_context=True)\ndef get_site_root(context):\n    # NB this returns a core.Page, not the implementation-specific model used\n    # so object-comparison to self will return false as objects would differ\n    return context['request'].site.root_page\n\n\ndef has_menu_children(page):\n    return page.get_children().live().in_menu().exists()\n\n\n# Retrieves the top menu items - the immediate children of the parent page\n# The has_menu_children method is necessary because the bootstrap menu requires\n# a dropdown class to be applied to a parent\n@register.inclusion_tag('tags/menu.html', takes_context=True)\ndef menu_items(context, parent, calling_page=None, sidenav=False):\n    menuitems = parent.get_children().live().in_menu()\n    for menuitem in menuitems:\n        menuitem.show_dropdown = has_menu_children(menuitem)\n        if hasattr(menuitem, 'recruitmentpage'):\n            menuitem.translated_title = menuitem.recruitmentpage\\\n                .translated_title\n        # We don't directly check if calling_page is None since the template\n        # engine can pass an empty string to calling_page\n        # if the variable passed as calling_page does not exist.\n        menuitem.active = (calling_page.url.startswith(menuitem.url)\n                           if calling_page else False)\n    return {\n        'calling_page': calling_page,\n        'menuitems': menuitems,\n        'sidenav': sidenav,\n        # required by the pageurl tag that we want to use within this template\n        'request': context['request'],\n    }\n\n\n# Retrieves the children of the top menu items for the drop downs\n@register.inclusion_tag('tags/menu_children.html', takes_context=True)\ndef menu_children(context, parent, sidenav=False):\n    children = parent.get_children()\n    children = children.live().in_menu()\n    return {\n        'parent': parent,\n        'children': children,\n        'sidenav': sidenav,\n        # required by the pageurl tag that we want to use within this template\n        'request': context['request'],\n    }\n", "path": "website/website/templatetags/site_tags.py"}], "after_files": [{"content": "from django import template\n\nregister = template.Library()\n\n\n@register.simple_tag(takes_context=True)\ndef get_site_root(context):\n    # NB this returns a core.Page, not the implementation-specific model used\n    # so object-comparison to self will return false as objects would differ\n    return context['request'].site.root_page\n\n\ndef has_menu_children(page):\n    return page.get_children().live().in_menu().exists()\n\n\n# Retrieves the top menu items - the immediate children of the parent page\n# The has_menu_children method is necessary because the bootstrap menu requires\n# a dropdown class to be applied to a parent\n@register.inclusion_tag('tags/menu.html', takes_context=True)\ndef menu_items(context, parent, calling_page=None, sidenav=False):\n    menuitems = parent.get_children().live().in_menu()\n    for menuitem in menuitems:\n        menuitem.show_dropdown = has_menu_children(menuitem)\n        # TODO: There has to be a better alternative!\n        if hasattr(menuitem, 'googleformindex'):\n            menuitem.translated_title = menuitem.googleformindex\\\n                .translated_title\n        elif hasattr(menuitem, 'googleformpage'):\n            menuitem.translated_title = menuitem.googleformpage\\\n                .translated_title\n        elif hasattr(menuitem, 'homepage'):\n            menuitem.translated_title = menuitem.homepage.translated_title\n        elif hasattr(menuitem, 'recruitmentpage'):\n            menuitem.translated_title = menuitem.recruitmentpage\\\n                .translated_title\n        elif hasattr(menuitem, 'newsindexpage'):\n            menuitem.translated_title = menuitem.newsindexpage.translated_title\n        elif hasattr(menuitem, 'newspage'):\n            menuitem.translated_title = menuitem.newspage.translated_title\n        elif hasattr(menuitem, 'webpage'):\n            menuitem.translated_title = menuitem.webpage.translated_title\n        # We don't directly check if calling_page is None since the template\n        # engine can pass an empty string to calling_page\n        # if the variable passed as calling_page does not exist.\n        menuitem.active = (calling_page.url.startswith(menuitem.url)\n                           if calling_page else False)\n    return {\n        'calling_page': calling_page,\n        'menuitems': menuitems,\n        'sidenav': sidenav,\n        # required by the pageurl tag that we want to use within this template\n        'request': context['request'],\n    }\n\n\n# Retrieves the children of the top menu items for the drop downs\n@register.inclusion_tag('tags/menu_children.html', takes_context=True)\ndef menu_children(context, parent, sidenav=False):\n    children = parent.get_children()\n    children = children.live().in_menu()\n    return {\n        'parent': parent,\n        'children': children,\n        'sidenav': sidenav,\n        # required by the pageurl tag that we want to use within this template\n        'request': context['request'],\n    }\n", "path": "website/website/templatetags/site_tags.py"}]}