Finish t() for mod
finished mod folder
This commit is contained in:
parent
ead9d86236
commit
407b2397cb
38 changed files with 851 additions and 810 deletions
|
@ -37,13 +37,13 @@ function lostpass_post(App $a)
|
|||
];
|
||||
$result = dba::update('user', $fields, ['uid' => $user['uid']]);
|
||||
if ($result) {
|
||||
info(t('Password reset request issued. Check your email.') . EOL);
|
||||
info(L10n::t('Password reset request issued. Check your email.') . EOL);
|
||||
}
|
||||
|
||||
$sitename = $a->config['sitename'];
|
||||
$resetlink = System::baseUrl() . '/lostpass/' . $pwdreset_token;
|
||||
|
||||
$preamble = deindent(t('
|
||||
$preamble = deindent(L10n::t('
|
||||
Dear %1$s,
|
||||
A request was recently received at "%2$s" to reset your account
|
||||
password. In order to confirm this request, please select the verification link
|
||||
|
@ -54,7 +54,7 @@ function lostpass_post(App $a)
|
|||
|
||||
Your password will not be changed unless we can verify that you
|
||||
issued this request.', $user['username'], $sitename));
|
||||
$body = deindent(t('
|
||||
$body = deindent(L10n::t('
|
||||
Follow this link soon to verify your identity:
|
||||
|
||||
%1$s
|
||||
|
@ -70,7 +70,7 @@ function lostpass_post(App $a)
|
|||
notification([
|
||||
'type' => SYSTEM_EMAIL,
|
||||
'to_email' => $user['email'],
|
||||
'subject' => t('Password reset requested at %s', $sitename),
|
||||
'subject' => L10n::t('Password reset requested at %s', $sitename),
|
||||
'preamble' => $preamble,
|
||||
'body' => $body
|
||||
]);
|
||||
|
@ -114,10 +114,10 @@ function lostpass_form()
|
|||
{
|
||||
$tpl = get_markup_template('lostpass.tpl');
|
||||
$o = replace_macros($tpl, [
|
||||
'$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')
|
||||
'$title' => L10n::t('Forgot your Password?'),
|
||||
'$desc' => L10n::t('Enter your email address and submit to have your password reset. Then check your email for further instructions.'),
|
||||
'$name' => L10n::t('Nickname or Email: '),
|
||||
'$submit' => L10n::t('Reset')
|
||||
]);
|
||||
|
||||
return $o;
|
||||
|
@ -132,12 +132,12 @@ function lostpass_generate_password($user)
|
|||
if (DBM::is_result($result)) {
|
||||
$tpl = get_markup_template('pwdreset.tpl');
|
||||
$o .= replace_macros($tpl, [
|
||||
'$lbl1' => t('Password Reset'),
|
||||
'$lbl2' => t('Your password has been reset as requested.'),
|
||||
'$lbl3' => t('Your new password is'),
|
||||
'$lbl4' => t('Save or copy your new password - and then'),
|
||||
'$lbl5' => '<a href="' . System::baseUrl() . '">' . t('click here to login') . '</a>.',
|
||||
'$lbl6' => t('Your password may be changed from the <em>Settings</em> page after successful login.'),
|
||||
'$lbl1' => L10n::t('Password Reset'),
|
||||
'$lbl2' => L10n::t('Your password has been reset as requested.'),
|
||||
'$lbl3' => L10n::t('Your new password is'),
|
||||
'$lbl4' => L10n::t('Save or copy your new password - and then'),
|
||||
'$lbl5' => '<a href="' . System::baseUrl() . '">' . L10n::t('click here to login') . '</a>.',
|
||||
'$lbl6' => L10n::t('Your password may be changed from the <em>Settings</em> page after successful login.'),
|
||||
'$newpass' => $new_password,
|
||||
'$baseurl' => System::baseUrl()
|
||||
]);
|
||||
|
@ -145,13 +145,13 @@ function lostpass_generate_password($user)
|
|||
info("Your password has been reset." . EOL);
|
||||
|
||||
$sitename = $a->config['sitename'];
|
||||
$preamble = deindent(t('
|
||||
$preamble = deindent(L10n::t('
|
||||
Dear %1$s,
|
||||
Your password has been changed as requested. Please retain this
|
||||
information for your records (or change your password immediately to
|
||||
something that you will remember).
|
||||
', $user['username']));
|
||||
$body = deindent(t('
|
||||
$body = deindent(L10n::t('
|
||||
Your login details are as follows:
|
||||
|
||||
Site Location: %1$s
|
||||
|
@ -164,7 +164,7 @@ function lostpass_generate_password($user)
|
|||
notification([
|
||||
'type' => SYSTEM_EMAIL,
|
||||
'to_email' => $user['email'],
|
||||
'subject' => t('Your password has been changed at %s', $sitename),
|
||||
'subject' => L10n::t('Your password has been changed at %s', $sitename),
|
||||
'preamble' => $preamble,
|
||||
'body' => $body
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue