_pending->user; $translator = $this->getTranslator(); $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."); $pseudo = '' . htmlspecialchars('"' . $user->pseudo . '"') . ''; $email = '' . htmlspecialchars('"' . $user->email . '"') . ''; $activatetext = vsprintf ($activatetext, array($pseudo, $email)); return array( 'label' => __("save"), 'description' => $activatetext); } protected function getCancelOptions() { return array( 'label' => __("delete"), 'description' => __("To cancel account creation, press following button. The account and all its data will be deleted.") ); } }