From 0868d40cbfa531d344735503824566b59a9cf349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Tue, 2 Aug 2022 00:58:14 +0200 Subject: [PATCH] Avoid dependency on Minerva for the mobile "Add topic" button label We might want to delete the code that defines it in the future. The core message is the same in most translations, and available in 100+ more languages. Change-Id: I230e051940fdd7b89989453eccbffac804a7ddea --- includes/Hooks/PageHooks.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Hooks/PageHooks.php b/includes/Hooks/PageHooks.php index 79168d210..f4283dc7b 100644 --- a/includes/Hooks/PageHooks.php +++ b/includes/Hooks/PageHooks.php @@ -406,8 +406,7 @@ class PageHooks implements $output->addHTML( ( new ButtonWidget( [ 'href' => $title->getLinkURL( [ 'action' => 'edit', 'section' => 'new' ] ), - // TODO: Make this a local message if the Minerva feature goes away - 'label' => $context->msg( 'minerva-talk-add-topic' )->text(), + 'label' => $context->msg( 'skin-action-addsection' )->text(), 'flags' => [ 'progressive', 'primary' ], 'classes' => [ 'ext-discussiontools-init-new-topic' ] ] ) )