From 296023b09a78837e0720a56994b216081b1ce0d4 Mon Sep 17 00:00:00 2001 From: Janneke Janssen Date: Wed, 14 Dec 2016 18:34:58 +0100 Subject: [PATCH] Fixes untranslated titles in the admin for adding a child page --- CONTRIBUTORS.rst | 1 + wagtail/wagtailadmin/wagtail_hooks.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS.rst b/CONTRIBUTORS.rst index 1c44d95ea5..dd187228de 100644 --- a/CONTRIBUTORS.rst +++ b/CONTRIBUTORS.rst @@ -195,6 +195,7 @@ Contributors * MattRijk * Marco Fucci * Mihail Russu +* Robert Slotboom Translators =========== diff --git a/wagtail/wagtailadmin/wagtail_hooks.py b/wagtail/wagtailadmin/wagtail_hooks.py index 426bef30b9..44e45fc16c 100644 --- a/wagtail/wagtailadmin/wagtail_hooks.py +++ b/wagtail/wagtailadmin/wagtail_hooks.py @@ -77,10 +77,10 @@ def page_listing_buttons(page, page_perms, is_parent=False): if page_perms.can_add_subpage(): if is_parent: yield Button(_('Add child page'), reverse('wagtailadmin_pages:add_subpage', args=[page.id]), - attrs={'title': _("Add a child page to '{0}' ".format(page.get_admin_display_title()))}, classes={'button', 'button-small', 'bicolor', 'icon', 'white', 'icon-plus'}, priority=40) + attrs={'title': _("Add a child page to '{0}' ").format(page.get_admin_display_title())}, classes={'button', 'button-small', 'bicolor', 'icon', 'white', 'icon-plus'}, priority=40) else: yield PageListingButton(_('Add child page'), reverse('wagtailadmin_pages:add_subpage', args=[page.id]), - attrs={'title': _("Add a child page to '{0}' ".format(page.get_admin_display_title()))}, priority=40) + attrs={'title': _("Add a child page to '{0}' ").format(page.get_admin_display_title())}, priority=40) yield ButtonWithDropdownFromHook( _('More'),