function settings_init(App $a)
{
if (!local_user()) {
- notice(t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
}
if (count($a->user) && x($a->user, 'uid') && $a->user['uid'] != local_user()) {
- notice(t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
$icon = defaults($_POST, 'icon' , '');
if ($name == "" || $key == "" || $secret == "") {
- notice(t("Missing some important data!"));
+ notice(L10n::t("Missing some important data!"));
} else {
if ($_POST['submit']==t("Update")) {
q("UPDATE clients SET
unset($dcrpass);
if (!$mbox) {
$failed = true;
- notice(t('Failed to connect with email account using the settings provided.') . EOL);
+ notice(L10n::t('Failed to connect with email account using the settings provided.') . EOL);
}
}
}
$err = false;
if ($newpass != $confirm) {
- notice(t('Passwords do not match. Password unchanged.') . EOL);
+ notice(L10n::t('Passwords do not match. Password unchanged.') . EOL);
$err = true;
}
if (!x($newpass) || !x($confirm)) {
- notice(t('Empty passwords are not allowed. Password unchanged.') . EOL);
+ notice(L10n::t('Empty passwords are not allowed. Password unchanged.') . EOL);
$err = true;
}
// check if the old password was supplied correctly before changing it to the new value
if (!User::authenticate(intval(local_user()), $_POST['opassword'])) {
- notice(t('Wrong password.') . EOL);
+ notice(L10n::t('Wrong password.') . EOL);
$err = true;
}
if (DBM::is_result($result)) {
info(t('Password changed.') . EOL);
} else {
- notice(t('Password update failed. Please try again.') . EOL);
+ notice(L10n::t('Password update failed. Please try again.') . EOL);
}
}
}
info(t('Private forum has no privacy permissions. Using default privacy group.'). EOL);
$str_group_allow = '<' . $def_gid . '>';
} else {
- notice(t('Private forum has no privacy permissions and no default privacy group.') . EOL);
+ notice(L10n::t('Private forum has no privacy permissions and no default privacy group.') . EOL);
}
}
}
Nav::setSelected('settings');
if (!local_user()) {
- //notice(t('Permission denied.') . EOL);
+ //notice(L10n::t('Permission denied.') . EOL);
return;
}
if (x($_SESSION, 'submanage') && intval($_SESSION['submanage'])) {
- notice(t('Permission denied.') . EOL);
+ notice(L10n::t('Permission denied.') . EOL);
return;
}
local_user());
if (!DBM::is_result($r)) {
- notice(t("You can't edit this application."));
+ notice(L10n::t("You can't edit this application."));
return;
}
$app = $r[0];
$profile = dba::selectFirst('profile', [], ['is-default' => true, 'uid' => local_user()]);
if (!DBM::is_result($profile)) {
- notice(t('Unable to find your profile. Please contact your admin.') . EOL);
+ notice(L10n::t('Unable to find your profile. Please contact your admin.') . EOL);
return;
}