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         # TODO: There has to be a better alternative!
26         if hasattr(menuitem, 'googleformindex'):
27             menuitem.translated_title = menuitem.googleformindex\
28                 .translated_title
29         elif hasattr(menuitem, 'googleformpage'):
30             menuitem.translated_title = menuitem.googleformpage\
31                 .translated_title
32         elif hasattr(menuitem, 'homepage'):
33             menuitem.translated_title = menuitem.homepage.translated_title
34         elif hasattr(menuitem, 'recruitmentpage'):
35             menuitem.translated_title = menuitem.recruitmentpage\
36                 .translated_title
37         elif hasattr(menuitem, 'newsindexpage'):
38             menuitem.translated_title = menuitem.newsindexpage.translated_title
39         elif hasattr(menuitem, 'newspage'):
40             menuitem.translated_title = menuitem.newspage.translated_title
41         elif hasattr(menuitem, 'webpage'):
42             menuitem.translated_title = menuitem.webpage.translated_title
43         # We don't directly check if calling_page is None since the template
44         # engine can pass an empty string to calling_page
45         # if the variable passed as calling_page does not exist.
46         menuitem.active = (calling_page.url.startswith(menuitem.url)
47                            if calling_page else False)
48     return {
49         'calling_page': calling_page,
50         'menuitems': menuitems,
51         'sidenav': sidenav,
52         # required by the pageurl tag that we want to use within this template
53         'request': context['request'],
54     }
55 
56 
57 # Retrieves the children of the top menu items for the drop downs
58 @register.inclusion_tag('tags/menu_children.html', takes_context=True)
59 def menu_children(context, parent, sidenav=False):
60     children = parent.get_children()
61     children = children.live().in_menu()
62     return {
63         'parent': parent,
64         'children': children,
65         'sidenav': sidenav,
66         # required by the pageurl tag that we want to use within this template
67         'request': context['request'],
68     }
69
```
--- 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
@@ -20,26 +20,9 @@
 @register.inclusion_tag('tags/menu.html', takes_context=True)
 def menu_items(context, parent, calling_page=None, sidenav=False):
     menuitems = parent.get_children().live().in_menu()
+    menuitems = [m.specific for m in menuitems]
     for menuitem in menuitems:
         menuitem.show_dropdown = has_menu_children(menuitem)
-        # 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.
@@ -57,8 +40,8 @@
 # Retrieves the children of the top menu items for the drop downs
 @register.inclusion_tag('tags/menu_children.html', takes_context=True)
 def menu_children(context, parent, sidenav=False):
-    children = parent.get_children()
-    children = children.live().in_menu()
+    children = parent.get_children().live().in_menu()
+    children = [c.specific for c in children]
     return {
         'parent': parent,
         'children': children,

{"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@@ -20,26 +20,9 @@\n @register.inclusion_tag('tags/menu.html', takes_context=True)\n def menu_items(context, parent, calling_page=None, sidenav=False):\n     menuitems = parent.get_children().live().in_menu()\n+    menuitems = [m.specific for m in menuitems]\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@@ -57,8 +40,8 @@\n # Retrieves the children of the top menu items for the drop downs\n @register.inclusion_tag('tags/menu_children.html', takes_context=True)\n def menu_children(context, parent, sidenav=False):\n-    children = parent.get_children()\n-    children = children.live().in_menu()\n+    children = parent.get_children().live().in_menu()\n+    children = [c.specific for c in children]\n     return {\n         'parent': parent,\n         'children': children,\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        # 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"}], "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    menuitems = [m.specific for m in menuitems]\n    for menuitem in menuitems:\n        menuitem.show_dropdown = has_menu_children(menuitem)\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().live().in_menu()\n    children = [c.specific for c in children]\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"}]}