From 099695ab615775e5f6d107fba406f7ea45fa7b79 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 22 Aug 2013 15:01:22 -0700 Subject: [PATCH] Fix unacceptably light-hearted string in serious business mode Summary: A serious business lost a bunch of serious business partners today because of this string, I assume. Test Plan: Enabled serious mode, clicked button, was relieved to see no jokes. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D6799 --- .../PhabricatorNotificationClearController.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/applications/notification/controller/PhabricatorNotificationClearController.php b/src/applications/notification/controller/PhabricatorNotificationClearController.php index e212919405..2b7f9a59ec 100644 --- a/src/applications/notification/controller/PhabricatorNotificationClearController.php +++ b/src/applications/notification/controller/PhabricatorNotificationClearController.php @@ -24,8 +24,19 @@ final class PhabricatorNotificationClearController $dialog = new AphrontDialogView(); $dialog->setUser($user); $dialog->setTitle('Really mark all notifications as read?'); - $dialog->appendChild( - "You can't ignore your problems forever, you know."); + + $is_serious = PhabricatorEnv::getEnvConfig('phabricator.serious-business'); + if ($is_serious) { + $dialog->appendChild( + pht( + "All unread notifications will be marked as read. You can not ". + "undo this action.")); + } else { + $dialog->appendChild( + pht( + "You can't ignore your problems forever, you know.")); + } + $dialog->addCancelButton('/notification/'); $dialog->addSubmitButton('Mark All Read');