2 /* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
3 and is published under the AGPL license. */
5 class Syj_Form_Pending_ValidateCreation extends Syj_Form_Pending
7 protected function getActivateOptions() {
8 $user = $this->_pending->user;
10 $translator = $this->getTranslator();
11 $activatetext = $translator->translate("Someone, probably you, has registered an account %s with email address %s on syj. To confirm this account creation, validate with following button.");
12 $pseudo = '<strong>' . htmlspecialchars('"' . $user->pseudo . '"') . '</strong>';
13 $email = '<strong>' . htmlspecialchars('"' . $user->email . '"') . '</strong>';
14 $activatetext = vsprintf ($activatetext, array($pseudo, $email));
17 'label' => __("save"),
18 'description' => $activatetext);
21 protected function getCancelOptions() {
23 'label' => __("delete"),
24 'description' => __("To cancel account creation, press following button. The account and all its data will be deleted.")