Differential D17697 Diff 42565 src/applications/conpherence/controller/ConpherenceUpdateController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceUpdateController.php
Show First 20 Lines • Show All 354 Lines • ▼ Show 20 Lines | private function renderRemovePersonDialog( | ||||
$body = array(); | $body = array(); | ||||
if ($is_self) { | if ($is_self) { | ||||
$title = pht('Leave Room'); | $title = pht('Leave Room'); | ||||
$body[] = pht( | $body[] = pht( | ||||
'Are you sure you want to leave this room?'); | 'Are you sure you want to leave this room?'); | ||||
} else { | } else { | ||||
$title = pht('Banish User'); | $title = pht('Remove Participant'); | ||||
$body[] = pht( | $body[] = pht( | ||||
'Banish %s from the realm?', | 'Remove %s from this room?', | ||||
phutil_tag('strong', array(), $removed_user->getUsername())); | phutil_tag('strong', array(), $removed_user->getUsername())); | ||||
} | } | ||||
if ($still_visible) { | if ($still_visible) { | ||||
if ($is_self) { | if ($is_self) { | ||||
$body[] = pht( | $body[] = pht( | ||||
'You will be able to rejoin the room later.'); | 'You will be able to rejoin the room later.'); | ||||
} else { | } else { | ||||
$body[] = pht( | $body[] = pht( | ||||
'This user will be able to rejoin the room later.'); | 'They will be able to rejoin the room later.'); | ||||
} | } | ||||
} else { | } else { | ||||
if ($is_self) { | if ($is_self) { | ||||
if ($is_last) { | if ($is_last) { | ||||
$body[] = pht( | $body[] = pht( | ||||
'You are the last member, so you will never be able to rejoin '. | 'You are the last member, so you will never be able to rejoin '. | ||||
'the room.'); | 'the room.'); | ||||
} else { | } else { | ||||
$body[] = pht( | $body[] = pht( | ||||
'You will not be able to rejoin the room on your own, but '. | 'You will not be able to rejoin the room on your own, but '. | ||||
'someone else can invite you later.'); | 'someone else can invite you later.'); | ||||
} | } | ||||
} else { | } else { | ||||
$body[] = pht( | $body[] = pht( | ||||
'This user will not be able to rejoin the room unless invited '. | 'They will not be able to rejoin the room unless invited '. | ||||
'again.'); | 'again.'); | ||||
} | } | ||||
} | } | ||||
$dialog = id(new AphrontDialogView()) | $dialog = id(new AphrontDialogView()) | ||||
->setTitle($title) | ->setTitle($title) | ||||
->addHiddenInput('action', 'remove_person') | ->addHiddenInput('action', 'remove_person') | ||||
->addHiddenInput('remove_person', $remove_person) | ->addHiddenInput('remove_person', $remove_person) | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |