aboutsummaryrefslogtreecommitdiffstats
path: root/mod/lostpass.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-06 23:03:54 -0700
committerFriendika <info@friendika.com>2011-04-06 23:03:54 -0700
commit4043ede08052846fd02751519b1568d6b8987bfd (patch)
tree0877f5d7b7874367377d5cb80508649e3c040231 /mod/lostpass.php
parentc32ed16303fed6e421917156d66a0605038430db (diff)
downloadvolse-hubzilla-4043ede08052846fd02751519b1568d6b8987bfd.tar.gz
volse-hubzilla-4043ede08052846fd02751519b1568d6b8987bfd.tar.bz2
volse-hubzilla-4043ede08052846fd02751519b1568d6b8987bfd.zip
more templates
Diffstat (limited to 'mod/lostpass.php')
-rw-r--r--mod/lostpass.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/mod/lostpass.php b/mod/lostpass.php
index 3dcf41be7..335a1f512 100644
--- a/mod/lostpass.php
+++ b/mod/lostpass.php
@@ -24,7 +24,7 @@ function lostpass_post(&$a) {
intval($uid)
);
if($r)
- notice("Password reset request issued. Check your email.");
+ notice( t('Password reset request issued. Check your email.') . EOL);
$email_tpl = load_view_file("view/lostpass_eml.tpl");
$email_tpl = replace_macros($email_tpl, array(
@@ -35,7 +35,7 @@ function lostpass_post(&$a) {
'$reset_link' => $a->get_baseurl() . '/lostpass?verify=' . $new_password
));
- $res = mail($email, sprintf(t('Password reset requested at %s'),$a->config['sitename']),
+ $res = mail($email, sprintf( t('Password reset requested at %s'),$a->config['sitename']),
$email_tpl, 'From: ' . t('Administrator') . '@' . $_SERVER[SERVER_NAME]);
goaway($a->get_baseurl());
@@ -53,7 +53,7 @@ function lostpass_content(&$a) {
dbesc($hash)
);
if(! count($r)) {
- notice("Request could not be verified. (You may have previously submitted it.) Password reset failed." . EOL);
+ notice( t("Request could not be verified. \x28You may have previously submitted it.\x29 Password reset failed.") . EOL);
goaway($a->get_baseurl());
return;
}
@@ -96,7 +96,12 @@ function lostpass_content(&$a) {
else {
$tpl = load_view_file('view/lostpass.tpl');
- $o .= $tpl;
+ $o .= replace_macros($tpl,array(
+ '$title' => t('Forgot your Password?'),
+ '$desc' => t('Enter your email address and submit to have your password reset. Then check your email for further instructions.'),
+ '$name' => t('Nickname or Email: '),
+ '$submit' => t('Reset')
+ ));
return $o;
}